Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion Source/FrameHandlers/ClassResources.lua
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ local function initClassResource(classResourceFrame, localText, db)
lib:RegisterToggleInCombat(classResourceFrame)
lib:SetDontResize(classResourceFrame)
lib:RegisterResizable(classResourceFrame)
addon.registerAnchorToDropdown(classResourceFrame)
hooksecurefunc(PlayerFrameBottomManagedFramesContainer, "Layout", function()
if not shouldShow(classResourceFrame) then return end
addon.ResetFrame(classResourceFrame)
Expand Down
1 change: 0 additions & 1 deletion Source/FrameHandlers/FocusCast.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,5 @@ function addon:initFocusCastBar()
lib:SetDontResize(FocusFrameSpellBar)
lib:RegisterResizable(FocusFrameSpellBar)
lib:RegisterHideable(FocusFrameSpellBar)
addon.registerAnchorToDropdown(FocusFrameSpellBar)
end
end
1 change: 0 additions & 1 deletion Source/FrameHandlers/FocusToT.lua
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ function addon:initFocusToT()
end
end)
addon:registerSecureFrameHideable(FocusFrameToT)
addon.registerAnchorToDropdown(FocusFrameToT)
end
end

Expand Down
1 change: 0 additions & 1 deletion Source/FrameHandlers/TargetCast.lua
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ function addon:initTargetCastBar()
lib:SetDontResize(TargetFrameSpellBar)
lib:RegisterResizable(TargetFrameSpellBar, 10, 500)
lib:RegisterHideable(TargetFrameSpellBar)
addon.registerAnchorToDropdown(TargetFrameSpellBar)

lib:RegisterSlider(TargetFrameSpellBar, HUD_EDIT_MODE_SETTING_CHAT_FRAME_WIDTH, "Width",
function(newValue)
Expand Down
1 change: 0 additions & 1 deletion Source/FrameHandlers/TargetOfTarget.lua
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,5 @@ function addon:initTargetOfTarget()
end
end)
addon:registerSecureFrameHideable(TargetFrameToT)
addon.registerAnchorToDropdown(TargetFrameToT)
end
end
2 changes: 2 additions & 0 deletions Source/Locales/enus.lua
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ L["TALKING_HEAD_DD_OPT_2"] = "Dialog only, keep sound"
L["TALKING_HEAD_DD_OPT_3"] = "Always, and mute sound"
L["TALKING_HEAD_DD_OPT_4"] = "In Combat, but keep sound"
L["TALKING_HEAD_DD_OPT_5"] = "In combat, and mute sound"
L["OPTION_ANCHOR_TO_NAME"] = "Anchor To"
L["OPTION_ANCHOR_TO_DESC"] = "Enables ability to change anchoring for all custom frames"

-- Personal Resource Display
L["Health Bar"] = true
Expand Down
6 changes: 6 additions & 0 deletions Source/Options.lua
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ local defaults = {
targetFrameResize = false,
chatFrame = false,
battlefieldMap = false,
anchorToEnabled = false,
},
QueueStatusButton = {},
TotemFrame = {},
Expand Down Expand Up @@ -316,6 +317,11 @@ local options = {
desc = L["OPTION_ALLOW_SET_COORDS_DESC"],
type = "toggle",
},
anchorToEnabled = {
name = L["OPTION_ANCHOR_TO_NAME"],
desc = L["OPTION_ANCHOR_TO_DESC"],
type = "toggle",
},
playerFrame = {
name = HUD_EDIT_MODE_PLAYER_FRAME_LABEL,
desc = string.format(L["TOGGLE_ADDITIONAL_OPTIONS_SUPPORT_STRING"], HUD_EDIT_MODE_PLAYER_FRAME_LABEL),
Expand Down
5 changes: 5 additions & 0 deletions Source/RegisterFrame.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,13 @@ local lib = LibStub:GetLibrary("EditModeExpanded-1.0")
-- A simple wrapper for lib:RegisterFrame to also call RegisterCoordinates if that option is enabled

function addon:registerFrame(frame, ...)
local system = frame.system
lib:RegisterFrame(frame, ...)
if addon.db.global.EMEOptions.allowSetCoordinates then
lib:RegisterCoordinates(frame)
end
-- don't apply anchor to, to system frames
if (not system) and addon.db.global.EMEOptions.anchorToEnabled then
addon.registerAnchorToDropdown(frame)
end
end
Loading