Page 1 of 1
Add quantity to choose-elem-button
Posted: Sat Dec 16, 2017 7:11 pm
by Hermios
Hi guys
Thanks a lot for the new version, still in test

So now, a new suggestion:
In choose-elem-button, give the possibility to add constant quantity rather than an element.
Would be great!
Many thanks
Hermios
Re: Add quantity to choose-elem-button
Posted: Mon Jan 08, 2024 1:23 pm
by Wip-Sama
Did you find an alternative to do this?
Re: Add quantity to choose-elem-button
Posted: Fri Mar 15, 2024 8:54 pm
by rimbas
Bumping for interest to have a quantity selector in addition to the filter on the "choose-elem-button" element.

Re: Add quantity to choose-elem-button
Posted: Thu Aug 01, 2024 12:51 pm
by Stringweasel
+1 Would be very useful!
Re: Add quantity to choose-elem-button
Posted: Thu Aug 01, 2024 3:16 pm
by Pi-C
+1. However, I'd like to be able to make the quantity selector optional. (Use case: Currently working on GUIs for Autodrive where players should be able to set preferred fuel/ammo items for a vehicle, but shouldn't be able to set the quantity unless the vehicle grid contains a certain equipment.)
Re: Add quantity to choose-elem-button
Posted: Thu Aug 01, 2024 4:09 pm
by curiosity
By the way, the original request is for the "or choose a constant" selector you see when setting circuit conditions, not for specifying quantity.
Re: Add quantity to choose-elem-button
Posted: Thu Aug 01, 2024 4:44 pm
by Stringweasel
curiosity wrote: Thu Aug 01, 2024 4:09 pm
By the way, the original request is for the "or choose a constant" selector you see when setting circuit conditions, not for specifying quantity.
Yeah, that's whay my +1 is for

Re: Add quantity to choose-elem-button
Posted: Sat Sep 06, 2025 7:02 am
by Quezler
+1, in the past i have ran into this limitation on occasion, it would be nice if lua was able to call forth that gui.
Re: Add quantity to choose-elem-button
Posted: Sat Sep 06, 2025 7:57 am
by Osmo
+1
Re: Add quantity to choose-elem-button
Posted: Sat Sep 06, 2025 1:09 pm
by Edward_shooter
+1. Also, the new choose-elem-button should show its constant number.
Currently, the value/number fields do not apply to the choose-elem-button.
A workaround is to fake it using a rich-text button:
Code: Select all
gui_element.add{
name = "test_button",
type = "button",
style = "slot_button_in_shallow_frame",
caption = "[color=white][font=scenario-message-dialog]1.0k[/font][/color]"
}
(Note: the font colour is incorrect on hover.)