Jump to content

Widget z-index


Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
  • Create New...