Edit Mode Expanded

Edit Mode Expanded

662k Downloads

frames disappear after moving

tidehunter1 opened this issue ยท 0 comments

commented

i'm using a oUF layout in conjunction with EME, works quite well,
STORE_EDITMODE is set in the .toc and init like this:

if not STORE_EDITMODE then
    STORE_EDITMODE = {
        ["Player"] = {},
        ["Target"] = {},
    }
end

then during oUF:Factory i register the frames like this:

self:SetActiveStyle("Player")
local player = self:Spawn("player", "oUF_Player")
lib:RegisterFrame(player, "Player", STORE_EDITMODE["Player"])

as mentioned works well until i move two frames(player and target) within the same editmode session then the first frame moved will disappear off the screen, pressing "reset" brings them back(positions are reset) or /reload sets them to their desired position.

also tried doing:

hooksecurefunc(EditModeManagerFrame, "ExitEditMode", function()
player:SetPoint(......

for now this this will have to do

EDIT:
noticed in the main project EME you use lib:RepositionFrame() throughout the various frames, calling that instead of SetPoint by itself worked well

Issue solved.