Hi,
I'm working on a full rebalance mod to Rust, and I've run into the need to display HUD elements on different layers. After fumbling all day with CUI and ImageLibrary, I've finally put together something that looks decent, but I need to be able to display it over the Inventory to allow people to see the Cold, Heat and Radiation protection percentages change as they equip clothing.
Any idea what I should be doing? I'm currently creating and adding various CuiElement to a single ElementContainer - should I be parenting all this to a panel? If so, how do I kill a panel? I can't refer to it by name, since it doesn't have such a parameter.
Thanks in advance!
Solved Making UI appear on a layer above inventory?
Discussion in 'Rust Discussion' started by rotten, Aug 11, 2017.
-
I think that i may have done something like that here -> PlayerBlinder for Rust | Oxide
-
Looks all nice and lined up on your screen :O
Shame it'll be all different for different peoples UI scales and resolutions. I'd play around with both to see if your UI gets in the way of the chat box there
Like in the plugin @redBDGR linked, you need to set the parent of your container to "Overlay", right now it looks like it's set to "Under". -
Also, thank you! I was not aware of that nuance.
[DOUBLEPOST=1502415074][/DOUBLEPOST]Attached Files:
-
-
Modifiers for the UI? You can't get such things unless you get the player to declare them. Not sure how you'd be able to do that in a reliable fashion either...
[DOUBLEPOST=1502415673][/DOUBLEPOST]Also, it seems like the "perf" overlays would interfere with that UI. I don't think us plugin devs can execute a command to disable that for the player now either. Which sucks. -
I'll have a /settings box where people can simply choose their resolution out of a list of most common ones. Then we do the math and multiply the modifiers by a particular value.
Also, thank you! Your help is much appreciated.Attached Files:
-
-
[DOUBLEPOST=1502419375][/DOUBLEPOST]It is however mostly the UI scale that messes plugin-based UI's up though. -
Wulf Community Admin
-