summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-08-13 00:15:48 +0200
committerTor Andersson <tor@ccxvii.net>2024-08-13 00:15:48 +0200
commit9c93060ffaec8488aeaf7c0a617336899907d75c (patch)
treeeb0b0496f2aa919a1c9d030da3f4dcc38d7f3b81
parent07563bb8c48d168c8f8886262793e61fafee0073 (diff)
downloadtime-of-crisis-v2.tar.gz
icons for market buttons (needs client update)v2
-rw-r--r--play.css10
-rw-r--r--play.js12
-rw-r--r--rules.js1
3 files changed, 16 insertions, 7 deletions
diff --git a/play.css b/play.css
index 22c6d27..34f5850 100644
--- a/play.css
+++ b/play.css
@@ -17,6 +17,15 @@ body.Observer #hand_panel, body.Observer #draw_panel, body.Observer #discard_pan
display: none;
}
+button img.market_button {
+ height: 16px;
+ vertical-align: -3px;
+}
+
+button:disabled img.market_button {
+ opacity: 25%;
+}
+
#role_Red { background-color: hsl(354,85%,67%) }
#role_Blue { background-color: hsl(207,67%,78%) }
#role_Yellow { background-color: hsl(47,100%,73%) }
@@ -457,7 +466,6 @@ body.tint .militia.selected,
background-size: 900% 400%;
}
-
.no_place_governor { background-image: url(images/no_place_governor.png) }
.legion { background-image: url(images/legion_full.png) }
.legion.reduced { background-image: url(images/legion_reduced.png) }
diff --git a/play.js b/play.js
index 4da1841..f09e0e6 100644
--- a/play.js
+++ b/play.js
@@ -1618,12 +1618,12 @@ function on_update() {
action_button("enter", "Enter Capital")
action_button("leave", "Leave Capital")
- action_button("mip_to_sip", "M > S")
- action_button("mip_to_pip", "M > P")
- action_button("sip_to_mip", "S > M")
- action_button("sip_to_pip", "S > P")
- action_button("pip_to_mip", "P > M")
- action_button("pip_to_sip", "P > S")
+ action_button("mip_to_sip", `<img class="market_button" src="images/mx.svg"> \u2192 <img class="market_button" src="images/sx.svg">`)
+ action_button("mip_to_pip", `<img class="market_button" src="images/mx.svg"> \u2192 <img class="market_button" src="images/px.svg">`)
+ action_button("sip_to_mip", `<img class="market_button" src="images/sx.svg"> \u2192 <img class="market_button" src="images/mx.svg">`)
+ action_button("sip_to_pip", `<img class="market_button" src="images/sx.svg"> \u2192 <img class="market_button" src="images/px.svg">`)
+ action_button("pip_to_mip", `<img class="market_button" src="images/px.svg"> \u2192 <img class="market_button" src="images/mx.svg">`)
+ action_button("pip_to_sip", `<img class="market_button" src="images/px.svg"> \u2192 <img class="market_button" src="images/sx.svg">`)
action_button("automatic", "Automatic")
action_button("spend_military", "Spend Military")
diff --git a/rules.js b/rules.js
index 034fb49..c9e15e8 100644
--- a/rules.js
+++ b/rules.js
@@ -2402,6 +2402,7 @@ states.take_actions = {
// IMPROVEMENT: PORT
states.use_port = {
+ inactive: "Port",
prompt() {
let from = get_general_location(game.selected_general)
view.prompt = "Use Port to sail to a distant province."