diff options
author | iainp5 <iain.pearce.ip@gmail.com> | 2024-09-23 09:27:34 +0100 |
---|---|---|
committer | iainp5 <iain.pearce.ip@gmail.com> | 2024-09-23 09:27:34 +0100 |
commit | 2fdac12b7a6e9a454dda1ef6b1bd74e29ca6b32d (patch) | |
tree | c0728830c5737490afb3e8ebdbeabb177497b4ad /play.js | |
parent | a1e9567b3b4c2b2326abefae47c99ba874ee2c26 (diff) | |
download | 1989-dawn-of-freedom-2fdac12b7a6e9a454dda1ef6b1bd74e29ca6b32d.tar.gz |
Updates to event markers
Diffstat (limited to 'play.js')
-rw-r--r-- | play.js | 26 |
1 files changed, 20 insertions, 6 deletions
@@ -23,10 +23,21 @@ const countries= [ ]
const aside_events = [
- "eco_glasnost",
- "helsinki_final_act",
+ "honecker",
"st_nicholas_church",
- "we_are_the_people"
+ "helsinki_final_act",
+ "eco_glasnost",
+ "we_are_the_people",
+ "foreign_currency_debt_burden",
+ "li_peng",
+ "austria_hungary_border_reopened",
+ "grenztruppen",
+ "presidential_visit",
+ "securitate",
+ "laslzo_tokes",
+ "stand_fast",
+ "elena",
+ "new_years_eve_party"
]
let aside_events_showing = false
let show_discard = false
@@ -503,7 +514,7 @@ for (let id in view.persistent_events) { }
// CHECK WHETHER ANY EVENT MARKERS ARE SHOWING IN THE ASIDE
-/*
+
for (let id of aside_events) {
if (view.persistent_events[id]) {
aside_events_showing = true;
@@ -511,8 +522,10 @@ for (let id of aside_events) { }
if (aside_events_showing) {
- document.getElementById('no_events').style.display = 'none'
-}*/
+ document.getElementById('events_panel').classList.remove("hide")
+} else {
+ document.getElementById('events_panel').classList.add("hide")
+}
let systematization = document.getElementById('systematization')
if (view.persistent_events['systematization'] > 0) {
@@ -569,6 +582,7 @@ if (view.persistent_events['the_tyrant_is_gone'] > 0) { action_button("done", "Done")
action_button("undo", "Undo")
+ console.log('view.persistent_events', view.persistent_events)
}
|