forked from minetest-mods/moreblocks
Add listring for circular saw
This commit is contained in:
parent
65e3afdd8b
commit
80d35c8215
@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
- Listring add for circular saw.
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
- The circular saw can no longer replace items from the player's inventory
|
- The circular saw can no longer replace items from the player's inventory
|
||||||
|
@ -349,7 +349,8 @@ end
|
|||||||
function circular_saw.on_construct(pos)
|
function circular_saw.on_construct(pos)
|
||||||
local meta = minetest.get_meta(pos)
|
local meta = minetest.get_meta(pos)
|
||||||
local fancy_inv = default.gui_bg..default.gui_bg_img..default.gui_slots
|
local fancy_inv = default.gui_bg..default.gui_bg_img..default.gui_slots
|
||||||
meta:set_string("formspec", "size[11,10]"..fancy_inv..
|
meta:set_string(
|
||||||
|
"formspec", "size[11,10]"..fancy_inv..
|
||||||
"label[0,0;" ..S("Input\nmaterial").. "]" ..
|
"label[0,0;" ..S("Input\nmaterial").. "]" ..
|
||||||
"list[current_name;input;1.5,0;1,1;]" ..
|
"list[current_name;input;1.5,0;1,1;]" ..
|
||||||
"label[0,1;" ..S("Left-over").. "]" ..
|
"label[0,1;" ..S("Left-over").. "]" ..
|
||||||
@ -359,7 +360,16 @@ function circular_saw.on_construct(pos)
|
|||||||
"field[0.3,3.5;1,1;max_offered;" ..S("Max").. ":;${max_offered}]" ..
|
"field[0.3,3.5;1,1;max_offered;" ..S("Max").. ":;${max_offered}]" ..
|
||||||
"button[1,3.2;1,1;Set;" ..S("Set").. "]" ..
|
"button[1,3.2;1,1;Set;" ..S("Set").. "]" ..
|
||||||
"list[current_name;output;2.8,0;8,6;]" ..
|
"list[current_name;output;2.8,0;8,6;]" ..
|
||||||
"list[current_player;main;1.5,6.25;8,4;]")
|
"list[current_player;main;1.5,6.25;8,4;]" ..
|
||||||
|
"listring[current_name;output]" ..
|
||||||
|
"listring[current_player;main]" ..
|
||||||
|
"listring[current_name;input]" ..
|
||||||
|
"listring[current_player;main]" ..
|
||||||
|
"listring[current_name;micro]" ..
|
||||||
|
"listring[current_player;main]" ..
|
||||||
|
"listring[current_name;recycle]" ..
|
||||||
|
"listring[current_player;main]"
|
||||||
|
)
|
||||||
|
|
||||||
meta:set_int("anz", 0) -- No microblocks inside yet.
|
meta:set_int("anz", 0) -- No microblocks inside yet.
|
||||||
meta:set_string("max_offered", 99) -- How many items of this kind are offered by default?
|
meta:set_string("max_offered", 99) -- How many items of this kind are offered by default?
|
||||||
|
Loading…
Reference in New Issue
Block a user