Cleanup hive formspec

This commit is contained in:
jp 2015-08-02 11:32:02 +02:00
parent ff98a6ae37
commit 6e52bc628c
9 changed files with 12 additions and 9 deletions

View File

@ -3,11 +3,12 @@ local function enchconstruct(pos)
meta:set_string("formspec", "size[8,7;]"..xdecor.fancy_gui..
"label[0.65,-0.15;Enchant]"..
"image[0.4,0.2;2,2;default_book.png]"..
"image[1.3,2;1,1;ench_mese_layout.png]"..
"list[current_name;tool;0.3,2;1,1;]"..
"list[current_name;mese;1.3,2;1,1;]"..
"image_button[2.5,0;5.3,1.1;bg.png;durable;Durable]"..
"image_button[2.5,1;5.3,1.1;bg.png;fast;Fast]"..
"image_button[2.5,2;5.3,1.1;bg.png;luck;Luck]"..
"image_button[2.5,0;5.3,1.1;ench_bg.png;durable;Durable]"..
"image_button[2.5,1;5.3,1.1;ench_bg.png;fast;Fast]"..
"image_button[2.5,2;5.3,1.1;ench_bg.png;luck;Luck]"..
"list[current_player;main;0,3.3;8,4;]")
meta:set_string("infotext", "Enchantment Table")

View File

@ -1,10 +1,12 @@
local function hive_construct(pos)
local meta = minetest.get_meta(pos)
meta:set_string("formspec", "size[8,5;]"..xdecor.fancy_gui..
"label[1.25,0;Bees are making honey\nwith pollen around...]"..
"image[0,0;0.9,0.9;xdecor_bee3.png]".. -- Bees textures by Charles Sanchez and Mark Weyer.
"image[6,0;0.9,0.9;xdecor_bee2.png]"..
"image[7,0.35;0.8,0.8;xdecor_bee1.png]"..
"label[1.35,0;Bees are making honey\nwith pollen around...]"..
"image[-0.1,-0.2;1,1;flowers_tulip.png]"..
"image[0.5,0.2;1,1;flowers_dandelion_yellow.png]"..
"image[6.6,0.1;1,1;flowers_geranium.png]"..
"image[7.2,-0.1;1,1;flowers_rose.png]"..
"image[6,0;0.9,0.9;xdecor_bee.png]".. -- Bee texture by Charles Sanchez and Mark Weyer.
"list[current_name;honey;5,0;1,1;]"..
"list[current_player;main;0,1.35;8,4;]")
meta:set_string("infotext", "Artificial Hive")

View File

@ -4,7 +4,7 @@ modpath = minetest.get_modpath("xdecor")
dofile(modpath.."/handlers/nodeboxes.lua")
dofile(modpath.."/handlers/registration.lua")
dofile(modpath.."/crafts.lua")
--dofile(modpath.."/enchanting.lua") -- In development.
dofile(modpath.."/enchanting.lua") -- In development.
dofile(modpath.."/hive.lua")
dofile(modpath.."/itemframe.lua")
dofile(modpath.."/mailbox.lua")

View File

Before

Width:  |  Height:  |  Size: 231 B

After

Width:  |  Height:  |  Size: 231 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 140 B

View File

Before

Width:  |  Height:  |  Size: 266 B

After

Width:  |  Height:  |  Size: 266 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 304 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 268 B

View File

@ -156,7 +156,7 @@ end
minetest.register_abm({
nodenames = {"xdecor:worktable"},
interval = 2, chance = 1,
interval = 3, chance = 1,
action = function(pos, node, active_object_count, active_object_count_wider)
local meta = minetest.get_meta(pos)
local inv = meta:get_inventory()