Add quantity to choose-elem-button

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
Hermios
Long Handed Inserter
Long Handed Inserter
Posts: 80
Joined: Sat Aug 13, 2016 2:57 pm
Contact:

Add quantity to choose-elem-button

Post by Hermios »

Hi guys
Thanks a lot for the new version, still in test :D
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
Wip-Sama
Manual Inserter
Manual Inserter
Posts: 4
Joined: Fri Jun 17, 2016 9:45 am
Contact:

Re: Add quantity to choose-elem-button

Post by Wip-Sama »

Did you find an alternative to do this?
User avatar
rimbas
Burner Inserter
Burner Inserter
Posts: 12
Joined: Thu May 18, 2017 10:00 pm
Contact:

Re: Add quantity to choose-elem-button

Post by rimbas »

Bumping for interest to have a quantity selector in addition to the filter on the "choose-elem-button" element.

Image
User avatar
Stringweasel
Filter Inserter
Filter Inserter
Posts: 469
Joined: Thu Apr 27, 2017 8:22 pm
Contact:

Re: Add quantity to choose-elem-button

Post by Stringweasel »

+1 Would be very useful!
Alt-F4 Author | Factorio Modder
Probably known for: (Configurable) Valves | Better Victory Screen | Space Spidertron | Fluidic Power
Official Contributor to Space Exploration
Pi-C
Smart Inserter
Smart Inserter
Posts: 1769
Joined: Sun Oct 14, 2018 8:13 am
Contact:

Re: Add quantity to choose-elem-button

Post 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.)
A good mod deserves a good changelog. Here's a tutorial (WIP) about Factorio's way too strict changelog syntax!
curiosity
Filter Inserter
Filter Inserter
Posts: 684
Joined: Wed Sep 11, 2019 4:13 pm
Contact:

Re: Add quantity to choose-elem-button

Post 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.
User avatar
Stringweasel
Filter Inserter
Filter Inserter
Posts: 469
Joined: Thu Apr 27, 2017 8:22 pm
Contact:

Re: Add quantity to choose-elem-button

Post 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 :D
Alt-F4 Author | Factorio Modder
Probably known for: (Configurable) Valves | Better Victory Screen | Space Spidertron | Fluidic Power
Official Contributor to Space Exploration
User avatar
Quezler
Filter Inserter
Filter Inserter
Posts: 264
Joined: Fri Mar 25, 2016 6:37 pm
Contact:

Re: Add quantity to choose-elem-button

Post 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.
User avatar
Osmo
Fast Inserter
Fast Inserter
Posts: 137
Joined: Wed Oct 23, 2024 12:08 pm
Contact:

Re: Add quantity to choose-elem-button

Post by Osmo »

+1
User avatar
Edward_shooter
Manual Inserter
Manual Inserter
Posts: 1
Joined: Thu Aug 28, 2025 4:45 pm
Contact:

Re: Add quantity to choose-elem-button

Post 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.)
Post Reply

Return to “Modding interface requests”