Add the listring functionality https://github.com/minetest/minetest/commit/c977fbd928...
authorAmaz <Amaz1@users.noreply.github.com>
Tue, 16 Jun 2015 15:26:22 +0000 (16:26 +0100)
committerest31 <MTest31@outlook.com>
Tue, 23 Jun 2015 17:17:57 +0000 (19:17 +0200)
mods/creative/init.lua
mods/default/furnace.lua
mods/default/init.lua
mods/default/nodes.lua
mods/vessels/init.lua

index 809c2aa3f05bf7baab8114f4508d7d2e49963d1d..68d5180ed002c61437106552272443b36083c293 100644 (file)
@@ -87,6 +87,10 @@ creative_inventory.set_creative_formspec = function(player, start_i, pagenum)
                        "label[2.0,6.55;"..tostring(pagenum).."/"..tostring(pagemax).."]"..
                        "button[0.3,6.5;1.6,1;creative_prev;<<]"..
                        "button[2.7,6.5;1.6,1;creative_next;>>]"..
+                       "listring[current_player;main]"..
+                       "listring[current_player;craft]"..
+                       "listring[current_player;main]"..
+                       "listring[detached:creative;main]"..
                        "label[5,1.5;Trash:]"..
                        "list[detached:creative_trash;main;5,2;1,1;]"..
                        default.get_hotbar_bg(5,3.5)
index 2163f6aedeeecc4b62507368a12c5612b91cae55..6d89aae153128cf870bda3c1464d249a9d451b09 100644 (file)
@@ -18,6 +18,10 @@ local function active_formspec(fuel_percent, item_percent)
                "list[current_name;dst;4.75,0.96;2,2;]"..
                "list[current_player;main;0,4.25;8,1;]"..
                "list[current_player;main;0,5.5;8,3;8]"..
+               "listring[current_name;dst]"..
+               "listring[current_player;main]"..
+               "listring[current_name;src]"..
+               "listring[current_player;main]"..
                default.get_hotbar_bg(0, 4.25)
        return formspec
 end
@@ -34,6 +38,10 @@ local inactive_formspec =
        "list[current_name;dst;4.75,0.96;2,2;]"..
        "list[current_player;main;0,4.25;8,1;]"..
        "list[current_player;main;0,5.5;8,3;8]"..
+       "listring[current_name;dst]"..
+       "listring[current_player;main]"..
+       "listring[current_name;src]"..
+       "listring[current_player;main]"..
        default.get_hotbar_bg(0, 4.25)
 
 --
index 3f0efea99e4736dac10dd433d836a68ea13316ff..6f1b148b4874243444654b77d6f39803cd9385bb 100644 (file)
@@ -30,6 +30,8 @@ default.gui_survival_form = "size[8,8.5]"..
                        "list[current_player;craft;1.75,0.5;3,3;]"..
                        "list[current_player;craftpreview;5.75,1.5;1,1;]"..
                        "image[4.75,1.5;1,1;gui_furnace_arrow_bg.png^[transformR270]"..
+                       "listring[current_player;main]"..
+                       "listring[current_player;craft]"..
                        default.get_hotbar_bg(0,4.25)
 
 -- Load files
index 7d2c826275fb4eebe4193f5b95016260979abc2c..0796db51319d170953c1c406ee518b2f08d9e06b 100644 (file)
@@ -1197,6 +1197,8 @@ local chest_formspec =
        "list[current_name;main;0,0.3;8,4;]"..
        "list[current_player;main;0,4.85;8,1;]"..
        "list[current_player;main;0,6.08;8,3;8]"..
+       "listring[current_name;main]"..
+       "listring[current_player;main]"..
        default.get_hotbar_bg(0,4.85)
 
 local function get_locked_chest_formspec(pos)
@@ -1209,6 +1211,8 @@ local function get_locked_chest_formspec(pos)
                "list[nodemeta:".. spos .. ";main;0,0.3;8,4;]"..
                "list[current_player;main;0,4.85;8,1;]"..
                "list[current_player;main;0,6.08;8,3;8]"..
+               "listring[nodemeta:".. spos .. ";main]"..
+               "listring[current_player;main]"..
                default.get_hotbar_bg(0,4.85)
  return formspec
 end
@@ -1338,6 +1342,8 @@ local bookshelf_formspec =
        "list[context;books;0,0.3;8,2;]"..
        "list[current_player;main;0,2.85;8,1;]"..
        "list[current_player;main;0,4.08;8,3;8]"..
+       "listring[context;books]"..
+       "listring[current_player;main]"..
        default.get_hotbar_bg(0,2.85)
 
 minetest.register_node("default:bookshelf", {
index bed5ded9001a8861a17a03f9b952982981d9ed75..6389a2453c9b3351a46818ebb32d428219e77d0c 100644 (file)
@@ -9,6 +9,8 @@ local vessels_shelf_formspec =
        "list[context;vessels;0,0.3;8,2;]"..
        "list[current_player;main;0,2.85;8,1;]"..
        "list[current_player;main;0,4.08;8,3;8]"..
+       "listring[context;vessels]"..
+       "listring[current_player;main]"..
        default.get_hotbar_bg(0,2.85)
 
 minetest.register_node("vessels:shelf", {