Originally Posted by Hubb777
If I want to remove one event that lasts 1 hour or add one event that lasts 1 hour, I will need to change this number 14400, right? And add or remove a letter.
|
If you remove 1 then the overall session of 3 hours would run 8 times in a day (24/3). If you added 1 (5 hours) then it would run 4.8 times (24/5) which wouldn't work as it would break the startTime calculation by causing overlap and you would lose the conistant start time each day.
Originally Posted by Hubb777
How to add localization to other languages for lines A, B, C, D, etc.
|
Lua Code:
local Localizations = {
enUS = {
Waiting = "%s before event %s starts",
Running = "Event: |cFF35BE21%s|r\n%s remaining",
A = "Name of event A",
B = "Name of event B",
-- etc.
},
}
You might want to make the A, B, C more meaningful names in both the localizations table and use the same in the RegionTimes table to replace A, B etc.
Then replace
with
As for colours and alarms, it would seem you just need to add a caclulation for x time before the end of a wait sub-session and sound the alarm/change the colour. You should have enough already to be able to work that out.