digtime, menu
This commit is contained in:
parent
44c254a956
commit
55d7a0fa9e
|
@ -1,17 +0,0 @@
|
||||||
# Auto detect text files and perform LF normalization
|
|
||||||
* text=auto
|
|
||||||
|
|
||||||
# Custom for Visual Studio
|
|
||||||
*.cs diff=csharp
|
|
||||||
|
|
||||||
# Standard to msysgit
|
|
||||||
*.doc diff=astextplain
|
|
||||||
*.DOC diff=astextplain
|
|
||||||
*.docx diff=astextplain
|
|
||||||
*.DOCX diff=astextplain
|
|
||||||
*.dot diff=astextplain
|
|
||||||
*.DOT diff=astextplain
|
|
||||||
*.pdf diff=astextplain
|
|
||||||
*.PDF diff=astextplain
|
|
||||||
*.rtf diff=astextplain
|
|
||||||
*.RTF diff=astextplain
|
|
|
@ -59,9 +59,6 @@ for k,v1 in pairs(comboblock.index) do
|
||||||
sounds = v1_def.sounds,
|
sounds = v1_def.sounds,
|
||||||
groups = v1_groups,
|
groups = v1_groups,
|
||||||
drop = v1,
|
drop = v1,
|
||||||
after_destruct = function(pos, oldnode)
|
|
||||||
minetest.set_node(pos, {name = v2, param2 = oldnode.param2})
|
|
||||||
end
|
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -76,9 +76,6 @@ for k,v1 in pairs(combostair.index) do
|
||||||
sounds = v1_def.sounds,
|
sounds = v1_def.sounds,
|
||||||
groups = v1_groups,
|
groups = v1_groups,
|
||||||
drop = v1,
|
drop = v1,
|
||||||
after_destruct = function(pos, oldnode)
|
|
||||||
minetest.set_node(pos, {name = v2, param2 = oldnode.param2})
|
|
||||||
end
|
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -85,34 +85,34 @@ inventory_plus.get_formspec = function(player, page)
|
||||||
|
|
||||||
formspec = formspec
|
formspec = formspec
|
||||||
|
|
||||||
.. "image_button_exit[0,0.5;1,1;gui_hotbar_selected.png^blocks.png;blocks;]"
|
.. "image_button_exit[0,0.5;1,1;blocks.png;blocks;]"
|
||||||
.. "image_button_exit[1,0.5;1,1;gui_hotbar_selected.png^stairs.png;stairs;]"
|
.. "image_button_exit[1,0.5;1,1;stairs.png;stairs;]"
|
||||||
.. "image_button_exit[2,0.5;1,1;gui_hotbar_selected.png^slabs.png;slabs;]"
|
.. "image_button_exit[2,0.5;1,1;slabs.png;slabs;]"
|
||||||
.. "image_button_exit[3,0.5;1,1;gui_hotbar_selected.png^windows.png;windows;]"
|
.. "image_button_exit[3,0.5;1,1;windows.png;windows;]"
|
||||||
.. "image_button_exit[4,0.5;1,1;gui_hotbar_selected.png^lights.png;lights;]"
|
.. "image_button_exit[4,0.5;1,1;lights.png;lights;]"
|
||||||
.. "image_button_exit[5,0.5;1,1;gui_hotbar_selected.png^waters.png;waters;]"
|
.. "image_button_exit[5,0.5;1,1;waters.png;waters;]"
|
||||||
.. "image_button_exit[6,0.5;1,1;gui_hotbar_selected.png^doors.png;doors;] "
|
.. "image_button_exit[6,0.5;1,1;doors.png;doors;] "
|
||||||
.. "image_button_exit[7,0.5;1,1;gui_hotbar_selected.png^carpets.png;carpets;]"
|
.. "image_button_exit[7,0.5;1,1;carpets.png;carpets;]"
|
||||||
.. "image_button_exit[0,2.5;1,1;gui_hotbar_selected.png^trapdoor.png;trapdoor;]"
|
.. "image_button_exit[0,2.5;1,1;trapdoor.png;trapdoor;]"
|
||||||
.. "image_button_exit[1,2.5;1,1;gui_hotbar_selected.png^fence.png;fence;]"
|
.. "image_button_exit[1,2.5;1,1;fence.png;fence;]"
|
||||||
.. "image_button_exit[2,2.5;1,1;gui_hotbar_selected.png^cylinder.png;cylinder;]"
|
.. "image_button_exit[2,2.5;1,1;cylinder.png;cylinder;]"
|
||||||
.. "image_button_exit[3,2.5;1,1;gui_hotbar_selected.png^triangle.png;triangle;]"
|
.. "image_button_exit[3,2.5;1,1;triangle.png;triangle;]"
|
||||||
.. "image_button_exit[4,2.5;1,1;gui_hotbar_selected.png^long.png;long;]"
|
.. "image_button_exit[4,2.5;1,1;long.png;long;]"
|
||||||
.. "image_button_exit[5,2.5;1,1;gui_hotbar_selected.png^cone.png;cone;]"
|
.. "image_button_exit[5,2.5;1,1;cone.png;cone;]"
|
||||||
.. "image_button_exit[6,2.5;1,1;gui_hotbar_selected.png^sphere.png;sphere;]"
|
.. "image_button_exit[6,2.5;1,1;sphere.png;sphere;]"
|
||||||
.. "image_button_exit[7,2.5;1,1;gui_hotbar_selected.png^cornera.png;outcorner;]"
|
.. "image_button_exit[7,2.5;1,1;cornera.png;outcorner;]"
|
||||||
.. "image_button_exit[0,4.5;1,1;gui_hotbar_selected.png^cornerb.png;incorner;]"
|
.. "image_button_exit[0,4.5;1,1;cornerb.png;incorner;]"
|
||||||
.. "image_button_exit[1,4.5;1,1;gui_hotbar_selected.png^arc.png;arc;]"
|
.. "image_button_exit[1,4.5;1,1;arc.png;arc;]"
|
||||||
.. "image_button_exit[2,4.5;1,1;gui_hotbar_selected.png^arcin.png;inarc;]"
|
.. "image_button_exit[2,4.5;1,1;arcin.png;inarc;]"
|
||||||
.. "image_button_exit[3,4.5;1,1;gui_hotbar_selected.png^arcout.png;outarc;]"
|
.. "image_button_exit[3,4.5;1,1;arcout.png;outarc;]"
|
||||||
.. "image_button_exit[4,4.5;1,1;gui_hotbar_selected.png^fullpipe.png;fullpipe;]"
|
.. "image_button_exit[4,4.5;1,1;fullpipe.png;fullpipe;]"
|
||||||
.. "image_button_exit[5,4.5;1,1;gui_hotbar_selected.png^fullpipeborder.png;fullpipeborder;]"
|
.. "image_button_exit[5,4.5;1,1;fullpipeborder.png;fullpipeborder;]"
|
||||||
.. "image_button_exit[6,4.5;1,1;gui_hotbar_selected.png^edge.png;edge;]"
|
.. "image_button_exit[6,4.5;1,1;edge.png;edge;]"
|
||||||
.. "image_button[7,4.5;1,1;gui_hotbar_selected.png^droite.png;nodes2;]"
|
.. "image_button[7,4.5;1,1;droite.png;nodes2;]"
|
||||||
|
|
||||||
.. "image_button[0,6.5;1,1;gui_hotbar_selected.png^gauche.png;main;]"
|
.. "image_button[0,6.5;1,1;gauche.png;main;]"
|
||||||
.. "image_button_exit[1,6.5;1,1;gui_hotbar_selected.png^rotate.png;rotate;]"
|
.. "image_button_exit[1,6.5;1,1;rotate.png;rotate;]"
|
||||||
.. "image_button_exit[2,6.5;1,1;gui_hotbar_selected.png^nones.png;none;]"
|
.. "image_button_exit[2,6.5;1,1;nones.png;none;]"
|
||||||
|
|
||||||
.. ""
|
.. ""
|
||||||
|
|
||||||
|
@ -137,11 +137,11 @@ inventory_plus.get_formspec = function(player, page)
|
||||||
-- .. "image_button_exit[1,0.5;1,1;nccross.png;nccross;]"
|
-- .. "image_button_exit[1,0.5;1,1;nccross.png;nccross;]"
|
||||||
-- .. "label[1.1,1;Cross]"
|
-- .. "label[1.1,1;Cross]"
|
||||||
|
|
||||||
.. "image_button_exit[0,0.5;1,1;gui_hotbar_selected.png^edgecorner.png;edgecorner;]"
|
.. "image_button_exit[0,0.5;1,1;edgecorner.png;edgecorner;]"
|
||||||
|
|
||||||
.. "image_button[0,6.5;1,1;gui_hotbar_selected.png^gauche.png;nodes;]"
|
.. "image_button[0,6.5;1,1;gauche.png;nodes;]"
|
||||||
.. "image_button_exit[1,6.5;1,1;gui_hotbar_selected.png^rotate.png;rotate;]"
|
.. "image_button_exit[1,6.5;1,1;rotate.png;rotate;]"
|
||||||
.. "image_button_exit[2,6.5;1,1;gui_hotbar_selected.png^nones.png;none;]"
|
.. "image_button_exit[2,6.5;1,1;nones.png;none;]"
|
||||||
|
|
||||||
.. ""
|
.. ""
|
||||||
|
|
||||||
|
@ -159,9 +159,9 @@ inventory_plus.get_formspec = function(player, page)
|
||||||
formspec = formspec
|
formspec = formspec
|
||||||
|
|
||||||
|
|
||||||
.. "image_button_exit[0,0.5;1,1;gui_hotbar_selected.png^mobs_chicken_egg_overlay.png;panda;]"
|
.. "image_button_exit[0,0.5;1,1;mobs_chicken_egg_overlay.png;panda;]"
|
||||||
|
|
||||||
.. "image_button[0,6.5;1,1;gui_hotbar_selected.png^gauche.png;main;]"
|
.. "image_button[0,6.5;1,1;gauche.png;main;]"
|
||||||
|
|
||||||
.. ""
|
.. ""
|
||||||
|
|
||||||
|
@ -180,36 +180,36 @@ if page == "furnitures" then
|
||||||
|
|
||||||
formspec = formspec
|
formspec = formspec
|
||||||
|
|
||||||
.. "image_button_exit[0,0.5;1,1;gui_hotbar_selected.png^chair.png;chair;]"
|
.. "image_button_exit[0,0.5;1,1;chair.png;chair;]"
|
||||||
.. "image_button_exit[1,0.5;1,1;gui_hotbar_selected.png^sofas.png;sofas;]"
|
.. "image_button_exit[1,0.5;1,1;sofas.png;sofas;]"
|
||||||
.. "image_button_exit[2,0.5;1,1;gui_hotbar_selected.png^table.png;table;]"
|
.. "image_button_exit[2,0.5;1,1;table.png;table;]"
|
||||||
.. "image_button_exit[3,0.5;1,1;gui_hotbar_selected.png^signs.png;signs;]"
|
.. "image_button_exit[3,0.5;1,1;signs.png;signs;]"
|
||||||
.. "image_button_exit[4,0.5;1,1;gui_hotbar_selected.png^beds.png;beds;]"
|
.. "image_button_exit[4,0.5;1,1;beds.png;beds;]"
|
||||||
.. "image_button_exit[5,0.5;1,1;gui_hotbar_selected.png^flowers.png;flowers;]"
|
.. "image_button_exit[5,0.5;1,1;flowers.png;flowers;]"
|
||||||
.. "image_button_exit[6,0.5;1,1;gui_hotbar_selected.png^flag.png;flags;]"
|
.. "image_button_exit[6,0.5;1,1;flag.png;flags;]"
|
||||||
.. "image_button_exit[7,0.5;1,1;gui_hotbar_selected.png^computer.png;computers;]"
|
.. "image_button_exit[7,0.5;1,1;computer.png;computers;]"
|
||||||
.. "image_button_exit[0,2.5;1,1;gui_hotbar_selected.png^desk.png;desks;]"
|
.. "image_button_exit[0,2.5;1,1;desk.png;desks;]"
|
||||||
.. "image_button_exit[1,2.5;1,1;gui_hotbar_selected.png^bench.png;bench;]"
|
.. "image_button_exit[1,2.5;1,1;bench.png;bench;]"
|
||||||
.. "image_button_exit[2,2.5;1,1;gui_hotbar_selected.png^armoire.png;armoire;]"
|
.. "image_button_exit[2,2.5;1,1;armoire.png;armoire;]"
|
||||||
.. "image_button_exit[3,2.5;1,1;gui_hotbar_selected.png^frigo.png;frigo;]"
|
.. "image_button_exit[3,2.5;1,1;frigo.png;frigo;]"
|
||||||
.. "image_button_exit[4,2.5;1,1;gui_hotbar_selected.png^fbtrap.png;fbtrap;]"
|
.. "image_button_exit[4,2.5;1,1;fbtrap.png;fbtrap;]"
|
||||||
.. "image_button_exit[5,2.5;1,1;gui_hotbar_selected.png^fbstair.png;fbstair;]"
|
.. "image_button_exit[5,2.5;1,1;fbstair.png;fbstair;]"
|
||||||
.. "image_button_exit[6,2.5;1,1;gui_hotbar_selected.png^fbladder.png;fbladder;]"
|
.. "image_button_exit[6,2.5;1,1;fbladder.png;fbladder;]"
|
||||||
.. "image_button_exit[7,2.5;1,1;gui_hotbar_selected.png^cgherse.png;cgherse;]"
|
.. "image_button_exit[7,2.5;1,1;cgherse.png;cgherse;]"
|
||||||
.. "image_button_exit[0,4.5;1,1;gui_hotbar_selected.png^cgborder.png;cgborder;]"
|
.. "image_button_exit[0,4.5;1,1;cgborder.png;cgborder;]"
|
||||||
.. "image_button_exit[1,4.5;1,1;gui_hotbar_selected.png^cgdoor.png;cgdoor;]"
|
.. "image_button_exit[1,4.5;1,1;cgdoor.png;cgdoor;]"
|
||||||
-- .. "image_button_exit[2,4.5;1,1;gui_hotbar_selected.png^slabs.png;tslabs;]"
|
-- .. "image_button_exit[2,4.5;1,1;slabs.png;tslabs;]"
|
||||||
.. "image_button_exit[2,4.5;1,1;gui_hotbar_selected.png^torch.png;torch;]"
|
.. "image_button_exit[2,4.5;1,1;torch.png;torch;]"
|
||||||
.. "image_button_exit[3,4.5;1,1;gui_hotbar_selected.png^invcross.png;shieldcross;]"
|
.. "image_button_exit[3,4.5;1,1;invcross.png;shieldcross;]"
|
||||||
.. "image_button_exit[4,4.5;1,1;gui_hotbar_selected.png^invslash.png;shieldslash;]"
|
.. "image_button_exit[4,4.5;1,1;invslash.png;shieldslash;]"
|
||||||
.. "image_button_exit[5,4.5;1,1;gui_hotbar_selected.png^invchevron.png;shieldchevron;]"
|
.. "image_button_exit[5,4.5;1,1;invchevron.png;shieldchevron;]"
|
||||||
.."image_button_exit[6,4.5;1,1;gui_hotbar_selected.png^trampo.png;trampoline;]"
|
.."image_button_exit[6,4.5;1,1;trampo.png;trampoline;]"
|
||||||
|
|
||||||
.. "image_button[7,4.5;1,1;gui_hotbar_selected.png^droite.png;furnitures2;]"
|
.. "image_button[7,4.5;1,1;droite.png;furnitures2;]"
|
||||||
|
|
||||||
.. "image_button[0,6.5;1,1;gui_hotbar_selected.png^gauche.png;main;]"
|
.. "image_button[0,6.5;1,1;gauche.png;main;]"
|
||||||
.. "image_button_exit[1,6.5;1,1;gui_hotbar_selected.png^rotate.png;rotate;]"
|
.. "image_button_exit[1,6.5;1,1;rotate.png;rotate;]"
|
||||||
.. "image_button_exit[2,6.5;1,1;gui_hotbar_selected.png^nones.png;none;]"
|
.. "image_button_exit[2,6.5;1,1;nones.png;none;]"
|
||||||
.. ""
|
.. ""
|
||||||
|
|
||||||
end
|
end
|
||||||
|
@ -227,12 +227,12 @@ if page == "furnitures" then
|
||||||
|
|
||||||
formspec = formspec
|
formspec = formspec
|
||||||
|
|
||||||
.. "image_button_exit[0,0.5;1,1;gui_hotbar_selected.png^beaconon.png;beacon;]"
|
.. "image_button_exit[0,0.5;1,1;beaconon.png;beacon;]"
|
||||||
.. "image_button_exit[1,0.5;1,1;gui_hotbar_selected.png^beaconoff.png;beaconoff;]"
|
.. "image_button_exit[1,0.5;1,1;beaconoff.png;beaconoff;]"
|
||||||
|
|
||||||
.. "image_button[0,6.5;1,1;gui_hotbar_selected.png^gauche.png;furnitures;]"
|
.. "image_button[0,6.5;1,1;gauche.png;furnitures;]"
|
||||||
.. "image_button_exit[1,6.5;1,1;gui_hotbar_selected.png^rotate.png;rotate;]"
|
.. "image_button_exit[1,6.5;1,1;rotate.png;rotate;]"
|
||||||
.. "image_button_exit[2,6.5;1,1;gui_hotbar_selected.png^nones.png;none;]"
|
.. "image_button_exit[2,6.5;1,1;nones.png;none;]"
|
||||||
|
|
||||||
.. ""
|
.. ""
|
||||||
|
|
||||||
|
@ -252,18 +252,18 @@ if page == "furnitures" then
|
||||||
|
|
||||||
formspec = formspec
|
formspec = formspec
|
||||||
|
|
||||||
.. "image_button_exit[0,0.5;1,1;gui_hotbar_selected.png^cars.png;cars;]"
|
.. "image_button_exit[0,0.5;1,1;cars.png;cars;]"
|
||||||
.. "image_button_exit[1,0.5;1,1;gui_hotbar_selected.png^surfboard.png;surfboard;]"
|
.. "image_button_exit[1,0.5;1,1;surfboard.png;surfboard;]"
|
||||||
.. "image_button_exit[2,0.5;1,1;gui_hotbar_selected.png^airboat_airboat_inv.png;airboat;]"
|
.. "image_button_exit[2,0.5;1,1;airboat_airboat_inv.png;airboat;]"
|
||||||
.. "image_button_exit[3,0.5;1,1;gui_hotbar_selected.png^spaceship_spaceship_inv.png;spaceship;]"
|
.. "image_button_exit[3,0.5;1,1;spaceship_spaceship_inv.png;spaceship;]"
|
||||||
.. "image_button_exit[4,0.5;1,1;gui_hotbar_selected.png^hovercraft_inv.png;hovercraft;]"
|
.. "image_button_exit[4,0.5;1,1;hovercraft_inv.png;hovercraft;]"
|
||||||
.. "image_button_exit[5,0.5;1,1;gui_hotbar_selected.png^hotair_inv.png;hotairballoon;]"
|
.. "image_button_exit[5,0.5;1,1;hotair_inv.png;hotairballoon;]"
|
||||||
.. "image_button_exit[6,0.5;1,1;gui_hotbar_selected.png^cart.png;carts;]"
|
.. "image_button_exit[6,0.5;1,1;cart.png;carts;]"
|
||||||
.. "image_button_exit[7,0.5;1,1;gui_hotbar_selected.png^carts_rail_straight_pwr.png;rails;]"
|
.. "image_button_exit[7,0.5;1,1;carts_rail_straight_pwr.png;rails;]"
|
||||||
|
|
||||||
.. "image_button[0,6.5;1,1;gui_hotbar_selected.png^gauche.png;main;]"
|
.. "image_button[0,6.5;1,1;gauche.png;main;]"
|
||||||
.. "image_button_exit[1,6.5;1,1;gui_hotbar_selected.png^rotate.png;rotate;]"
|
.. "image_button_exit[1,6.5;1,1;rotate.png;rotate;]"
|
||||||
.. "image_button_exit[2,6.5;1,1;gui_hotbar_selected.png^nones.png;none;]"
|
.. "image_button_exit[2,6.5;1,1;nones.png;none;]"
|
||||||
|
|
||||||
.. ""
|
.. ""
|
||||||
|
|
||||||
|
@ -280,11 +280,11 @@ if page == "planets" then
|
||||||
|
|
||||||
formspec = formspec
|
formspec = formspec
|
||||||
|
|
||||||
.. "image_button_exit[0,0.5;1,1;gui_hotbar_selected.png^mmars.png;mars;]"
|
.. "image_button_exit[0,0.5;1,1;mmars.png;mars;]"
|
||||||
.. "image_button_exit[1,0.5;1,1;gui_hotbar_selected.png^moon.png;moon;]"
|
.. "image_button_exit[1,0.5;1,1;moon.png;moon;]"
|
||||||
.. "image_button_exit[2,0.5;1,1;gui_hotbar_selected.png^earth.png;earth;]"
|
.. "image_button_exit[2,0.5;1,1;earth.png;earth;]"
|
||||||
|
|
||||||
.. "image_button[0,6.5;1,1;gui_hotbar_selected.png^gauche.png;main;]"
|
.. "image_button[0,6.5;1,1;gauche.png;main;]"
|
||||||
|
|
||||||
.. ""
|
.. ""
|
||||||
|
|
||||||
|
@ -301,11 +301,11 @@ if page == "trees" then
|
||||||
|
|
||||||
formspec = formspec
|
formspec = formspec
|
||||||
|
|
||||||
.. "image_button_exit[0,0.5;1,1;gui_hotbar_selected.png^smalltrees.png;smalltrees;]"
|
.. "image_button_exit[0,0.5;1,1;smalltrees.png;smalltrees;]"
|
||||||
.. "image_button_exit[1,0.5;1,1;gui_hotbar_selected.png^normaltrees.png;normaltrees;]"
|
.. "image_button_exit[1,0.5;1,1;normaltrees.png;normaltrees;]"
|
||||||
.. "image_button_exit[2,0.5;1,1;gui_hotbar_selected.png^bigtrees.png;bigtrees;]"
|
.. "image_button_exit[2,0.5;1,1;bigtrees.png;bigtrees;]"
|
||||||
|
|
||||||
.. "image_button[0,6.5;1,1;gui_hotbar_selected.png^gauche.png;main;]"
|
.. "image_button[0,6.5;1,1;gauche.png;main;]"
|
||||||
|
|
||||||
.. ""
|
.. ""
|
||||||
|
|
||||||
|
@ -321,16 +321,16 @@ if page == "trees" then
|
||||||
|
|
||||||
formspec = formspec
|
formspec = formspec
|
||||||
|
|
||||||
.. "image_button[2,0.5;4,1;gui_hotbar_selected.png;character_creator;Skin]"
|
.. "image_button[2,0.5;4,1;;character_creator;Skin]"
|
||||||
.. "image_button[2,1.5;4,1;gui_hotbar_selected.png;vehicules;Vehicules]"
|
.. "image_button[2,1.5;4,1;;vehicules;Vehicules]"
|
||||||
|
|
||||||
.. "image_button[2,2.5;4,1;gui_hotbar_selected.png;trees;Tree]"
|
.. "image_button[2,2.5;4,1;;trees;Tree]"
|
||||||
.. "image_button[2,3.5;4,1;gui_hotbar_selected.png;animals;Animals]"
|
.. "image_button[2,3.5;4,1;;animals;Animals]"
|
||||||
|
|
||||||
.. "image_button[2,4.5;4,1;gui_hotbar_selected.png;nodes;Build]"
|
.. "image_button[2,4.5;4,1;;nodes;Build]"
|
||||||
.. "image_button[2,5.5;4,1;gui_hotbar_selected.png;furnitures;Decorations]"
|
.. "image_button[2,5.5;4,1;;furnitures;Decorations]"
|
||||||
|
|
||||||
.. "image_button_exit[2,6.5;4,1;gui_hotbar_selected.png;quit;Back To Game]"
|
.. "image_button_exit[2,6.5;4,1;;quit;Back To Game]"
|
||||||
|
|
||||||
x = x
|
x = x
|
||||||
y = y + 1
|
y = y + 1
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 320 B |
|
@ -53,37 +53,37 @@ local formspec = "size[8,7.5]"
|
||||||
|
|
||||||
-- Skin
|
-- Skin
|
||||||
|
|
||||||
-- .. "image_button[3.5,1;1,1;gui_hotbar_selected.png^".. skins_array.skin[indexes.skin]..";skin;]"
|
-- .. "image_button[3.5,1;1,1;".. skins_array.skin[indexes.skin]..";skin;]"
|
||||||
-- .. "image_button[1.5,1;1,1;gui_hotbar_selected.png^gauche.png;skin_back;]"
|
-- .. "image_button[1.5,1;1,1;gauche.png;skin_back;]"
|
||||||
-- .. "image_button[5.5,1;1,1;gui_hotbar_selected.png^droite.png;skin_next;]"
|
-- .. "image_button[5.5,1;1,1;droite.png;skin_next;]"
|
||||||
|
|
||||||
-- Eyes
|
-- Eyes
|
||||||
|
|
||||||
.. "image_button[3.5,1.5;1,1;gui_hotbar_selected.png^".. skins_array.face[indexes.face]..";face;]"
|
.. "image_button[3.5,1.5;1,1;".. skins_array.face[indexes.face]..";face;]"
|
||||||
.. "image_button[1.5,1.5;1,1;gui_hotbar_selected.png^gauche.png;face_back;]"
|
.. "image_button[1.5,1.5;1,1;gauche.png;face_back;]"
|
||||||
.. "image_button[5.5,1.5;1,1;gui_hotbar_selected.png^droite.png;face_next;]"
|
.. "image_button[5.5,1.5;1,1;droite.png;face_next;]"
|
||||||
|
|
||||||
-- T-Shirt
|
-- T-Shirt
|
||||||
|
|
||||||
.. "image_button[3.5,2.5;1,1;gui_hotbar_selected.png^".. skins_array.tshirt[indexes.tshirt]..";tshirt;]"
|
.. "image_button[3.5,2.5;1,1;".. skins_array.tshirt[indexes.tshirt]..";tshirt;]"
|
||||||
.. "image_button[1.5,2.5;1,1;gui_hotbar_selected.png^gauche.png;tshirt_back;]"
|
.. "image_button[1.5,2.5;1,1;gauche.png;tshirt_back;]"
|
||||||
.. "image_button[5.5,2.5;1,1;gui_hotbar_selected.png^droite.png;tshirt_next;]"
|
.. "image_button[5.5,2.5;1,1;droite.png;tshirt_next;]"
|
||||||
|
|
||||||
-- Pants
|
-- Pants
|
||||||
|
|
||||||
.. "image_button[3.5,3.5;1,1;gui_hotbar_selected.png^".. skins_array.pants[indexes.pants]..";pants;]"
|
.. "image_button[3.5,3.5;1,1;".. skins_array.pants[indexes.pants]..";pants;]"
|
||||||
.. "image_button[1.5,3.5;1,1;gui_hotbar_selected.png^gauche.png;pants_back;]"
|
.. "image_button[1.5,3.5;1,1;gauche.png;pants_back;]"
|
||||||
.. "image_button[5.5,3.5;1,1;gui_hotbar_selected.png^droite.png;pants_next;]"
|
.. "image_button[5.5,3.5;1,1;droite.png;pants_next;]"
|
||||||
|
|
||||||
-- Shoes
|
-- Shoes
|
||||||
|
|
||||||
.. "image_button[3.5,4.5;1,1;gui_hotbar_selected.png^".. skins_array.shoes[indexes.shoes]..";shoes;]"
|
.. "image_button[3.5,4.5;1,1;".. skins_array.shoes[indexes.shoes]..";shoes;]"
|
||||||
.. "image_button[1.5,4.5;1,1;gui_hotbar_selected.png^gauche.png;shoes_back;]"
|
.. "image_button[1.5,4.5;1,1;gauche.png;shoes_back;]"
|
||||||
.. "image_button[5.5,4.5;1,1;gui_hotbar_selected.png^droite.png;shoes_next;]"
|
.. "image_button[5.5,4.5;1,1;droite.png;shoes_next;]"
|
||||||
|
|
||||||
-- Done
|
-- Done
|
||||||
|
|
||||||
.. "image_button_exit[1.0,6.5;2,1;gui_hotbar_selected.png;main;Back to Game]"
|
.. "image_button_exit[1.0,6.5;2,1;;main;Back to Game]"
|
||||||
|
|
||||||
minetest.show_formspec(player:get_player_name(), "character_creator", formspec)
|
minetest.show_formspec(player:get_player_name(), "character_creator", formspec)
|
||||||
end
|
end
|
||||||
|
|
|
@ -6,14 +6,7 @@ function creative.is_enabled_for(name)
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|
||||||
if creative_mode_cache then
|
local digtime = 200
|
||||||
-- Dig time is modified according to difference (leveldiff) between tool
|
|
||||||
-- 'maxlevel' and node 'level'. Digtime is divided by the larger of
|
|
||||||
-- leveldiff and 1.
|
|
||||||
-- To speed up digging in creative, hand 'maxlevel' and 'digtime' have been
|
|
||||||
-- increased such that nodes of differing levels have an insignificant
|
|
||||||
-- effect on digtime.
|
|
||||||
local digtime = 42
|
|
||||||
local caps = {times = {digtime, digtime, digtime}, uses = 0, maxlevel = 256}
|
local caps = {times = {digtime, digtime, digtime}, uses = 0, maxlevel = 256}
|
||||||
|
|
||||||
minetest.register_item(":", {
|
minetest.register_item(":", {
|
||||||
|
@ -35,32 +28,6 @@ if creative_mode_cache then
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
else
|
|
||||||
|
|
||||||
local digtime = 42
|
|
||||||
local caps = {times = {digtime, digtime, digtime}, uses = 0, maxlevel = 256}
|
|
||||||
|
|
||||||
minetest.register_item(":", {
|
|
||||||
type = "none",
|
|
||||||
wield_image = "wieldhand.png",
|
|
||||||
wield_scale = {x = 1, y = 1, z = 2.5},
|
|
||||||
range = 10,
|
|
||||||
tool_capabilities = {
|
|
||||||
full_punch_interval = 0.5,
|
|
||||||
max_drop_level = 3,
|
|
||||||
groupcaps = {
|
|
||||||
crumbly = caps,
|
|
||||||
cracky = caps,
|
|
||||||
snappy = caps,
|
|
||||||
choppy = caps,
|
|
||||||
oddly_breakable_by_hand = caps,
|
|
||||||
},
|
|
||||||
damage_groups = {fleshy = 10},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
end
|
|
||||||
|
|
||||||
-- Unlimited node placement
|
-- Unlimited node placement
|
||||||
minetest.register_on_placenode(function(pos, newnode, placer, oldnode, itemstack)
|
minetest.register_on_placenode(function(pos, newnode, placer, oldnode, itemstack)
|
||||||
return creative.is_enabled_for(placer:get_player_name())
|
return creative.is_enabled_for(placer:get_player_name())
|
||||||
|
|
Loading…
Reference in New Issue