WoW LibEditModeOverride addon Dragonflight/Wrath of the Lich King Classic 2026
logo
wow addon LibEditModeOverride

LibEditModeOverride

Game Version: 10.0.0
Total Downloads: 202
Updated: Dec 31, 2022
Created: Nov 7, 2022
download LibEditModeOverrideDownload Earlier Versions

Earlier Versions

Name Size Uploaded Game Version Downloads
1.0.10 release 6.55 KB Dec 31, 2022 10.0.0 38 download LibEditModeOverride 1.0.10 releaseDownload
1.0.9 release 6.34 KB Nov 26, 2022 10.0.0 53 download LibEditModeOverride 1.0.9 releaseDownload
1.0.8 release 6.28 KB Nov 10, 2022 10.0.0 32 download LibEditModeOverride 1.0.8 releaseDownload
1.0.7 release 6.06 KB Nov 9, 2022 10.0.0 16 download LibEditModeOverride 1.0.7 releaseDownload
1.0.5 release 5.98 KB Nov 8, 2022 10.0.0 23 download LibEditModeOverride 1.0.5 releaseDownload
1.0.4 release 5.97 KB Nov 7, 2022 10.0.0 19 download LibEditModeOverride 1.0.4 releaseDownload
1.0.10-1-gcc99f29 alpha 6.63 KB Jan 21, 2023 10.0.0 2 download LibEditModeOverride 1.0.10-1-gcc99f29 alphaDownload
1.0.9-4-g6c9e67b alpha 6.60 KB Dec 31, 2022 10.0.0 3 download LibEditModeOverride 1.0.9-4-g6c9e67b alphaDownload
1.0.9-3-g818dffd alpha 6.55 KB Dec 31, 2022 10.0.0 3 download LibEditModeOverride 1.0.9-3-g818dffd alphaDownload
1.0.9-2-gad283c9 alpha 6.47 KB Dec 25, 2022 10.0.0 3 download LibEditModeOverride 1.0.9-2-gad283c9 alphaDownload
1.0.9-1-g53abe29 alpha 6.46 KB Dec 14, 2022 10.0.0 3 download LibEditModeOverride 1.0.9-1-g53abe29 alphaDownload
1.0.7-1-ga317f7c alpha 6.07 KB Nov 9, 2022 10.0.0 4 download LibEditModeOverride 1.0.7-1-ga317f7c alphaDownload
1.0.5-2-gf9f0ef1 alpha 6.06 KB Nov 8, 2022 10.0.0 3 download LibEditModeOverride 1.0.5-2-gf9f0ef1 alphaDownload

Description

Share this:

Modify anchors and settings of frames controlled by edit mode without
triggering taint issues or requiring a /reload.

lua
local LibEditModeOverride = LibStub("LibEditModeOverride-1.0")
LibEditModeOverride:LoadLayouts()
LibEditModeOverride:ReanchorFrame(MainMenuBar, "TOP", UIParent)
LibEditModeOverride:ApplyChanges()

Usage

Initialization and saving

LibEditModeOverride:LoadLayouts()

Required to call before using any other functions in this library. Queries and saves from
the Blizzard API last saved edit mode frame settings and positions. You will
need to call this again if the edit mode UI updates the layouts.

LibEditModeOverride:AreLayoutsLoaded()

Has LibEditModeOverride:LoadLayouts() been called at some point?

LibEditModeOverride:ApplyChanges()

Save any changes made and apply any layout changes to the frames. Does not work
during combat.

LibEditModeOverride:SaveOnly()

Save any changes made. Works during combat.

Frame configuration

LibEditModeOverride:ReanchorFrame(frame, ...)

For a frame that is managed by edit mode change the default anchor. Uses the
same parameters as a frame:SetPoint(...) call for the anchor.

LibEditModeOverride:SetFrameSetting(frame, setting, value)

Set an edit mode setting on an edit mode managed frame. Use the enumerations
found in the Blizzard Lua dumps for the setting parameter. See
https://github.com/Gethe/wow-ui-source/blob/live/Interface/FrameXML/EditModePresetLayouts.lua

LibEditModeOverride:SetGlobalSetting(setting, value)

Set an edit mode account-wide setting. This is just an alias for
C_EditMode.SetAccountSetting. This setting won’t affect the UI outside of edit
mode.

LibEditModeOverride:HasEditModeSettings(frame)

Does this frame have edit mode settings available?

LibEditModeOverride:GetFrameSetting(frame, setting)

Get the value of a specific edit mode setting on an edit mode managed frame.
Use the enumerations found in the Blizzard Lua dumps for the setting parameter.

LibEditModeOverride:GetGlobalSetting(setting)

Get the value of a specific edit mode account-wide setting. This setting won’t
affect the UI outside of edit mode.

Layout management

LibEditModeOverride:AddLayout(layoutName)

Create a new layout called layoutName. This name must not already be in use.

LibEditModeOverride:DeleteLayout(layoutName)

Delete a layout named layoutName. This layout must exist.

LibEditModeOverride:SetActiveLayout(layoutName)

Change the active layout to layoutName. This name must exist. You need to call
LibEditModeOverride:ApplyChanges or similar for this to take effect and persist.

LibEditModeOverride:DoesLayoutExist(layoutName)

Does a layout with the name layoutName exist?

LibEditModeOverride:GetPresetLayoutNames()

Returns a table of the names of all preset non-editable layouts.

LibEditModeOverride:GetEditableLayoutNames()

Returns a table of the names of all editable layouts.

LibEditModeOverride:CanEditActiveLayout()

Can the current layout be modified, either via edit mode or this library. If it
cannot you will need to create or select a new layout to edit.

LibEditModeOverride:GetActiveLayout()

Returns the string name of the currently active layout.

Comments

Add a comment