From 8920509c888a9eb992707bf47fefaab9b00d1d4c Mon Sep 17 00:00:00 2001 From: FreezePhoenix <24441367+FreezePhoenix@users.noreply.github.com> Date: Wed, 14 Feb 2024 21:54:24 -0500 Subject: [PATCH] Update html.js to improve Computer and Super Computer UI --- js/html.js | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/js/html.js b/js/html.js index 3edb9e5..7a69b12 100644 --- a/js/html.js +++ b/js/html.js @@ -2154,10 +2154,20 @@ function render_tracker() show_modal(html,{wwidth:578,hideinbackground:true}); } -function render_computer($element) +function render_computer($element,type="computer",slot=0) { var html=""; html+="
CONNECTED.
"; + html+="
> TRADE HISTORY
"; + if(character.stand) { + html+="
> CLOSE STAND
"; + } else { + html+="
> OPEN STAND
"; + } + if(type == "supercomputer") { + html+="
> TRACKER
"; + } + html+="
> UPGRADE
"; // style='color: #C3C3C3' style='color: #D6D6D6' html+="
> COMPOUND
"; html+="
> EXCHANGE
"; @@ -2228,11 +2238,11 @@ function render_skill(selector,skill_name,args) else $(selector).html(html); } -function render_computer_network(selector) +function render_computer_network(selector,type,num) { var html="
"; $(selector).html(html); - render_computer($(".computernx")); + render_computer($(".computernx"),type,num); } function render_secondhands(type)