summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-12-10 23:11:27 +0100
committerTor Andersson <tor@ccxvii.net>2023-12-10 23:30:09 +0100
commitdb6136b3dae500216fdfbf1a4baf56336f008d05 (patch)
tree6e561ff14a07c05c7a513b3c8f37f5b6c6e2be44
parent3a4bd187e2362a51ea07250be9f397fa8bbfe97a (diff)
downloadpax-pamir-db6136b3dae500216fdfbf1a4baf56336f008d05.tar.gz
Remove favored suit piece.
-rw-r--r--play.css21
-rw-r--r--play.js3
2 files changed, 2 insertions, 22 deletions
diff --git a/play.css b/play.css
index 9726e90..7e28e9b 100644
--- a/play.css
+++ b/play.css
@@ -397,26 +397,7 @@ body.shift #tooltip.focus { display: block; }
drop-shadow(2px 0 0 black)
}
-/* FAVORED SUIT MARKER AND SPACES */
-
-#favored_suit_marker {
- position: absolute;
- pointer-events: none;
- width: 32px;
- height: 70px;
- background-image: url(pieces/favored_suit_marker.svg);
- background-size: contain;
- background-repeat: no-repeat;
- left: 42px;
- filter: drop-shadow(0 2px 3px rgba(0,0,0,0.5));
- transition: 500ms;
- transform-origin: bottom center;
-}
-
-#favored_suit_marker.Political { top: 112px; }
-#favored_suit_marker.Intelligence { top: 200px; }
-#favored_suit_marker.Economic { top: 289px; }
-#favored_suit_marker.Military { top: 378px; }
+/* FAVORED SUIT SPACES */
.suit {
position: absolute;
diff --git a/play.js b/play.js
index 3543b3f..0ba5715 100644
--- a/play.js
+++ b/play.js
@@ -720,11 +720,11 @@ function on_update() {
ui.body.classList.toggle("open", !!view.open)
- ui.favored1.className = view.favored
ui.suit_political.classList.toggle("favored", view.favored === "Political")
ui.suit_intelligence.classList.toggle("favored", view.favored === "Intelligence")
ui.suit_economic.classList.toggle("favored", view.favored === "Economic")
ui.suit_military.classList.toggle("favored", view.favored === "Military")
+
ui.favored2.src = "icons/suit_" + view.favored.toLowerCase() + ".svg"
for (let row = 0; row < 2; ++row) {
@@ -1053,7 +1053,6 @@ function build_ui() {
ui.market_b = document.getElementById("market_b")
ui.status = document.getElementById("status")
ui.tooltip = document.getElementById("tooltip")
- ui.favored1 = document.getElementById("favored_suit_marker")
ui.favored2 = document.getElementById("favored_suit_icon")
ui.popup_label = document.getElementById("popup_label")
ui.global_events = document.getElementById("global_events")