View Single Post
03-18-24, 11:07 AM   #7
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,894
Originally Posted by Hubb777 View Post
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 View Post
How to add localization to other languages for lines A, B, C, D, etc.
Lua Code:
  1. local Localizations = {
  2.     enUS = {
  3.         Waiting = "%s before event %s starts",
  4.         Running = "Event: |cFF35BE21%s|r\n%s remaining",
  5.         A = "Name of event A",
  6.         B = "Name of event B",
  7.         -- etc.
  8.     },
  9. }
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
Lua Code:
  1. MyRegion[id].name
with
Lua Code:
  1. L[MyRegion[id].name]

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.
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.

Last edited by Fizzlemizz : 03-18-24 at 09:43 PM.
  Reply With Quote