]> git.lizzy.rs Git - Crafter.git/commitdiff
Add in gui backgrounds
authoroilboi <47129783+oilboi@users.noreply.github.com>
Thu, 5 Mar 2020 02:16:30 +0000 (21:16 -0500)
committeroilboi <47129783+oilboi@users.noreply.github.com>
Thu, 5 Mar 2020 02:16:30 +0000 (21:16 -0500)
mods/craftingtable/init.lua
mods/craftingtable/textures/crafting_inventory_workbench.png
mods/player/init.lua
mods/player/textures/main_inventory.png [new file with mode: 0644]
mods/utility/furnace.lua
mods/utility/textures/gui_hb_bg.png
todo.txt

index 9323ba62e59364bded5bfbefe66442773af3d713..b799cdab5dec557e2dfa6c8ea69199ddce414d07 100644 (file)
@@ -11,7 +11,7 @@ minetest.register_node("craftingtable:craftingtable", {
                player:get_inventory():set_size("craft", 9)
 
                local form = "size[9,8.75]"..
-               --"background[-0.19,-0.25;9.41,9.49;crafting_formspec_bg.png^crafting_inventory_workbench.png]"..
+               "background[-0.19,-0.25;9.41,9.49;crafting_inventory_workbench.png]"..
                "list[current_player;main;0,4.5;9,1;]".. --hot bar
                "list[current_player;main;0,6;9,3;9]".. --big part
                
index 957fa56ba9f64ec58581f4c4e12cc257b40d5f2e..a1057e52c949bcaf93b57cadd9c06d4d5261bad0 100644 (file)
Binary files a/mods/craftingtable/textures/crafting_inventory_workbench.png and b/mods/craftingtable/textures/crafting_inventory_workbench.png differ
index a9ea073dc4cc55c63b25598112e10fbbc8f000df..d9ba579f087b23dbe7b2af89a681153c5fd9ef3a 100644 (file)
@@ -179,7 +179,7 @@ end)
 
 
 local inv =    "size[9,8.75]"..
-    --"image[1,0.6;1,2;player.png]"..
+    "background[-0.19,-0.25;9.41,9.49;main_inventory.png]"..
     "list[current_player;main;0,4.5;9,1;]".. --hot bar
        "list[current_player;main;0,6;9,3;9]".. --big part
     "list[current_player;craft;2.5,1;2,2;]"..
diff --git a/mods/player/textures/main_inventory.png b/mods/player/textures/main_inventory.png
new file mode 100644 (file)
index 0000000..77f99b0
Binary files /dev/null and b/mods/player/textures/main_inventory.png differ
index d15f62ac720ec8ea70731db92e1d451b00f959a2..a14f3596aef7e03f0ff50cdd946b8bb6c629c8bb 100644 (file)
@@ -2,6 +2,7 @@ local furnace = {}
 
 function furnace.get_furnace_active_formspec(fuel_percent, item_percent)
        return "size[9,8.75]"..
+               "background[-0.19,-0.25;9.41,9.49;gui_hb_bg.png]"..
                "list[context;src;2.75,0.5;1,1;]"..
                "list[context;fuel;2.75,2.5;1,1;]"..
                "image[2.75,1.5;1,1;default_furnace_fire_bg.png^[lowpart:"..
@@ -23,6 +24,7 @@ end
 
 function furnace.get_furnace_inactive_formspec()
        return "size[9,8.75]"..
+               "background[-0.19,-0.25;9.41,9.49;gui_hb_bg.png]"..
                "list[context;src;2.75,0.5;1,1;]"..
                "list[context;fuel;2.75,2.5;1,1;]"..
                "image[2.75,1.5;1,1;default_furnace_fire_bg.png]"..
index 688ae6ed6244ccb08a88006d1ff000ebc9d5870b..b3dc17aa8b8ff740d2a9ab8e10a7873180e074ae 100755 (executable)
Binary files a/mods/utility/textures/gui_hb_bg.png and b/mods/utility/textures/gui_hb_bg.png differ
index e9b37c5a3024144e04a2007699cd8f0a42c3d603..0114c327769d686e5862098d13d428fe4bba5964 100644 (file)
--- a/todo.txt
+++ b/todo.txt
@@ -45,7 +45,9 @@ ALPHA STATE CHANGELOG
 -simplify mobs ai
 -running out of a node when placing tries to replace it with another of the same item in inventory
 -crafting bench
-
+-add in default furnace
+add backgrounds to all gui elements
+make furnaces drop all items on destroy instead of not allowing you to mine them
 
 
 farming -