X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/copy_free?a=blobdiff_plain;f=rogue_chat_nocanvas_monochrome.html;h=59d03a98141cda17de586e956b1abd6d88bf8dff;hb=600df1cb4f785eeeb0d604a2d7b6e08d41dd652c;hp=b1dd9929700724c57004413edc17bd5432476c08;hpb=859fae61e2b7c3ad39a8d158bb88d6a43d59368d;p=plomrogue2
diff --git a/rogue_chat_nocanvas_monochrome.html b/rogue_chat_nocanvas_monochrome.html
index b1dd992..59d03a9 100644
--- a/rogue_chat_nocanvas_monochrome.html
+++ b/rogue_chat_nocanvas_monochrome.html
@@ -1,30 +1,37 @@
-
for mouse players
+
source code (includes proper terminal / curses client)
+
button controls for mouse players
- |
- |
+ |
+ |
|
- |
- MOVE |
+ |
+ move |
|
|
- |
+ |
|
@@ -549,13 +556,26 @@ let tui = {
for (let key_selector of key_selectors) {
this.keys[key_selector.id.slice(4)] = key_selector.value;
}
- this.movement_keys = {
- [this.keys.square_move_up]: 'UP',
- [this.keys.square_move_left]: 'LEFT',
- [this.keys.square_move_down]: 'DOWN',
- [this.keys.square_move_right]: 'RIGHT'
- };
- if (game.map_geometry == 'Hex') {
+ if (game.map_geometry == 'Square') {
+ this.movement_keys = {
+ [this.keys.square_move_up]: 'UP',
+ [this.keys.square_move_left]: 'LEFT',
+ [this.keys.square_move_down]: 'DOWN',
+ [this.keys.square_move_right]: 'RIGHT'
+ };
+ document.getElementById("move_upright").hidden = true;
+ document.getElementById("move_upleft").hidden = true;
+ document.getElementById("move_downright").hidden = true;
+ document.getElementById("move_downleft").hidden = true;
+ document.getElementById("move_up").hidden = false;
+ document.getElementById("move_down").hidden = false;
+ } else if (game.map_geometry == 'Hex') {
+ document.getElementById("move_upright").hidden = false;
+ document.getElementById("move_upleft").hidden = false;
+ document.getElementById("move_downright").hidden = false;
+ document.getElementById("move_downleft").hidden = false;
+ document.getElementById("move_up").hidden = true;
+ document.getElementById("move_down").hidden = true;
this.movement_keys = {
[this.keys.hex_move_upleft]: 'UPLEFT',
[this.keys.hex_move_upright]: 'UPRIGHT',
@@ -586,16 +606,8 @@ let tui = {
}
document.getElementById("help").disabled = false;
if (this.mode.name == 'play' || this.mode.name == 'study' || this.mode.name == 'control_tile_draw') {
- document.getElementById("move_left").disabled = false;
- document.getElementById("move_right").disabled = false;
- if (game.map_geometry == 'Hex') {
- document.getElementById("move_upleft").disabled = false;
- document.getElementById("move_upright").disabled = false;
- document.getElementById("move_downleft").disabled = false;
- document.getElementById("move_downright").disabled = false;
- } else {
- document.getElementById("move_up").disabled = false;
- document.getElementById("move_down").disabled = false;
+ for (const move_key of document.querySelectorAll('[id^="move_"]')) {
+ move_key.disabled = false;
}
}
if (!this.mode.is_intro && this.mode.name != 'play') {