Update html.js to improve Computer UI

Replaces the OPEN STAND and CLOSE STAND button with a single TOGGLE STAND button.
This commit is contained in:
FreezePhoenix
2024-02-17 09:34:18 -05:00
committed by GitHub
parent 2103f66304
commit d7b2ddf209
+1 -5
View File
@@ -2159,11 +2159,7 @@ function render_computer($element,type="computer",slot=0)
var html="";
html+="<div style=\"color: #32A3B0\">CONNECTED.</div>";
html+="<div onclick='socket.emit(\"trade_history\",{})' class='clickable' style='color: #E4E4E4'><span style='color: #BA61A4'>&gt;</span> TRADE HISTORY</div>";
if(character.stand) {
html+="<div onclick='close_merchant()' class='clickable' style='color: #E4E4E4'><span style='color: #BA61A4'>&gt;</span> CLOSE STAND</div>";
} else {
html+="<div onclick='open_merchant(\"" + slot + "\")' class='clickable' style='color: #E4E4E4'><span style='color: #BA61A4'>&gt;</span> OPEN STAND</div>";
}
html+="<div onclick='toggle_merchant(\"" + slot + "\")' class='clickable' style='color: #E4E4E4'><span style='color: #BA61A4'>&gt;</span> TOGGLE STAND</div>";
if(type == "supercomputer") {
html+="<div onclick=\"socket.emit('tracker')\" class='clickable' style='color: #E4E4E4'><span style='color: #BA61A4'>&gt;</span> TRACKER</div>";
}