Number-only text field

Post Reply
Bilka
Factorio Staff
Factorio Staff
Posts: 3123
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Number-only text field

Post by Bilka »

Hi I want a number only text field but I don't want to implement it myself. Thanks.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.

User avatar
Therenas
Factorio Staff
Factorio Staff
Posts: 232
Joined: Tue Dec 11, 2018 2:10 pm
Contact:

Re: Number-only text field

Post by Therenas »

What's your use case?

Bilka
Factorio Staff
Factorio Staff
Posts: 3123
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: Number-only text field

Post by Bilka »

I won't have to sanitize user input for "not number" in textfields, which allows me to avoid a lot of pcalls.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.

Nexela
Smart Inserter
Smart Inserter
Posts: 1828
Joined: Wed May 25, 2016 11:09 am
Contact:

Re: Number-only text field

Post by Nexela »

Why pcalls though........

Bilka
Factorio Staff
Factorio Staff
Posts: 3123
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: Number-only text field

Post by Bilka »

Nexela wrote:
Fri Jul 12, 2019 11:37 pm
Why pcalls though........
Lazyness. Wasn't that obvious from the first post?

(I'm also exaggerating.)
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.

User avatar
Therenas
Factorio Staff
Factorio Staff
Posts: 232
Joined: Tue Dec 11, 2018 2:10 pm
Contact:

Re: Number-only text field

Post by Therenas »

I would like to have this as well, btw.

User avatar
5thHorseman
Smart Inserter
Smart Inserter
Posts: 1193
Joined: Fri Jun 10, 2016 11:21 pm
Contact:

Re: Number-only text field

Post by 5thHorseman »

I agree that would be awesome and if you could add a slider so I don't have to put my sandwich down while mousing around in the game <3

slippycheeze
Filter Inserter
Filter Inserter
Posts: 587
Joined: Sun Jun 09, 2019 10:40 pm
Contact:

Re: Number-only text field

Post by slippycheeze »

5thHorseman wrote:
Sat Jul 13, 2019 2:36 pm
I agree that would be awesome and if you could add a slider so I don't have to put my sandwich down while mousing around in the game <3
All I want for christmas is a checkbox for "negative" so that I can set up that "each * -1 => each" combinator I use all the time more easily...

Come to think of it, I should probably just blueprint it. One single combinator in a blueprint, just to set some defaults.

Post Reply

Return to “Implemented mod requests”