Cant find certain documentation

Place to get help with not working mods / modding interface.
Summoner99
Burner Inserter
Burner Inserter
Posts: 7
Joined: Thu Jun 04, 2020 5:33 pm
Contact:

Cant find certain documentation

Post 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

User avatar
Cooldude2606
Long Handed Inserter
Long Handed Inserter
Posts: 99
Joined: Sat Sep 16, 2017 9:04 pm
Contact:

Re: Cant find certain documentation

Post 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
--- Developer for Explosive Gaming and Clusterio. Please contact me via our Discord. ---

Post Reply

Return to “Modding help”