+ Reply to Thread
Results 1 to 2 of 2

Thread: Controlling UI Z-Order

  1. #1
    Shadowlander GreenZomie's Avatar
    Join Date
    Sep 2018

    Default Controlling UI Z-Order

    I havn't been able to discern particularly from other Addons how they do this, but when I arrange Frames to form a UI I frequently get things under other things in unexpected ways.

    I had assumed that the "context" parameter from CreateFrame would (a) strictly ensure that all child objects would be on top, and- given a particular parent Frame, more recently created Frames with the same owner frame/context would again strictly be on top of previously created Frames.

    Well strata somehow comes into play but I don't see much use of it in other addons that do - seemingly - seem to arrange layers of frames properly.

    So whats the actual way of ensuring my UI's front to back order is preserved?

  2. #2
    Rift Disciple Alleja zaviel's Avatar
    Join Date
    Jul 2016


    Quote Originally Posted by GreenZomie View Post

    So whats the actual way of ensuring my UI's front to back order is preserved?
    Children are always drawn after parents, and you can use other frames as parents, not just contexts.

    So basically only use the context for the first background frame, and then parent anything else to the background.
    Quote Originally Posted by TrionBrasse View Post
    Accept that the egregious and obvious mistake you want fixed may be implemented by design and may not be a mistake at all.
    If we see it as an egregious and obvious mistake, maybe there should be more communication to tell us that it is not?
    Alleja Illvana Alea Mjolln Imalla Ketllina <Servants of None> @typhiria

+ Reply to Thread


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts