Ryuushu Posted January 2, 2017 Share Posted January 2, 2017 Hello, does anyone knows how to control the z-index of a widget? I'm trying to get mine to show above a modded compass widget, but so far I've had no luck. I've tried with: inv_widget:SetPosition(0,0,100) inv_widget:SetPosition(0,0,-100) inv_widget:MoveToFront() But none of them have worked. Is it because they're in different roots? The modded compass one is in controls.bottomright_root, while mine is in a invslot (controls.bottom_root.inv.toprow.inv[N]) Link to comment Share on other sites More sharing options...
Kzisor Posted January 2, 2017 Share Posted January 2, 2017 The 'y' position in a 3d space is usually the 'z-index' of a 2d space. Link to comment Share on other sites More sharing options...
Ryuushu Posted January 2, 2017 Author Share Posted January 2, 2017 Well, widgets seem to be positioned by their x and y position, so... Anyways, I solved it by moving the compass to controls.bottom_root and then calling compass:MoveToBack() Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now