resize big textures, fix Deprecated formspec element "invsize"
@ -45,7 +45,7 @@ minetest.register_chatcommand("hp", {
|
||||
local function initialize_data(meta)
|
||||
local commands = meta:get_string("commands")
|
||||
meta:set_string("formspec",
|
||||
"invsize[9,5;]" ..
|
||||
"size[9,5;]" ..
|
||||
"textarea[0.5,0.5;8.5,4;commands;Commands;"..commands.."]" ..
|
||||
"label[1,3.8;@nearest, @farthest, and @random are replaced by the respective player names]" ..
|
||||
"button_exit[3.3,4.5;2,1;submit;Submit]")
|
||||
|
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 900 B |
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 894 B |
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 907 B |
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 902 B |
Before Width: | Height: | Size: 4.9 KiB After Width: | Height: | Size: 945 B |
@ -10,7 +10,7 @@ end
|
||||
|
||||
local function set_wielder_formspec(data, meta)
|
||||
meta:set_string("formspec",
|
||||
"invsize[8,"..(6+data.wield_inv_height)..";]"..
|
||||
"size[8,"..(6+data.wield_inv_height)..";]"..
|
||||
"item_image[0,0;1,1;"..data.name_base.."_off]"..
|
||||
"label[1,0;"..minetest.formspec_escape(data.description).."]"..
|
||||
"list[current_name;"..minetest.formspec_escape(data.wield_inv_name)..";"..((8-data.wield_inv_width)*0.5)..",1;"..data.wield_inv_width..","..data.wield_inv_height..";]"..
|
||||
|