Refactor Encounters, use new translations format for save space
This commit is contained in:
parent
7d9f58650a
commit
908f45eb9b
59 changed files with 103852 additions and 58396 deletions
|
@ -116,20 +116,20 @@ local function InitSpeeches()
|
|||
|
||||
end
|
||||
|
||||
local function InitTactics()
|
||||
local function InitEncounters()
|
||||
local function Update(name, value)
|
||||
CzechQuestsAddon_Store.config[name] = value
|
||||
addon.TacticFrame:UpdateSettings()
|
||||
addon.EncounterFrame:UpdateSettings()
|
||||
end
|
||||
|
||||
local layout = Options.layout
|
||||
layout:AddInitializer(CreateSettingsListSectionHeaderInitializer("Taktiky"))
|
||||
|
||||
CreateCheckbox("TACTIC_ENABLED", "Zapnout *", Update)
|
||||
CreateCheckbox("ENCOUNTER_ENABLED", "Zapnout *", Update)
|
||||
|
||||
CreateDropdown("TACTIC_TEXT_FONT_NAME", "Pismo *", addon.API.GetFontContainer, Update)
|
||||
CreateDropdown("ENCOUNTER_TEXT_FONT_NAME", "Pismo *", addon.API.GetFontContainer, Update)
|
||||
|
||||
CreateSlider("TACTIC_TEXT_FONT_SIZE", "Velikost pisma *", 10, 30, 1, Update)
|
||||
CreateSlider("ENCOUNTER_TEXT_FONT_SIZE", "Velikost pisma *", 10, 30, 1, Update)
|
||||
end
|
||||
|
||||
local function InitOthers()
|
||||
|
@ -148,7 +148,7 @@ local function InitOptions()
|
|||
InitQuests()
|
||||
InitSpeeches()
|
||||
if (WOW_PROJECT_ID ~= WOW_PROJECT_CLASSIC) then
|
||||
InitTactics()
|
||||
InitEncounters()
|
||||
end
|
||||
InitOthers()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue