Skip to content

Commit 7361eb5

Browse files
Amaz1est31
authored andcommittedJun 23, 2015
Add the listring functionality luanti-org/luanti@c977fbd
1 parent 44ac020 commit 7361eb5

File tree

5 files changed

+22
-0
lines changed

5 files changed

+22
-0
lines changed
 

‎mods/creative/init.lua

+4
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,10 @@ creative_inventory.set_creative_formspec = function(player, start_i, pagenum)
8787
"label[2.0,6.55;"..tostring(pagenum).."/"..tostring(pagemax).."]"..
8888
"button[0.3,6.5;1.6,1;creative_prev;<<]"..
8989
"button[2.7,6.5;1.6,1;creative_next;>>]"..
90+
"listring[current_player;main]"..
91+
"listring[current_player;craft]"..
92+
"listring[current_player;main]"..
93+
"listring[detached:creative;main]"..
9094
"label[5,1.5;Trash:]"..
9195
"list[detached:creative_trash;main;5,2;1,1;]"..
9296
default.get_hotbar_bg(5,3.5)

‎mods/default/furnace.lua

+8
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ local function active_formspec(fuel_percent, item_percent)
1818
"list[current_name;dst;4.75,0.96;2,2;]"..
1919
"list[current_player;main;0,4.25;8,1;]"..
2020
"list[current_player;main;0,5.5;8,3;8]"..
21+
"listring[current_name;dst]"..
22+
"listring[current_player;main]"..
23+
"listring[current_name;src]"..
24+
"listring[current_player;main]"..
2125
default.get_hotbar_bg(0, 4.25)
2226
return formspec
2327
end
@@ -34,6 +38,10 @@ local inactive_formspec =
3438
"list[current_name;dst;4.75,0.96;2,2;]"..
3539
"list[current_player;main;0,4.25;8,1;]"..
3640
"list[current_player;main;0,5.5;8,3;8]"..
41+
"listring[current_name;dst]"..
42+
"listring[current_player;main]"..
43+
"listring[current_name;src]"..
44+
"listring[current_player;main]"..
3745
default.get_hotbar_bg(0, 4.25)
3846

3947
--

‎mods/default/init.lua

+2
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ default.gui_survival_form = "size[8,8.5]"..
3030
"list[current_player;craft;1.75,0.5;3,3;]"..
3131
"list[current_player;craftpreview;5.75,1.5;1,1;]"..
3232
"image[4.75,1.5;1,1;gui_furnace_arrow_bg.png^[transformR270]"..
33+
"listring[current_player;main]"..
34+
"listring[current_player;craft]"..
3335
default.get_hotbar_bg(0,4.25)
3436

3537
-- Load files

‎mods/default/nodes.lua

+6
Original file line numberDiff line numberDiff line change
@@ -1197,6 +1197,8 @@ local chest_formspec =
11971197
"list[current_name;main;0,0.3;8,4;]"..
11981198
"list[current_player;main;0,4.85;8,1;]"..
11991199
"list[current_player;main;0,6.08;8,3;8]"..
1200+
"listring[current_name;main]"..
1201+
"listring[current_player;main]"..
12001202
default.get_hotbar_bg(0,4.85)
12011203

12021204
local function get_locked_chest_formspec(pos)
@@ -1209,6 +1211,8 @@ local function get_locked_chest_formspec(pos)
12091211
"list[nodemeta:".. spos .. ";main;0,0.3;8,4;]"..
12101212
"list[current_player;main;0,4.85;8,1;]"..
12111213
"list[current_player;main;0,6.08;8,3;8]"..
1214+
"listring[nodemeta:".. spos .. ";main]"..
1215+
"listring[current_player;main]"..
12121216
default.get_hotbar_bg(0,4.85)
12131217
return formspec
12141218
end
@@ -1338,6 +1342,8 @@ local bookshelf_formspec =
13381342
"list[context;books;0,0.3;8,2;]"..
13391343
"list[current_player;main;0,2.85;8,1;]"..
13401344
"list[current_player;main;0,4.08;8,3;8]"..
1345+
"listring[context;books]"..
1346+
"listring[current_player;main]"..
13411347
default.get_hotbar_bg(0,2.85)
13421348

13431349
minetest.register_node("default:bookshelf", {

‎mods/vessels/init.lua

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ local vessels_shelf_formspec =
99
"list[context;vessels;0,0.3;8,2;]"..
1010
"list[current_player;main;0,2.85;8,1;]"..
1111
"list[current_player;main;0,4.08;8,3;8]"..
12+
"listring[context;vessels]"..
13+
"listring[current_player;main]"..
1214
default.get_hotbar_bg(0,2.85)
1315

1416
minetest.register_node("vessels:shelf", {

0 commit comments

Comments
 (0)
Please sign in to comment.