1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-13 00:25:19 +02:00

Android: Add field_enter_after_edit[] formspec element (#13836)

This commit is contained in:
Gregor Parzefall
2023-10-01 11:20:50 +02:00
committed by GitHub
parent 94eba15c34
commit 56965bc814
9 changed files with 56 additions and 8 deletions

View File

@@ -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