forked from minetest-mods/more_chests
Shift-click support.
This commit is contained in:
parent
a8183cfbd3
commit
2faa757730
@ -38,7 +38,9 @@ minetest.register_node("more_chests:cobble", {
|
||||
meta:set_string("formspec",
|
||||
"size[8,9]"..
|
||||
"list[current_name;main;0,0;8,4;]"..
|
||||
"list[current_player;main;0,5;8,4;]")
|
||||
"list[current_player;main;0,5;8,4;]"..
|
||||
"listring[current_name;main]"..
|
||||
"listring[current_player;main]")
|
||||
meta:set_string("owner", "")
|
||||
local inv = meta:get_inventory()
|
||||
inv:set_size("main", 8*4)
|
||||
|
@ -39,7 +39,9 @@ minetest.register_node("more_chests:dropbox", {
|
||||
meta:set_string("formspec",
|
||||
"size[8,9]"..
|
||||
"list[current_name;main;0,0;8,4;]"..
|
||||
"list[current_player;main;0,5;8,4;]")
|
||||
"list[current_player;main;0,5;8,4;]"..
|
||||
"listring[current_name;main]" ..
|
||||
"listring[current_player;main]")
|
||||
meta:set_string("infotext", "Chest")
|
||||
local inv = meta:get_inventory()
|
||||
inv:set_size("main", 8*4)
|
||||
|
@ -8,6 +8,8 @@ end
|
||||
local open = "size[8,10]"..
|
||||
"list[current_name;main;0,0;8,4;]"..
|
||||
"list[current_player;main;0,5;8,4;]"..
|
||||
"listring[current_name;main]" ..
|
||||
"listring[current_player;main]" ..
|
||||
"button[3,9;2,1;open;close]"
|
||||
local closed = "size[2,1]"..
|
||||
"button[0,0;2,1;open;open]"
|
||||
|
@ -16,7 +16,9 @@ local function get_formspec(string)
|
||||
"list[current_name;main;0,0;8,4;]"..
|
||||
"list[current_player;main;0,5;8,4;]"..
|
||||
"field[.25,9.5;6,1;shared;Shared with (separate names with spaces):;"..string.."]"..
|
||||
"button[6,9;2,1;submit;submit]"
|
||||
"button[6,9;2,1;submit;submit]" ..
|
||||
"listring[current_name;main]" ..
|
||||
"listring[current_player;main]"
|
||||
end
|
||||
|
||||
minetest.register_node("more_chests:shared", {
|
||||
|
4
wifi.lua
4
wifi.lua
@ -13,7 +13,9 @@ minetest.register_node("more_chests:wifi", {
|
||||
meta:set_string("formspec",
|
||||
"size[8,9]"..
|
||||
"list[current_player;more_chests:wifi;0,0;8,4;]"..
|
||||
"list[current_player;main;0,5;8,4;]")
|
||||
"list[current_player;main;0,5;8,4;]" ..
|
||||
"listring[current_player;more_chests:wifi]" ..
|
||||
"listring[current_player;main]")
|
||||
meta:set_string("infotext", "Wifi Chest")
|
||||
end,
|
||||
on_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player)
|
||||
|
Loading…
Reference in New Issue
Block a user