summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2022-09-16 19:35:45 +0200
committerTor Andersson <tor@ccxvii.net>2023-02-18 11:54:52 +0100
commit4d7494341aaf970e599d1eb6f058bf9a077ac972 (patch)
tree17ea0a66d38632e82ec17b0244b994c6604c4d8a
parent8eb9e23aa7ed0269cfc1cbbb8a9bfa9107bf3a25 (diff)
downloadwilderness-war-4d7494341aaf970e599d1eb6f058bf9a077ac972.tar.gz
Hide "Discard" card menu option unless you hold down shift.
-rw-r--r--play.css1
-rw-r--r--play.html2
2 files changed, 2 insertions, 1 deletions
diff --git a/play.css b/play.css
index c3bc2d2..6dbb9d0 100644
--- a/play.css
+++ b/play.css
@@ -166,6 +166,7 @@ aside { width: 220px; }
#popup div.enabled { color: black; display: block; }
#popup div.enabled:hover { background-color: black; color: white; }
#popup div.always { display: block; }
+body:not(.shift) #popup #menu_discard { display: none; }
/* MAP */
diff --git a/play.html b/play.html
index 088139e..845099a 100644
--- a/play.html
+++ b/play.html
@@ -23,7 +23,7 @@
<div id="menu_activate_individually" class="always" onclick="on_activate_individually()">Activate individually</div>
<div id="menu_construct_stockades" class="always" onclick="on_construct_stockades()">Construct stockades</div>
<div id="menu_construct_forts" class="always" onclick="on_construct_forts()">Construct forts</div>
-<div id="menu_discard" class="always" onclick="on_discard()">Discard</div>
+<div id="menu_discard" onclick="on_discard()">Discard</div>
</div>
<div id="removed" class="card_list_dialog hide">