diff options
author | sfan5 <sfan5@live.de> | 2020-06-08 17:15:02 +0200 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2020-06-08 21:17:40 +0200 |
commit | a21f9bb7e62b461154a25599a8507ca035fdd463 (patch) | |
tree | 56808ef36aeeb656f9ddd0addebab6d5746849e4 /games/devtest/mods/testtools | |
parent | 0ab580810c6ccebfd57497b9565e3e396d250d70 (diff) | |
download | minetest-a21f9bb7e62b461154a25599a8507ca035fdd463.tar.gz minetest-a21f9bb7e62b461154a25599a8507ca035fdd463.tar.bz2 minetest-a21f9bb7e62b461154a25599a8507ca035fdd463.zip |
devtest: Improve tool and formspec usability
also fix the yawsprite test entity
Diffstat (limited to 'games/devtest/mods/testtools')
-rw-r--r-- | games/devtest/mods/testtools/init.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/games/devtest/mods/testtools/init.lua b/games/devtest/mods/testtools/init.lua index a63c98377..d68a086b9 100644 --- a/games/devtest/mods/testtools/init.lua +++ b/games/devtest/mods/testtools/init.lua @@ -429,6 +429,7 @@ local editor_formspec = function(playername, obj, value, sel) "label[0,0;"..F(title).."]".. "textlist[0,0.5;9,7.5;object_props;"..list..";"..sel..";false]".. "field[0.2,8.75;8,1;value;"..F(S("Value"))..";"..F(value).."]".. + "field_close_on_enter[value;false]".. "button[8,8.5;1,1;submit;"..F(S("Submit")).."]" ) end @@ -665,7 +666,7 @@ minetest.register_on_player_receive_fields(function(player, formname, fields) return end end - if fields.submit then + if fields.key_enter_field == "value" or fields.submit then local props = selected_objects[name]:get_properties() local keys = property_formspec_data[name] if (not property_formspec_index[name]) or (not props) then |