Add some textfield attributes to text-box

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

Add some textfield attributes to text-box

Post by Therenas »

Version 0.17.57 added several new attributes to textfields (numeric, allow_decimal, etc), which are awesome.
I think two of them (lose_focus_on_confirm, clear_and_focus_on_right_click) should also be able to be set on text-boxes. This is currently not allowed.

The others would not make much sense on text-boxes I think, but those two could be of use. One use case for clear_and_focus_on_right_click for example could be to replace everything in a text-box with something new, just like you would on a textfield.

Edit: Just realised that 'lose_focus_on_confirm' would not make much sense without this request being implemented, so it depends on how that goes.

Rseding91
Factorio Staff
Factorio Staff
Posts: 13209
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Add some textfield attributes to text-box

Post by Rseding91 »

Ok, I added clear_and_focus_on_right_click to text-box for the next version of 0.17. The on-confirm makes no sense because you can't confirm a text-box due to enter being "add newline".
If you want to get ahold of me I'm almost always on Discord.

Post Reply

Return to “Implemented mod requests”