Skip to content

Commit

Permalink
Zone ability position and mover tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
Wutname1 committed Dec 13, 2022
1 parent 1753838 commit b3a7a3f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
4 changes: 2 additions & 2 deletions Core/Framework.lua
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,8 @@ local DBdefault = {
['TalkingHead'] = 'TOP,SpartanUI,TOP,0,-18',
['AltPowerBar'] = 'TOP,SpartanUI,TOP,0,-18',
['WidgetPowerBarContainer'] = 'TOP,SpartanUI,TOP,0,-50',
['ZoneAbility'] = 'CENTER,SpartanUI,CENTER,0,-172',
['BossButton'] = 'CENTER,SpartanUI,CENTER,0,-172',
['ZoneAbility'] = 'BOTTOM,SpartanUI,BOTTOM,0,210',
['BossButton'] = 'BOTTOM,SpartanUI,BOTTOM,0,210',
['AlertFrame'] = 'BOTTOM,SpartanUI,BOTTOM,0,215',
['VehicleLeaveButton'] = 'BOTTOM,SpartanUI,BOTTOM,0,180'
},
Expand Down
19 changes: 10 additions & 9 deletions Modules/Artwork/BlizzMovers.lua
Original file line number Diff line number Diff line change
Expand Up @@ -83,26 +83,27 @@ end

local function AbilityBars()
local ExtraAbilityContainer = _G['ExtraAbilityContainer']
local ExtraActionBarFrame = _G['ExtraActionBarFrame']
local ZoneAbilityFrame = _G['ZoneAbilityFrame']
-- local ExtraActionBarFrame = _G['ExtraActionBarFrame']
-- local ZoneAbilityFrame = _G['ZoneAbilityFrame']

-- ZoneAbility
local ZoneAbilityHolder = GenerateHolder('ZoneAbility')
AttachToHolder(ZoneAbilityFrame, ZoneAbilityHolder)
-- local ZoneAbilityHolder = GenerateHolder('ZoneAbility')
-- AttachToHolder(ZoneAbilityFrame, ZoneAbilityHolder)

-- Extra Action / Boss Bar
local BossButtonHolder = GenerateHolder('BossButton')
AttachToHolder(ExtraActionBarFrame, BossButtonHolder)
BossButtonHolder:SetSize(100, 70)
-- AttachToHolder(ExtraActionBarFrame, BossButtonHolder)
AttachToHolder(ExtraAbilityContainer, BossButtonHolder)

-- Hook the SetPoint function to prevent the frame from moving
hooksecurefunc(ZoneAbilityFrame, 'SetPoint', ResetPosition)
hooksecurefunc(ExtraActionBarFrame, 'SetPoint', ResetPosition)
-- hooksecurefunc(ZoneAbilityFrame, 'SetPoint', ResetPosition)
-- hooksecurefunc(ExtraActionBarFrame, 'SetPoint', ResetPosition)
hooksecurefunc(ExtraAbilityContainer, 'SetPoint', ResetPosition)

-- Create the movers
MoveIt:CreateMover(ZoneAbilityHolder, 'ZoneAbility', 'Zone ability', nil, 'Blizzard UI')
MoveIt:CreateMover(BossButtonHolder, 'BossButton', 'Boss Button', nil, 'Blizzard UI')
-- MoveIt:CreateMover(ZoneAbilityHolder, 'ZoneAbility', 'Zone ability', nil, 'Blizzard UI')
MoveIt:CreateMover(BossButtonHolder, 'BossButton', 'Extra action button', nil, 'Blizzard UI')
end

local function AlertFrame()
Expand Down

0 comments on commit b3a7a3f

Please sign in to comment.