Page 1 of 1
LuaGuiElement::choose-elem-button.type = recipe, technology
Posted: Sun Aug 20, 2017 10:34 am
by Bilka
Make it possible to make the player choose a recipe or a technology using choose-elem-button, not just the existing types ( "item", "tile", "entity", or "signal") by adding the types recipe and technology.
Re: LuaGuiElement::choose-elem-button.type = recipe, technology
Posted: Fri Aug 25, 2017 1:07 pm
by Bergzwerg
i have stumbled on not being able to use recipes aswell and would like to use it.
Re: LuaGuiElement::choose-elem-button.type = recipe, technology
Posted: Sat Sep 09, 2017 3:42 am
by Rseding91
When you say recipe/technology do you mean "all of the recipes the player has unlocked as they see in their crafting GUI" or do you mean "All recipes that exist in the game"? The same question for technologies.
Re: LuaGuiElement::choose-elem-button.type = recipe, technology
Posted: Sat Sep 09, 2017 6:43 am
by Bilka
In my case, I meant all of them, I want to use the gui to unlock recipes (or technologies). My question here is how it is done for items. Showing everything allows me to code "invalid selections" so that i can simply remove un-unlocked (or already unlocked) recipes/technologies after the player selects them.
I don't include hidden ones in my definition of all of them.
Re: LuaGuiElement::choose-elem-button.type = recipe, technology
Posted: Thu Sep 28, 2017 7:54 pm
by Rseding91
I've added fluid and recipe support for 0.16 but technology is a little more complex.
Technology icons don't fit in the standard button size (32x32) meaning they're going to be near impossible to understand when squashed to fit or the button will be massive.
Re: LuaGuiElement::choose-elem-button.type = recipe, technology
Posted: Thu Sep 28, 2017 7:58 pm
by Bilka
Rseding91 wrote:I've added fluid and recipe support for 0.16 but technology is a little more complex.
Thank you!
Rseding91 wrote:Technology icons don't fit in the standard button size (32x32) meaning they're going to be near impossible to understand when squashed to fit or the button will be massive.
Would it be possible to use the left part of the normal technology gui as the gui to do the selections in? Then the fact that the button itself shows only a small graphic shouldn't matter too much. It's not too important to me though, I mostly cared about the recipes and would've used the technologies as a workaround.
Re: LuaGuiElement::choose-elem-button.type = recipe, technology
Posted: Thu Sep 28, 2017 8:19 pm
by eradicator
Rseding91 wrote:I've added fluid and recipe support for 0.16 but technology is a little more complex.
Technology icons don't fit in the standard button size (32x32) meaning they're going to be near impossible to understand when squashed to fit or the button will be massive.
I've used some sprite buttons with technology icons in a .14 mod (e.g. "technology/military") and even downscaled to 32² they looked just fine.