Add something to the panes

XanMag
12 Jan 2016, 18:24
I would like to add the 'time of day' to my panes or possibly at the top of the game by the title. How would I go about doing that?

Thanks.

Quantus
12 Jan 2016, 19:24
You basically just create two variables that increment in the background using timers. Then you put them in a print msg using quotes and + symbols.

msg("TIME:" + game.hours + " : " + game.minutes + " ")

jaynabonne
12 Jan 2016, 19:34
You can add the time of day as a status variable, if that's what you'd like. Otherwise, there may be some HTML tricks that can be used.

XanMag
12 Jan 2016, 20:41
In the pane, I want

Time of Day: Dawn

Or Time of Day: Morning

Where the TOD always remains and I can switch that status with my already set 15 turn switch.

jaynabonne
12 Jan 2016, 20:48
You can create a string status variable, and then in your turn script, update that variable with the correct time of day. Or did you mean you wanted something else?

XanMag
12 Jan 2016, 20:54
You know how you helped with the progress bar? I'd like to do that with TOD. Maybe right beneath or above the progress bar.