Skip to content

Commit

Permalink
Bump TOC & remove edit mode code as for some reason part of it exists…
Browse files Browse the repository at this point in the history
… in wrath now
  • Loading branch information
Wutname1 committed Aug 3, 2023
1 parent 44afe37 commit 287c028
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 27 deletions.
25 changes: 0 additions & 25 deletions Modules/UnitFrames/Framework.lua
Original file line number Diff line number Diff line change
Expand Up @@ -158,31 +158,6 @@ function UF:OnEnable()
-- Build options
UF.Options:Initialize()

if EditModeManagerFrame then
local CheckedItems = {}
local frames = { ['boss'] = 'Boss', ['raid'] = 'Raid', ['arena'] = 'Arena', ['party'] = 'Party' }
for k, v in pairs(frames) do
EditModeManagerFrame.AccountSettings.Settings[v .. 'Frames'].Button:HookScript('OnClick', function(...)
if EditModeManagerFrame.AccountSettings.Settings[v .. 'Frames']:IsControlChecked() then
CheckedItems[k] = v
else
CheckedItems[k] = nil
end

SUI.MoveIt:MoveIt(k)
end)
end

EditModeManagerFrame:HookScript('OnHide', function()
for k, v in pairs(CheckedItems) do
EditModeManagerFrame.AccountSettings.Settings[v .. 'Frames']:SetControlChecked(false)
SUI.MoveIt:MoveIt(k)
end
MoveIt.MoverWatcher:Hide()
MoveIt.MoveEnabled = false
end)
end

SUI:AddChatCommand('BuffDebug', function(args)
local unit, spellId = strsplit(' ', args)

Expand Down
2 changes: 1 addition & 1 deletion SpartanUI.toc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Interface: 30400
## Interface: 30402
## Title: Spartan|cffe21f1fUI
## Notes: User Interface combining elegant artwork with well designed features.
## Version: @project-version@
Expand Down
2 changes: 1 addition & 1 deletion SpartanUI_Wrath.toc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Interface: 30401
## Interface: 30402
## Title: Spartan|cffe21f1fUI
## Notes: User Interface combining elegant artwork with well designed features.
## Version: @project-version@
Expand Down

0 comments on commit 287c028

Please sign in to comment.