chore: flatten Altoholic-Addon/ wrapper + add standard .gitignore/.gitattributes
Each DataStore_* / Altoholic_* addon now lives at the repo root, matching the Exiles fork-layout convention (one folder per addon, no wrapper dir).
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
if not DataStore then return end
|
||||
|
||||
local addonName = "DataStore_Quests"
|
||||
local addon = _G[addonName]
|
||||
local L = LibStub("AceLocale-3.0"):GetLocale(addonName)
|
||||
|
||||
function addon:SetupOptions()
|
||||
DataStore:AddOptionCategory(DataStoreQuestsOptions, addonName, "DataStore")
|
||||
|
||||
-- localize options
|
||||
DataStoreQuestsOptions_TrackTurnInsText:SetText(L["Track Quest Turn-ins"])
|
||||
DataStoreQuestsOptions_AutoUpdateHistoryText:SetText(L["Auto-update History"])
|
||||
|
||||
DataStore:SetCheckBoxTooltip(DataStoreQuestsOptions_TrackTurnIns, L["TRACK_TURNINS_TITLE"], L["TRACK_TURNINS_ENABLED"], L["TRACK_TURNINS_DISABLED"])
|
||||
DataStore:SetCheckBoxTooltip(DataStoreQuestsOptions_AutoUpdateHistory, L["AUTO_UPDATE_TITLE"], L["AUTO_UPDATE_ENABLED"], L["AUTO_UPDATE_DISABLED"])
|
||||
|
||||
-- restore saved options to gui
|
||||
DataStoreQuestsOptions_TrackTurnIns:SetChecked(DataStore:GetOption(addonName, "TrackTurnIns"))
|
||||
DataStoreQuestsOptions_AutoUpdateHistory:SetChecked(DataStore:GetOption(addonName, "AutoUpdateHistory"))
|
||||
end
|
||||
Reference in New Issue
Block a user