DJPaul Posted January 30, 2016 Share Posted January 30, 2016 (edited) I'd like to get some tips about how I should be drawing UI elements next to Containers. Specifically, when a Chest is opened by a player, I want to draw a clickable button below the Chest. Any tips on any part of this greatly appreciated. I've not tried drawing anything to screen before, so this is pretty new to me. Happy to go read code from other mods if they've done anything similar (I had a look on the Workshop but couldn't find anything similar). Edited January 30, 2016 by DJPaul Link to comment https://forums.kleientertainment.com/forums/topic/63500-drawing-ui-elements-next-to-containers/ Share on other sites More sharing options...
zUsername Posted January 30, 2016 Share Posted January 30, 2016 Take a look: https://steamcommunity.com/sharedfiles/filedetails/?id=365119238 Look into containers_setup.lua and containerwidgetfunction.lua and search for buttoninfo2. If you want the button below the Chest just use SetPosition. Link to comment https://forums.kleientertainment.com/forums/topic/63500-drawing-ui-elements-next-to-containers/#findComment-715482 Share on other sites More sharing options...
DJPaul Posted February 1, 2016 Author Share Posted February 1, 2016 Thanks @zUsername! Link to comment https://forums.kleientertainment.com/forums/topic/63500-drawing-ui-elements-next-to-containers/#findComment-716056 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