repair menu

This commit is contained in:
Mrchiantos 2019-07-21 17:34:44 +02:00
parent b8997c5d5f
commit ca0ad52c37
3 changed files with 108 additions and 108 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 197 KiB

View File

@ -85,34 +85,34 @@ inventory_plus.get_formspec = function(player, page)
formspec = formspec
.. "image_button_exit[0,0.5;1,1;gui_hotbar_selected.png^blocks.png;blocks;]"
.. "image_button_exit[1,0.5;1,1;gui_hotbar_selected.png^stairs.png;stairs;]"
.. "image_button_exit[2,0.5;1,1;gui_hotbar_selected.png^slabs.png;slabs;]"
.. "image_button_exit[3,0.5;1,1;gui_hotbar_selected.png^windows.png;windows;]"
.. "image_button_exit[4,0.5;1,1;gui_hotbar_selected.png^lights.png;lights;]"
.. "image_button_exit[5,0.5;1,1;gui_hotbar_selected.png^waters.png;waters;]"
.. "image_button_exit[6,0.5;1,1;gui_hotbar_selected.png^doors.png;doors;] "
.. "image_button_exit[7,0.5;1,1;gui_hotbar_selected.png^carpets.png;carpets;]"
.. "image_button_exit[0,2.5;1,1;gui_hotbar_selected.png^trapdoor.png;trapdoor;]"
.. "image_button_exit[1,2.5;1,1;gui_hotbar_selected.png^fence.png;fence;]"
.. "image_button_exit[2,2.5;1,1;gui_hotbar_selected.png^cylinder.png;cylinder;]"
.. "image_button_exit[3,2.5;1,1;gui_hotbar_selected.png^triangle.png;triangle;]"
.. "image_button_exit[4,2.5;1,1;gui_hotbar_selected.png^long.png;long;]"
.. "image_button_exit[5,2.5;1,1;gui_hotbar_selected.png^cone.png;cone;]"
.. "image_button_exit[6,2.5;1,1;gui_hotbar_selected.png^sphere.png;sphere;]"
.. "image_button_exit[7,2.5;1,1;gui_hotbar_selected.png^cornera.png;outcorner;]"
.. "image_button_exit[0,4.5;1,1;gui_hotbar_selected.png^cornerb.png;incorner;]"
.. "image_button_exit[1,4.5;1,1;gui_hotbar_selected.png^arc.png;arc;]"
.. "image_button_exit[2,4.5;1,1;gui_hotbar_selected.png^arcin.png;inarc;]"
.. "image_button_exit[3,4.5;1,1;gui_hotbar_selected.png^arcout.png;outarc;]"
.. "image_button_exit[4,4.5;1,1;gui_hotbar_selected.png^fullpipe.png;fullpipe;]"
.. "image_button_exit[5,4.5;1,1;gui_hotbar_selected.png^fullpipeborder.png;fullpipeborder;]"
.. "image_button_exit[6,4.5;1,1;gui_hotbar_selected.png^edge.png;edge;]"
.. "image_button[7,4.5;1,1;gui_hotbar_selected.png^droite.png;nodes2;]"
.. "image_button_exit[0,0.5;1,1;blocks.png;blocks;]"
.. "image_button_exit[1,0.5;1,1;stairs.png;stairs;]"
.. "image_button_exit[2,0.5;1,1;slabs.png;slabs;]"
.. "image_button_exit[3,0.5;1,1;windows.png;windows;]"
.. "image_button_exit[4,0.5;1,1;lights.png;lights;]"
.. "image_button_exit[5,0.5;1,1;waters.png;waters;]"
.. "image_button_exit[6,0.5;1,1;doors.png;doors;] "
.. "image_button_exit[7,0.5;1,1;carpets.png;carpets;]"
.. "image_button_exit[0,2.5;1,1;trapdoor.png;trapdoor;]"
.. "image_button_exit[1,2.5;1,1;fence.png;fence;]"
.. "image_button_exit[2,2.5;1,1;cylinder.png;cylinder;]"
.. "image_button_exit[3,2.5;1,1;triangle.png;triangle;]"
.. "image_button_exit[4,2.5;1,1;long.png;long;]"
.. "image_button_exit[5,2.5;1,1;cone.png;cone;]"
.. "image_button_exit[6,2.5;1,1;sphere.png;sphere;]"
.. "image_button_exit[7,2.5;1,1;cornera.png;outcorner;]"
.. "image_button_exit[0,4.5;1,1;cornerb.png;incorner;]"
.. "image_button_exit[1,4.5;1,1;arc.png;arc;]"
.. "image_button_exit[2,4.5;1,1;arcin.png;inarc;]"
.. "image_button_exit[3,4.5;1,1;arcout.png;outarc;]"
.. "image_button_exit[4,4.5;1,1;fullpipe.png;fullpipe;]"
.. "image_button_exit[5,4.5;1,1;fullpipeborder.png;fullpipeborder;]"
.. "image_button_exit[6,4.5;1,1;edge.png;edge;]"
.. "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_exit[1,6.5;1,1;gui_hotbar_selected.png^rotate.png;rotate;]"
.. "image_button_exit[2,6.5;1,1;gui_hotbar_selected.png^nones.png;none;]"
.. "image_button[0,6.5;1,1;gauche.png;main;]"
.. "image_button_exit[1,6.5;1,1;rotate.png;rotate;]"
.. "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;]"
-- .. "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_exit[1,6.5;1,1;gui_hotbar_selected.png^rotate.png;rotate;]"
.. "image_button_exit[2,6.5;1,1;gui_hotbar_selected.png^nones.png;none;]"
.. "image_button[0,6.5;1,1;gauche.png;nodes;]"
.. "image_button_exit[1,6.5;1,1;rotate.png;rotate;]"
.. "image_button_exit[2,6.5;1,1;nones.png;none;]"
.. ""
@ -159,9 +159,9 @@ inventory_plus.get_formspec = function(player, page)
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
.. "image_button_exit[0,0.5;1,1;gui_hotbar_selected.png^chair.png;chair;]"
.. "image_button_exit[1,0.5;1,1;gui_hotbar_selected.png^sofas.png;sofas;]"
.. "image_button_exit[2,0.5;1,1;gui_hotbar_selected.png^table.png;table;]"
.. "image_button_exit[3,0.5;1,1;gui_hotbar_selected.png^signs.png;signs;]"
.. "image_button_exit[4,0.5;1,1;gui_hotbar_selected.png^beds.png;beds;]"
.. "image_button_exit[5,0.5;1,1;gui_hotbar_selected.png^flowers.png;flowers;]"
.. "image_button_exit[6,0.5;1,1;gui_hotbar_selected.png^flag.png;flags;]"
.. "image_button_exit[7,0.5;1,1;gui_hotbar_selected.png^computer.png;computers;]"
.. "image_button_exit[0,2.5;1,1;gui_hotbar_selected.png^desk.png;desks;]"
.. "image_button_exit[1,2.5;1,1;gui_hotbar_selected.png^bench.png;bench;]"
.. "image_button_exit[2,2.5;1,1;gui_hotbar_selected.png^armoire.png;armoire;]"
.. "image_button_exit[3,2.5;1,1;gui_hotbar_selected.png^frigo.png;frigo;]"
.. "image_button_exit[4,2.5;1,1;gui_hotbar_selected.png^fbtrap.png;fbtrap;]"
.. "image_button_exit[5,2.5;1,1;gui_hotbar_selected.png^fbstair.png;fbstair;]"
.. "image_button_exit[6,2.5;1,1;gui_hotbar_selected.png^fbladder.png;fbladder;]"
.. "image_button_exit[7,2.5;1,1;gui_hotbar_selected.png^cgherse.png;cgherse;]"
.. "image_button_exit[0,4.5;1,1;gui_hotbar_selected.png^cgborder.png;cgborder;]"
.. "image_button_exit[1,4.5;1,1;gui_hotbar_selected.png^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;gui_hotbar_selected.png^torch.png;torch;]"
.. "image_button_exit[3,4.5;1,1;gui_hotbar_selected.png^invcross.png;shieldcross;]"
.. "image_button_exit[4,4.5;1,1;gui_hotbar_selected.png^invslash.png;shieldslash;]"
.. "image_button_exit[5,4.5;1,1;gui_hotbar_selected.png^invchevron.png;shieldchevron;]"
.."image_button_exit[6,4.5;1,1;gui_hotbar_selected.png^trampo.png;trampoline;]"
.. "image_button_exit[0,0.5;1,1;chair.png;chair;]"
.. "image_button_exit[1,0.5;1,1;sofas.png;sofas;]"
.. "image_button_exit[2,0.5;1,1;table.png;table;]"
.. "image_button_exit[3,0.5;1,1;signs.png;signs;]"
.. "image_button_exit[4,0.5;1,1;beds.png;beds;]"
.. "image_button_exit[5,0.5;1,1;flowers.png;flowers;]"
.. "image_button_exit[6,0.5;1,1;flag.png;flags;]"
.. "image_button_exit[7,0.5;1,1;computer.png;computers;]"
.. "image_button_exit[0,2.5;1,1;desk.png;desks;]"
.. "image_button_exit[1,2.5;1,1;bench.png;bench;]"
.. "image_button_exit[2,2.5;1,1;armoire.png;armoire;]"
.. "image_button_exit[3,2.5;1,1;frigo.png;frigo;]"
.. "image_button_exit[4,2.5;1,1;fbtrap.png;fbtrap;]"
.. "image_button_exit[5,2.5;1,1;fbstair.png;fbstair;]"
.. "image_button_exit[6,2.5;1,1;fbladder.png;fbladder;]"
.. "image_button_exit[7,2.5;1,1;cgherse.png;cgherse;]"
.. "image_button_exit[0,4.5;1,1;cgborder.png;cgborder;]"
.. "image_button_exit[1,4.5;1,1;cgdoor.png;cgdoor;]"
-- .. "image_button_exit[2,4.5;1,1;slabs.png;tslabs;]"
.. "image_button_exit[2,4.5;1,1;torch.png;torch;]"
.. "image_button_exit[3,4.5;1,1;invcross.png;shieldcross;]"
.. "image_button_exit[4,4.5;1,1;invslash.png;shieldslash;]"
.. "image_button_exit[5,4.5;1,1;invchevron.png;shieldchevron;]"
.."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_exit[1,6.5;1,1;gui_hotbar_selected.png^rotate.png;rotate;]"
.. "image_button_exit[2,6.5;1,1;gui_hotbar_selected.png^nones.png;none;]"
.. "image_button[0,6.5;1,1;gauche.png;main;]"
.. "image_button_exit[1,6.5;1,1;rotate.png;rotate;]"
.. "image_button_exit[2,6.5;1,1;nones.png;none;]"
.. ""
end
@ -227,12 +227,12 @@ if page == "furnitures" then
formspec = formspec
.. "image_button_exit[0,0.5;1,1;gui_hotbar_selected.png^beaconon.png;beacon;]"
.. "image_button_exit[1,0.5;1,1;gui_hotbar_selected.png^beaconoff.png;beaconoff;]"
.. "image_button_exit[0,0.5;1,1;beaconon.png;beacon;]"
.. "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_exit[1,6.5;1,1;gui_hotbar_selected.png^rotate.png;rotate;]"
.. "image_button_exit[2,6.5;1,1;gui_hotbar_selected.png^nones.png;none;]"
.. "image_button[0,6.5;1,1;gauche.png;furnitures;]"
.. "image_button_exit[1,6.5;1,1;rotate.png;rotate;]"
.. "image_button_exit[2,6.5;1,1;nones.png;none;]"
.. ""
@ -252,18 +252,18 @@ if page == "furnitures" then
formspec = formspec
.. "image_button_exit[0,0.5;1,1;gui_hotbar_selected.png^cars.png;cars;]"
.. "image_button_exit[1,0.5;1,1;gui_hotbar_selected.png^surfboard.png;surfboard;]"
.. "image_button_exit[2,0.5;1,1;gui_hotbar_selected.png^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[4,0.5;1,1;gui_hotbar_selected.png^hovercraft_inv.png;hovercraft;]"
.. "image_button_exit[5,0.5;1,1;gui_hotbar_selected.png^hotair_inv.png;hotairballoon;]"
.. "image_button_exit[6,0.5;1,1;gui_hotbar_selected.png^cart.png;carts;]"
.. "image_button_exit[7,0.5;1,1;gui_hotbar_selected.png^carts_rail_straight_pwr.png;rails;]"
.. "image_button_exit[0,0.5;1,1;cars.png;cars;]"
.. "image_button_exit[1,0.5;1,1;surfboard.png;surfboard;]"
.. "image_button_exit[2,0.5;1,1;airboat_airboat_inv.png;airboat;]"
.. "image_button_exit[3,0.5;1,1;spaceship_spaceship_inv.png;spaceship;]"
.. "image_button_exit[4,0.5;1,1;hovercraft_inv.png;hovercraft;]"
.. "image_button_exit[5,0.5;1,1;hotair_inv.png;hotairballoon;]"
.. "image_button_exit[6,0.5;1,1;cart.png;carts;]"
.. "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_exit[1,6.5;1,1;gui_hotbar_selected.png^rotate.png;rotate;]"
.. "image_button_exit[2,6.5;1,1;gui_hotbar_selected.png^nones.png;none;]"
.. "image_button[0,6.5;1,1;gauche.png;main;]"
.. "image_button_exit[1,6.5;1,1;rotate.png;rotate;]"
.. "image_button_exit[2,6.5;1,1;nones.png;none;]"
.. ""
@ -280,11 +280,11 @@ if page == "planets" then
formspec = formspec
.. "image_button_exit[0,0.5;1,1;gui_hotbar_selected.png^mmars.png;mars;]"
.. "image_button_exit[1,0.5;1,1;gui_hotbar_selected.png^moon.png;moon;]"
.. "image_button_exit[2,0.5;1,1;gui_hotbar_selected.png^earth.png;earth;]"
.. "image_button_exit[0,0.5;1,1;mmars.png;mars;]"
.. "image_button_exit[1,0.5;1,1;moon.png;moon;]"
.. "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
.. "image_button_exit[0,0.5;1,1;gui_hotbar_selected.png^smalltrees.png;smalltrees;]"
.. "image_button_exit[1,0.5;1,1;gui_hotbar_selected.png^normaltrees.png;normaltrees;]"
.. "image_button_exit[2,0.5;1,1;gui_hotbar_selected.png^bigtrees.png;bigtrees;]"
.. "image_button_exit[0,0.5;1,1;smalltrees.png;smalltrees;]"
.. "image_button_exit[1,0.5;1,1;normaltrees.png;normaltrees;]"
.. "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
.. "image_button[2,0.5;4,1;gui_hotbar_selected.png;character_creator;Skin]"
.. "image_button[2,1.5;4,1;gui_hotbar_selected.png;vehicules;Vehicules]"
.. "image_button[2,0.5;4,1;;character_creator;Skin]"
.. "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,3.5;4,1;gui_hotbar_selected.png;animals;Animals]"
.. "image_button[2,2.5;4,1;;trees;Tree]"
.. "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,5.5;4,1;gui_hotbar_selected.png;furnitures;Decorations]"
.. "image_button[2,4.5;4,1;;nodes;Build]"
.. "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
y = y + 1

View File

@ -53,37 +53,37 @@ local formspec = "size[8,7.5]"
-- Skin
-- .. "image_button[3.5,1;1,1;gui_hotbar_selected.png^".. skins_array.skin[indexes.skin]..";skin;]"
-- .. "image_button[1.5,1;1,1;gui_hotbar_selected.png^gauche.png;skin_back;]"
-- .. "image_button[5.5,1;1,1;gui_hotbar_selected.png^droite.png;skin_next;]"
-- .. "image_button[3.5,1;1,1;".. skins_array.skin[indexes.skin]..";skin;]"
-- .. "image_button[1.5,1;1,1;gauche.png;skin_back;]"
-- .. "image_button[5.5,1;1,1;droite.png;skin_next;]"
-- Eyes
.. "image_button[3.5,1.5;1,1;gui_hotbar_selected.png^".. skins_array.face[indexes.face]..";face;]"
.. "image_button[1.5,1.5;1,1;gui_hotbar_selected.png^gauche.png;face_back;]"
.. "image_button[5.5,1.5;1,1;gui_hotbar_selected.png^droite.png;face_next;]"
.. "image_button[3.5,1.5;1,1;".. skins_array.face[indexes.face]..";face;]"
.. "image_button[1.5,1.5;1,1;gauche.png;face_back;]"
.. "image_button[5.5,1.5;1,1;droite.png;face_next;]"
-- T-Shirt
.. "image_button[3.5,2.5;1,1;gui_hotbar_selected.png^".. skins_array.tshirt[indexes.tshirt]..";tshirt;]"
.. "image_button[1.5,2.5;1,1;gui_hotbar_selected.png^gauche.png;tshirt_back;]"
.. "image_button[5.5,2.5;1,1;gui_hotbar_selected.png^droite.png;tshirt_next;]"
.. "image_button[3.5,2.5;1,1;".. skins_array.tshirt[indexes.tshirt]..";tshirt;]"
.. "image_button[1.5,2.5;1,1;gauche.png;tshirt_back;]"
.. "image_button[5.5,2.5;1,1;droite.png;tshirt_next;]"
-- Pants
.. "image_button[3.5,3.5;1,1;gui_hotbar_selected.png^".. skins_array.pants[indexes.pants]..";pants;]"
.. "image_button[1.5,3.5;1,1;gui_hotbar_selected.png^gauche.png;pants_back;]"
.. "image_button[5.5,3.5;1,1;gui_hotbar_selected.png^droite.png;pants_next;]"
.. "image_button[3.5,3.5;1,1;".. skins_array.pants[indexes.pants]..";pants;]"
.. "image_button[1.5,3.5;1,1;gauche.png;pants_back;]"
.. "image_button[5.5,3.5;1,1;droite.png;pants_next;]"
-- Shoes
.. "image_button[3.5,4.5;1,1;gui_hotbar_selected.png^".. skins_array.shoes[indexes.shoes]..";shoes;]"
.. "image_button[1.5,4.5;1,1;gui_hotbar_selected.png^gauche.png;shoes_back;]"
.. "image_button[5.5,4.5;1,1;gui_hotbar_selected.png^droite.png;shoes_next;]"
.. "image_button[3.5,4.5;1,1;".. skins_array.shoes[indexes.shoes]..";shoes;]"
.. "image_button[1.5,4.5;1,1;gauche.png;shoes_back;]"
.. "image_button[5.5,4.5;1,1;droite.png;shoes_next;]"
-- 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)
end