Edit Mode Expanded

Edit Mode Expanded

662k Downloads

Save/Restore settings based on selected Edit Mode profile

teelolws opened this issue ยท 5 comments

commented

Planned feature: will base frame's positions based on the settings saved per Edit Mode profile.

It currently just uses a simple saved variable per character.

commented

This would be a great feature especially when playing on a multiple chars

commented

Latest update should provide this support. Needs more testing before I can publish it though.

commented

Edit: For some chars its working but for others its not. Also every time when i change the profile the position of EME elemengs are getting reset to their default position. Got this 2 errors

3x ...d/libs/EditModeExpanded-1.0-13/EditModeExpanded-1.0.lua:851: attempt to index field 'settings' (a nil value)
[string "@Interface/AddOns/EditModeExpanded/libs/EditModeExpanded-1.0-13/EditModeExpanded-1.0.lua"]:851: in function <...d/libs/EditModeExpanded-1.0/EditModeExpanded-1.0.lua:848>
[string "=[C]"]: ?
[string "=[C]"]: in function `Hide'
[string "@Interface/FrameXML/UIParent.lua"]:2828: in function `SetUIPanel'
[string "@Interface/FrameXML/UIParent.lua"]:2859: in function `MoveUIPanel'
[string "@Interface/FrameXML/UIParent.lua"]:2890: in function `HideUIPanel'
[string "@Interface/FrameXML/UIParent.lua"]:2556: in function <Interface/FrameXML/UIParent.lua:2548>
[string "=[C]"]: in function `SetAttribute'
[string "@Interface/FrameXML/UIParent.lua"]:3170: in function `HideUIPanel'
[string "@Interface/FrameXML/EditModeManager.lua"]:122: in function `onCloseCallback'
[string "@Interface/SharedXML/SharedUIPanelTemplates.lua"]:127: in function <Interface/SharedXML/SharedUIPanelTemplates.lua:122>
[string "=[C]"]: in function `Click'
[string "@Interface/FrameXML/UIParent.lua"]:3980: in function `ToggleGameMenu'
[string "TOGGLEGAMEMENU"]:1: in function <[string "TOGGLEGAMEMENU"]:1>

Locals:
db = <table> {
 defaultY = 4
 minimap = <table> {
 }
 defaultX = 1856.333496
}
(*temporary) = nil
(*temporary) = 11
(*temporary) = nil
(*temporary) = "attempt to index field 'settings' (a nil value)"
framesDB = <table> {
 20 = <table> {
 }
 13 = <table> {
 }
 15 = <table> {
 }
 18 = <table> {
 }
 19 = <table> {
 }
 14 = <table> {
 }
 16 = <table> {
 }
 17 = <table> {
 }
}
frame = QueueStatusButton {
 0 = <userdata>
 OnLeave = <function> defined @Interface/FrameXML/QueueStatusFrame.lua:202
 Highlight = Texture {
 }
 UpdateGlow = <function> defined @Interface/FrameXML/QueueStatusFrame.lua:287
 UpdateMagnetismRegistration = <function> defined @Interface/AddOns/EditModeExpanded/libs/EditModeExpanded-1.0/EditModeExpanded-1.0.lua:188
 IsPokeEndAnimFinished = <function> defined @Interface/FrameXML/QueueStatusFrame.lua:158
 GetSettingValue = <function> defined @Interface/AddOns/EditModeExpanded/libs/EditModeExpanded-1.0/EditModeExpanded-1.0.lua:313
 OnDragStart = <function> defined @Interface/FrameXML/EditModeSystemTemplates.lua:564
 CheckTutorials = <function> defined @Interface/FrameXML/QueueStatusFrame.lua:249
 MoveWithArrowKey = <function> defined @Interface/AddOns/EditModeExpanded/libs/EditModeExpanded-1.0/EditModeExpanded-1.0.lua:198
 OnShow = <function> defined @Interface/FrameXML/QueueStatusFrame.lua:269
 OnDragStop = <function> defined @Interface/FrameXML/EditModeSystemTemplates.lua:574
 IsPokeInitAnimFinished = <function> defined @Interface/FrameXML/QueueStatusFrame.lua:152
 UpdateSystemSettingValue = <function> defined @Interface/FrameXML/EditModeSystemTemplates.lua:131
 EyeHighlightAnim = AnimationGroup {
 }
 IsVerticallyAlignedWithFrame = <function> defined @Interface/FrameXML/EditModeSystemTemplates.lua:328
 SetGlowLock = <function> defined @Interface/FrameXML/QueueStatusFrame.lua:282
 ResetToDefaultPosition = <function> defined @Interface/FrameXML/EditModeSystemTemplates.lua:148
 Eye = QueueStatusButtonIcon {
 }
 ShouldShowSetting = <function> defined @Interface/FrameXML/EditModeSystemTemplates.lua:284
 SetSnappedToFrame = <function> defined @Interface/FrameXML/EditModeSystemTemplates.lua:437
 SelectSystem = <function> defined @Interface/AddOns/EditModeExpanded/libs/EditModeExpanded-1.0/EditModeExpanded-1.0.lua:225
 UseSettingAltName = <function> defined @Interface/FrameXML/EditModeSystemTemplates.lua:274
 GetFrameMagneticEligibility = <function> defined @Interface/FrameXML/EditModeSystemTemplates.lua:489
 ClearDirtySetting = <function> defined @Interface/FrameXML/EditModeSystemTemplates.lua:127
 IsInitialized = <function> defined @Interface/FrameXML/EditModeSystemTemplates.lua:227
 UpdateSystemSetting = <function> defined @Interface/FrameXML/EditModeSystemTemplates.lua:213
 ShouldStartPokeInitAnim = <function> defined @Interface/FrameXML/QueueStatusFrame.lua:149
 minimapLDBIcon = <table> {
 }
 HasActiveChanges = <function> defined @Interface/FrameXML/EditModeSystemTemplates.lua:244
 GetScaledCenter = <function> defined @Interface/FrameXML/EditModeSystemTemplates.lua:348
 ClearHighlight = <function> defined @Interface/AddOns/EditModeExpanded/libs/EditModeExpanded-1.0/EditModeExpanded-1.0.lua:251
 systemNameString = "LFG"
 DoesSettingDisplayValueEqual = <function> defined @Interface/FrameXML/EditModeSystemTemplates.lua:268
 OnLoad = <function> defined @Interface/FrameXML/QueueStatusFrame.lua:134
 IsInitialEyeAnimFinished = <function> defined @Interface/FrameXML/QueueStatusFrame.lua:140
 OnEditModeEnter = <function> defined @Interface/FrameXML/EditModeSystemTemplates.lua:544
 GetSettingValueBool = <function> defined @Interface/FrameXML/EditModeSystemTemplates.lua:259
 DropDown = QueueStatusButtonDropDown {
 }
 DoesSettingValueEqual = <function> defined @Interface/FrameXML/EditModeSystemTemplates.lua:263
 isSelected = false
 isHighlighted = false
 OnSystemHide = <function> defined @Interface/FrameXML/EditModeSystemTemplates.lua:29
 IsFoundInitialAnimFinished = <function> defined @Interface/FrameXML/QueueStatusFrame.lua:143
 ShouldResetSettingsDialogAnchors = <function> defined @Interface/FrameXML/EditModeSystemTempl
2x ...d/libs/EditModeExpanded-1.0-13/EditModeExpanded-1.0.lua:842: attempt to index field 'settings' (a nil value)
[string "@Interface/AddOns/EditModeExpanded/libs/EditModeExpanded-1.0-13/EditModeExpanded-1.0.lua"]:842: in function <...d/libs/EditModeExpanded-1.0/EditModeExpanded-1.0.lua:839>
[string "=[C]"]: ?
[string "=[C]"]: in function `SetShown'
[string "@Interface/AddOns/EditModeExpanded/libs/EditModeExpanded-1.0-13/EditModeExpanded-1.0.lua"]:295: in function <...d/libs/EditModeExpanded-1.0/EditModeExpanded-1.0.lua:291>

Locals:
db = <table> {
 enabled = true
 defaultY = 4
 defaultX = 1856.333496
 minimap = <table> {
 }
}
(*temporary) = nil
(*temporary) = 11
(*temporary) = nil
(*temporary) = "attempt to index field 'settings' (a nil value)"
framesDB = <table> {
 20 = <table> {
 }
 13 = <table> {
 }
 15 = <table> {
 }
 18 = <table> {
 }
 19 = <table> {
 }
 14 = <table> {
 }
 16 = <table> {
 }
 17 = <table> {
 }
}
frame = QueueStatusButton {
 0 = <userdata>
 OnLeave = <function> defined @Interface/FrameXML/QueueStatusFrame.lua:202
 Highlight = Texture {
 }
 UpdateGlow = <function> defined @Interface/FrameXML/QueueStatusFrame.lua:287
 UpdateMagnetismRegistration = <function> defined @Interface/AddOns/EditModeExpanded/libs/EditModeExpanded-1.0/EditModeExpanded-1.0.lua:188
 IsPokeEndAnimFinished = <function> defined @Interface/FrameXML/QueueStatusFrame.lua:158
 GetSettingValue = <function> defined @Interface/AddOns/EditModeExpanded/libs/EditModeExpanded-1.0/EditModeExpanded-1.0.lua:313
 OnDragStart = <function> defined @Interface/FrameXML/EditModeSystemTemplates.lua:564
 CheckTutorials = <function> defined @Interface/FrameXML/QueueStatusFrame.lua:249
 MoveWithArrowKey = <function> defined @Interface/AddOns/EditModeExpanded/libs/EditModeExpanded-1.0/EditModeExpanded-1.0.lua:198
 OnShow = <function> defined @Interface/FrameXML/QueueStatusFrame.lua:269
 OnDragStop = <function> defined @Interface/FrameXML/EditModeSystemTemplates.lua:574
 IsPokeInitAnimFinished = <function> defined @Interface/FrameXML/QueueStatusFrame.lua:152
 UpdateSystemSettingValue = <function> defined @Interface/FrameXML/EditModeSystemTemplates.lua:131
 EyeHighlightAnim = AnimationGroup {
 }
 IsVerticallyAlignedWithFrame = <function> defined @Interface/FrameXML/EditModeSystemTemplates.lua:328
 SetGlowLock = <function> defined @Interface/FrameXML/QueueStatusFrame.lua:282
 ResetToDefaultPosition = <function> defined @Interface/FrameXML/EditModeSystemTemplates.lua:148
 Eye = QueueStatusButtonIcon {
 }
 ShouldShowSetting = <function> defined @Interface/FrameXML/EditModeSystemTemplates.lua:284
 SetSnappedToFrame = <function> defined @Interface/FrameXML/EditModeSystemTemplates.lua:437
 SelectSystem = <function> defined @Interface/AddOns/EditModeExpanded/libs/EditModeExpanded-1.0/EditModeExpanded-1.0.lua:225
 UseSettingAltName = <function> defined @Interface/FrameXML/EditModeSystemTemplates.lua:274
 GetFrameMagneticEligibility = <function> defined @Interface/FrameXML/EditModeSystemTemplates.lua:489
 ClearDirtySetting = <function> defined @Interface/FrameXML/EditModeSystemTemplates.lua:127
 IsInitialized = <function> defined @Interface/FrameXML/EditModeSystemTemplates.lua:227
 UpdateSystemSetting = <function> defined @Interface/FrameXML/EditModeSystemTemplates.lua:213
 ShouldStartPokeInitAnim = <function> defined @Interface/FrameXML/QueueStatusFrame.lua:149
 minimapLDBIcon = <table> {
 }
 HasActiveChanges = <function> defined @Interface/FrameXML/EditModeSystemTemplates.lua:244
 GetScaledCenter = <function> defined @Interface/FrameXML/EditModeSystemTemplates.lua:348
 ClearHighlight = <function> defined @Interface/AddOns/EditModeExpanded/libs/EditModeExpanded-1.0/EditModeExpanded-1.0.lua:251
 systemNameString = "LFG"
 DoesSettingDisplayValueEqual = <function> defined @Interface/FrameXML/EditModeSystemTemplates.lua:268
 OnLoad = <function> defined @Interface/FrameXML/QueueStatusFrame.lua:134
 IsInitialEyeAnimFinished = <function> defined @Interface/FrameXML/QueueStatusFrame.lua:140
 OnEditModeEnter = <function> defined @Interface/FrameXML/EditModeSystemTemplates.lua:544
 GetSettingValueBool = <function> defined @Interface/FrameXML/EditModeSystemTemplates.lua:259
 DropDown = QueueStatusButtonDropDown {
 }
 DoesSettingValueEqual = <function> defined @Interface/FrameXML/EditModeSystemTemplates.lua:263
 isSelected = false
 isHighlighted = true
 OnSystemHide = <function> defined @Interface/FrameXML/EditModeSystemTemplates.lua:29
 IsFoundInitialAnimFinished = <function> defined @Interface/FrameXML/QueueStatusFrame.lua:143
 ShouldResetSettingsDialogAnchors = <function> defined @Interface/FrameXML/Edit
commented

Yeah I'm having issues with that LFG button too. I'll keep trying.

commented

Regular character profiles are also fine to be honest (if this is too difficult to implement)