Page 1 of 1

Cant find certain documentation

Posted: Fri Jun 05, 2020 5:42 pm
by Summoner99
I'm trying to create a mod that features a selection tool item that I'd like to attach a right-click menu too. Kind of like how you can right-click a deconstruction planner and select items, I'd like to be able to select the different types of ore (including oil) and have a slider (maybe a couple of sliders but probably just the one).

I'm fine with reading the documentation but I haven't been able to find documentation regarding the creation of a GUI menu. Thanks for the help.

edit: typo

Re: Cant find certain documentation

Posted: Tue Jun 09, 2020 2:57 pm
by Cooldude2606
You will want to use the event on_mod_item_opened which is called when the player uses the "Open item GUI" (default is right mouse button) control on an item defined with the "mod-openable" flag.

Edit: In case you also need a pointer on how to make a GUI here is a post by Bilka I have found