Number-only text field

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

Number-only text field

Post by Bilka » Fri Jul 12, 2019 8:26 pm

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.

Therenas
Long Handed Inserter
Long Handed Inserter
Posts: 95
Joined: Tue Dec 11, 2018 2:10 pm
Contact:

Re: Number-only text field

Post by Therenas » Fri Jul 12, 2019 8:46 pm

What's your use case?

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

Re: Number-only text field

Post by Bilka » Fri Jul 12, 2019 9:29 pm

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: 1815
Joined: Wed May 25, 2016 11:09 am
Contact:

Re: Number-only text field

Post by Nexela » Fri Jul 12, 2019 11:37 pm

Why pcalls though........

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

Re: Number-only text field

Post by Bilka » Fri Jul 12, 2019 11:52 pm

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.

Therenas
Long Handed Inserter
Long Handed Inserter
Posts: 95
Joined: Tue Dec 11, 2018 2:10 pm
Contact:

Re: Number-only text field

Post by Therenas » Sat Jul 13, 2019 10:29 am

I would like to have this as well, btw.

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

Re: Number-only text field

Post by 5thHorseman » 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
"So you completed the game with a spaghetti factory? Well I hand crafted a rocket and threw it into space with my bare hands!"

slippycheeze
Fast Inserter
Fast Inserter
Posts: 215
Joined: Sun Jun 09, 2019 10:40 pm
Contact:

Re: Number-only text field

Post by slippycheeze » Sat Jul 13, 2019 5:52 pm

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”

Who is online

Users browsing this forum: No registered users