|Go to Page...
|09-11-22, 10:08 AM
Dragonflight : EditMode System
I know it's unlikely, but just in case someone was fortunate to have had time to figure this out for their needs any idea why this is having a problem ?
Seeing as nUI and the new EditMode system doesn't get along at all, I have been attempting to rebuild at least some of nUI and use the EditMode system in it and thus removing the need of nUI's mover system.
Now, with the minimap having the smallest editmode setup I thought I would try to emulate what it does to do its stuff with the EditMode system.
Now, looking at ( https://github.com/Gethe/wow-ui-sour...ML/Minimap.xml / https://github.com/Gethe/wow-ui-sour...ML/Minimap.lua ) we have an inherit to a template in ( https://github.com/Gethe/wow-ui-sour...mTemplates.xml ) which has a mixin coded in ( https://github.com/Gethe/wow-ui-sour...mTemplates.lua )
But we don't stop there... inside the minimap editmode template there are a few key values set up with one of them being the Edit Mode System that is linked to it (Enum.EditModeSystem.Minimap) . Sounds good so far right ?
So, using this as a guide I have extracted just the dashboard display code including its scaling code and displays fine on the screen using its regular coding and .. doesn't error out when trying to use the EditMode system
I then copied the minimaps EditMode SystemMixin and renamed/edited it to work for the dashboard with Minimap replaced with Dashboard and HeaderUnderneath functions with an Etc function
With this being the first line of my Dashboard frame setting up the appropriate files
Now the regular mixin for this frame has no issues .. but yet the EditMode one did despite being created in the same way.
I am also not getting errors about trying to index Enum.EditModeSystem or Enum so attaching my code to it appears to be fine even though I can't find where Enum and EditModeSystem are set up so possibly behind the scenes.
So, to ask my question again. Anyone know why this could be happening ? Or have an example of how to use the EditMode system on your own frames.
Info Panel IDs : http://www.wowinterface.com/forums/s...818#post136818
|WoWInterface » PTR » PTR API and Graphics Changes » Dragonflight : EditMode System