Edit Mode Expanded

Edit Mode Expanded

662k Downloads

Ask for help

zhxxkeke opened this issue ยท 2 comments

commented

Hello, I have a detailed EditMode question. I used:
local layoutInfoCopy = CopyTable(EditModeManagerFrame.layoutInfo)
local activeLayout = layoutInfoCopy.layouts[layoutInfoCopy.activeLayout]
to obtain a new layoutInfo. After modifying the values inside, how should I use it to create a new layout? I've tried EditModeManagerFrame:MakeNewLayout, C_EditMode.OnLayoutAdded, and C_EditMode.SaveLayouts, but none worked. If you have time, please help me out. Thank you.

commented

Should be C_EditMode.SaveLayouts. The saveInfo needs to match as its expected in: https://warcraft.wiki.gg/wiki/API_C_EditMode.SaveLayouts

commented

Should be C_EditMode.SaveLayouts. The saveInfo needs to match as its expected in: https://warcraft.wiki.gg/wiki/API_C_EditMode.SaveLayouts

Thank you very much. I have implemented the key code as follows

table.insert(EditModeManagerFrame.layoutInfo.layouts, NewLayoutInfo)
C_EditMode.SaveLayouts(EditModeManagerFrame.layoutInfo)
C_EditMode.OnLayoutAdded(3, true, true);
C_EditMode.SetActiveLayout(3)