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
Cant find certain documentation
-
- Burner Inserter
- Posts: 7
- Joined: Thu Jun 04, 2020 5:33 pm
- Contact:
- Cooldude2606
- Long Handed Inserter
- Posts: 99
- Joined: Sat Sep 16, 2017 9:04 pm
- Contact:
Re: Cant find certain documentation
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
Edit: In case you also need a pointer on how to make a GUI here is a post by Bilka I have found