mirror of
https://github.com/gooba42/adventureland.git
synced 2026-10-14 18:39:27 -05:00
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:
+1
-5
@@ -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'>></span> TRADE HISTORY</div>";
|
||||
if(character.stand) {
|
||||
html+="<div onclick='close_merchant()' class='clickable' style='color: #E4E4E4'><span style='color: #BA61A4'>></span> CLOSE STAND</div>";
|
||||
} else {
|
||||
html+="<div onclick='open_merchant(\"" + slot + "\")' class='clickable' style='color: #E4E4E4'><span style='color: #BA61A4'>></span> OPEN STAND</div>";
|
||||
}
|
||||
html+="<div onclick='toggle_merchant(\"" + slot + "\")' class='clickable' style='color: #E4E4E4'><span style='color: #BA61A4'>></span> TOGGLE STAND</div>";
|
||||
if(type == "supercomputer") {
|
||||
html+="<div onclick=\"socket.emit('tracker')\" class='clickable' style='color: #E4E4E4'><span style='color: #BA61A4'>></span> TRACKER</div>";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user