diff options
author | gpcf <gpcf@gpcf.eu> | 2024-07-27 23:23:39 +0200 |
---|---|---|
committer | gpcf <gpcf@gpcf.eu> | 2024-07-27 23:23:39 +0200 |
commit | 8d9fe6845ecd8a14de2c973547d3ae98107d635f (patch) | |
tree | f13b4d0ac285d660b129e1ea8cd5c818e57f76ee /gui.lua | |
parent | 9340e2441c778ce5ba20ad3d7fe56e771560cbbd (diff) | |
parent | e870b8d1d6963c762e980a3cccfd5effdec61df9 (diff) | |
download | xban2-8d9fe6845ecd8a14de2c973547d3ae98107d635f.tar.gz xban2-8d9fe6845ecd8a14de2c973547d3ae98107d635f.tar.bz2 xban2-8d9fe6845ecd8a14de2c973547d3ae98107d635f.zip |
Merge branch 'master' of https://github.com/minetest-mods/xban2
Diffstat (limited to 'gui.lua')
-rw-r--r-- | gui.lua | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -61,7 +61,8 @@ local function make_fs(name) "size[16,12]", "label[0,-.1;Filter]", "field[1.5,0;12.8,1;filter;;"..ESC(filter).."]", - "button[14,-.3;2,1;search;Search]", + "field_close_on_enter[filter;false]", + "button[14,-.3;2,1;search_submit;Search]", } local fsn = #fs fsn=fsn+1 fs[fsn] = format("textlist[0,.8;4,9.3;player;%s;%d;0]", @@ -122,7 +123,7 @@ minetest.register_on_player_receive_fields(function(player, formname, fields) end return end - if fields.search then + if fields.search_submit or fields.filter then local filter = fields.filter or "" state.filter = filter state.list = make_list(filter) |