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
|
@ -6,9 +6,9 @@ addon.API = {}
|
|||
-- Prepare Data objects
|
||||
addon.data = {};
|
||||
addon.data.quest = {};
|
||||
addon.data.item = {};
|
||||
addon.data.book = {};
|
||||
addon.data.speech = {}
|
||||
addon.data.tactic = {}
|
||||
addon.data.encounter = {}
|
||||
|
||||
-- Expose object as global for other addon integration
|
||||
CzechQuestsAddon = {}
|
||||
|
@ -49,10 +49,10 @@ local function InitStore()
|
|||
CzechQuestsAddon_Store.config.SPEECH_FRAME_POSITION_X = SetDefault("SPEECH_FRAME_POSITION_X", 0)
|
||||
CzechQuestsAddon_Store.config.SPEECH_FRAME_POSITION_Y = SetDefault("SPEECH_FRAME_POSITION_Y", 0)
|
||||
|
||||
-- Tactic Settings
|
||||
CzechQuestsAddon_Store.config.TACTIC_ENABLED = SetDefault("TACTIC_ENABLED", true)
|
||||
CzechQuestsAddon_Store.config.TACTIC_TEXT_FONT_SIZE = SetDefault("TACTIC_TEXT_FONT_SIZE", 12)
|
||||
CzechQuestsAddon_Store.config.TACTIC_TEXT_FONT_NAME = SetDefault("TACTIC_TEXT_FONT_NAME", 'frizquadratatt_cz.ttf')
|
||||
-- Encounter Settings
|
||||
CzechQuestsAddon_Store.config.ENCOUNTER_ENABLED = SetDefault("ENCOUNTER_ENABLED", true)
|
||||
CzechQuestsAddon_Store.config.ENCOUNTER_TEXT_FONT_SIZE = SetDefault("ENCOUNTER_TEXT_FONT_SIZE", 12)
|
||||
CzechQuestsAddon_Store.config.ENCOUNTER_TEXT_FONT_NAME = SetDefault("ENCOUNTER_TEXT_FONT_NAME", 'frizquadratatt_cz.ttf')
|
||||
end
|
||||
|
||||
-- Event handler frame
|
||||
|
@ -64,7 +64,7 @@ local function OnEvent(self, event, addonName, ...)
|
|||
addon.API.InitQuests()
|
||||
addon.API.InitSpeeches()
|
||||
if (WOW_PROJECT_ID ~= WOW_PROJECT_CLASSIC) then
|
||||
addon.API.InitTactics()
|
||||
addon.API.InitEncounters()
|
||||
end
|
||||
self:UnregisterEvent("ADDON_LOADED")
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue