Skip to content

Commit

Permalink
wip: cleanup code structure
Browse files Browse the repository at this point in the history
  • Loading branch information
ffainy committed Jun 12, 2022
1 parent aaee602 commit 94e4cc2
Show file tree
Hide file tree
Showing 6 changed files with 448 additions and 406 deletions.
2 changes: 1 addition & 1 deletion config/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,7 @@ C.AccountSettings = {
NameplateAuraFilterList = { [1] = {}, [2] = {} },
DebuffWatcherList = {},
RaidAuraWatch = {},
NPMajorSpells = {},
MajorSpellsList = {},
CornerSpellsList = {},
PartySpellsList = {},
PartyAurasList = {},
Expand Down
17 changes: 14 additions & 3 deletions core/staticpopups.lua
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,23 @@ StaticPopupDialogs.FREEUI_RELOADUI = {
hideOnEscape = true,
}

StaticPopupDialogs.FREEUI_RESET_MAJOR_SPELLS = {
text = C.RED_COLOR .. L['Are you sure to restore default Major Spells List?'],
StaticPopupDialogs.FREEUI_RESET_MAJOR_SPELLS_LIST = {
text = C.RED_COLOR .. L['Reset to default list?'],
button1 = _G.YES,
button2 = _G.NO,
OnAccept = function()
_G.FREE_ADB['NPMajorSpells'] = {}
_G.FREE_ADB['MajorSpellsList'] = {}
_G.ReloadUI()
end,
whileDead = 1,
}

StaticPopupDialogs['FREEUI_RESET_PARTY_AURA_LIST'] = {
text = C.RED_COLOR .. L['Reset to default list?'],
button1 = _G.YES,
button2 = _G.NO,
OnAccept = function()
_G.FREE_ADB['PartyAurasList'] = {}
_G.ReloadUI()
end,
whileDead = 1,
Expand Down
Loading

0 comments on commit 94e4cc2

Please sign in to comment.