mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-11 17:51:04 +00:00
Android: Add field_enter_after_edit[]
formspec element (#13836)
This commit is contained in:
parent
94eba15c34
commit
56965bc814
9 changed files with 56 additions and 8 deletions
|
@ -84,6 +84,7 @@ local function make_field(converter, validator, stringifier)
|
|||
|
||||
local fs = ("field[0,0.3;%f,0.8;%s;%s;%s]"):format(
|
||||
avail_w - 1.5, setting.name, get_label(setting), core.formspec_escape(value))
|
||||
fs = fs .. ("field_enter_after_edit[%s;true]"):format(setting.name)
|
||||
fs = fs .. ("button[%f,0.3;1.5,0.8;%s;%s]"):format(avail_w - 1.5, "set_" .. setting.name, fgettext("Set"))
|
||||
|
||||
return fs, 1.1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue