summaryrefslogtreecommitdiff
path: root/ui.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2021-05-02 00:13:36 +0200
committerTor Andersson <tor@ccxvii.net>2022-11-17 12:53:17 +0100
commit0363bf3ea52abc01481e9852631d9d1e9ace46e4 (patch)
treeacdc295e7bfb4215fce0624d17d271567e67299b /ui.js
parent3968626c16517f16c98974de4b274a80c11342c1 (diff)
downloadhammer-of-the-scots-0363bf3ea52abc01481e9852631d9d1e9ace46e4.tar.gz
hammer: Fix Moray and Scottish King wintering.
Delay disband question until normal disband phase. Allow staying even if over castle limit since you may want to be able to disband another unit to keep Moray or the King). Skip question completely if already at home or home is occupied. Improve UI for Edward wintering -- can click England to disband, and added button for wintering.
Diffstat (limited to 'ui.js')
-rw-r--r--ui.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/ui.js b/ui.js
index 683f0af..d974e5f 100644
--- a/ui.js
+++ b/ui.js
@@ -202,6 +202,10 @@ function on_button_disband(evt) {
send_action('disband');
}
+function on_button_winter(evt) {
+ send_action('winter');
+}
+
function on_button_end_disbanding(evt) {
send_action('end_disbanding');
}
@@ -711,6 +715,7 @@ function on_update(state, player) {
show_action_button("#end_move_phase_button", "end_move_phase");
show_action_button("#end_regroup_button", "end_regroup");
show_action_button("#end_retreat_button", "end_retreat");
+ show_action_button("#winter_button", "winter");
show_action_button("#eliminate_button", "eliminate");
show_action_button("#disband_button", "disband");
show_action_button("#end_disbanding_button", "end_disbanding");