From 1c7d3dd2617dcaf1a7fc5274da72febfbd101dbd Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Tue, 31 Mar 2020 21:36:53 +0200 Subject: [PATCH] Add icons to all awards --- mods/awards/api.lua | 4 +-- mods/awards/init.lua | 34 +++++++++++++----- .../textures/{anvil.png => awards_anvil.png} | Bin .../{bg_default.png => awards_bg_default.png} | Bin .../{bg_mining.png => awards_bg_mining.png} | Bin mods/awards/textures/awards_death.png | Bin 0 -> 183 bytes mods/awards/textures/awards_desert_anvil.png | Bin 0 -> 307 bytes .../{miniminer.png => awards_miniminer.png} | Bin ...cebuilder.png => awards_novicebuilder.png} | Bin .../{template.png => awards_template.png} | Bin .../{unknown.png => awards_unknown.png} | Bin 11 files changed, 27 insertions(+), 11 deletions(-) rename mods/awards/textures/{anvil.png => awards_anvil.png} (100%) rename mods/awards/textures/{bg_default.png => awards_bg_default.png} (100%) rename mods/awards/textures/{bg_mining.png => awards_bg_mining.png} (100%) create mode 100644 mods/awards/textures/awards_death.png create mode 100644 mods/awards/textures/awards_desert_anvil.png rename mods/awards/textures/{miniminer.png => awards_miniminer.png} (100%) rename mods/awards/textures/{novicebuilder.png => awards_novicebuilder.png} (100%) rename mods/awards/textures/{template.png => awards_template.png} (100%) rename mods/awards/textures/{unknown.png => awards_unknown.png} (100%) diff --git a/mods/awards/api.lua b/mods/awards/api.lua index fdda7a8..6cda883 100644 --- a/mods/awards/api.lua +++ b/mods/awards/api.lua @@ -104,10 +104,10 @@ function awards.register_achievement(name,data_table) -- check icon, background and custom_announce data if data_table.icon == nil or data_table.icon == "" then - data_table.icon = "unknown.png" + data_table.icon = "awards_unknown.png" end if data_table.background == nil or data_table.background == "" then - data_table.background = "bg_default.png" + data_table.background = "awards_bg_default.png" end if data_table.custom_announce == nil or data_table.custom_announce == "" then data_table.custom_announce = "Achievement Unlocked:" diff --git a/mods/awards/init.lua b/mods/awards/init.lua index 722dbd8..c035783 100644 --- a/mods/awards/init.lua +++ b/mods/awards/init.lua @@ -10,7 +10,7 @@ dofile(minetest.get_modpath("awards").."/api.lua") awards.register_achievement("award_firstlight",{ title = "First Light", description = "You have placed a torch", - icon = "novicebuilder.png", + icon = "awards_novicebuilder.png", trigger={ type="place", node="default:torch", @@ -20,7 +20,7 @@ awards.register_achievement("award_firstlight",{ awards.register_achievement("award_lightitup",{ title = "Light It Up", description = "You have placed 100 torches", - icon = "novicebuilder.png", + icon = "awards_novicebuilder.png", trigger={ type="place", node="default:torch", @@ -30,7 +30,7 @@ awards.register_achievement("award_lightitup",{ awards.register_achievement("award_betterthantorch",{ title = "Better Than Torch", description = "You have placed a streetlight", - icon = "novicebuilder.png", + icon = minetest.inventorycube(""), trigger={ type="place", node="light:streetlight", @@ -42,6 +42,7 @@ awards.register_achievement("award_betterthantorch",{ awards.register_achievement("award_lumberjack_ash",{ title = "Ash Lumber Jack", description = "You have mined an ash log!", + icon = "trees_ash_log.png", trigger={ type="dig", node="trees:ash_log", @@ -51,6 +52,7 @@ awards.register_achievement("award_lumberjack_ash",{ awards.register_achievement("award_lumberjack_aspen",{ title = "Aspen Lumber Jack", description = "You have mined an aspen log!", + icon = "trees_aspen_log.png", trigger={ type="dig", node="trees:aspen_log", @@ -60,6 +62,7 @@ awards.register_achievement("award_lumberjack_aspen",{ awards.register_achievement("award_lumberjack_birch",{ title = "Birch Lumber Jack", description = "You have mined a birch log!", + icon = "trees_birch_log.png", trigger={ type="dig", node="trees:birch_log", @@ -69,6 +72,7 @@ awards.register_achievement("award_lumberjack_birch",{ awards.register_achievement("award_lumberjack_maple",{ title = "Maple Lumber Jack", description = "You have mined a maple log!", + icon = "trees_maple_log.png", trigger={ type="dig", node="trees:maple_log", @@ -78,6 +82,7 @@ awards.register_achievement("award_lumberjack_maple",{ awards.register_achievement("award_lumberjack_chestnut",{ title = "Chestnut Lumber Jack", description = "You have mined a chestnut log!", + icon = "trees_chestnut_log.png", trigger={ type="dig", node="trees:chestnut_log", @@ -87,6 +92,7 @@ awards.register_achievement("award_lumberjack_chestnut",{ awards.register_achievement("award_lumberjack_pine",{ title = "Pine Lumber Jack", description = "You have mined a pine log!", + icon = "trees_pine_log.png", trigger={ type="dig", node="trees:pine_log", @@ -95,6 +101,7 @@ awards.register_achievement("award_lumberjack_pine",{ }) awards.register_achievement("award_lumberjack_spruce",{ title = "Spruce Lumber Jack", + icon = "trees_spruce_log.png", description = "You have mined a spruce log!", trigger={ type="dig", @@ -107,7 +114,7 @@ awards.register_achievement("award_lumberjack_spruce",{ awards.register_achievement("award_anvil_stone",{ title = "Smithery", description = "Place a Stone Anvil", - icon = "anvil.png", + icon = "awards_anvil.png", background = "bg_default.png", trigger={ type="place", @@ -118,7 +125,7 @@ awards.register_achievement("award_anvil_stone",{ awards.register_achievement("award_anvil_dstone",{ title = "Desert Smithery", description = "Place a Desert Stone Anvil", - icon = "anvil.png", + icon = "awards_desert_anvil.png", background = "bg_default.png", trigger={ type="place", @@ -131,7 +138,7 @@ awards.register_achievement("award_anvil_dstone",{ awards.register_achievement("award_mine1",{ title = "Entering the mine", description = "You have dug 10 stone", - icon = "miniminer.png", + icon = "awards_miniminer.png", background = "bg_mining.png", trigger={ type="dig", @@ -144,7 +151,7 @@ awards.register_achievement("award_mine1",{ awards.register_achievement("award_mine2",{ title = "Mini Miner", description = "You have dug 100 stone", - icon = "miniminer.png", + icon = "awards_miniminer.png", background = "bg_mining.png", trigger={ type="dig", @@ -157,7 +164,7 @@ awards.register_achievement("award_mine2",{ awards.register_achievement("award_mine3",{ title = "Hardened Miner", description = "You have dug 1000 stone", - icon = "miniminer.png", + icon = "awards_miniminer.png", background = "bg_mining.png", trigger={ type="dig", @@ -170,7 +177,7 @@ awards.register_achievement("award_mine3",{ awards.register_achievement("award_mine4",{ title = "Master Miner", description = "You have dug 10000 stone", - icon = "miniminer.png", + icon = "awards_miniminer.png", background = "bg_mining.png", trigger={ type="dig", @@ -183,6 +190,7 @@ awards.register_achievement("award_mine4",{ awards.register_achievement("award_death1",{ title = "First Death", description = "You died. Oh well, it does not matter, you have more lives than a cat", + icon = "awards_death.png", trigger={ type="death", target=1, @@ -192,6 +200,7 @@ awards.register_achievement("award_death1",{ -- Spike Placement awards.register_achievement("award_spike_ash",{ title = "Spiky Ash!", + icon = "trees_ash_planks.png", description = "You placed ash spikes!", trigger={ type="place", @@ -201,6 +210,7 @@ awards.register_achievement("award_spike_ash",{ }) awards.register_achievement("award_spike_aspen",{ title = "Spiky Aspen!", + icon = "trees_aspen_planks.png", description = "You placed aspen spikes!", trigger={ type="place", @@ -211,6 +221,7 @@ awards.register_achievement("award_spike_aspen",{ awards.register_achievement("award_spike_birch",{ title = "Spiky Birch!", description = "You placed birch spikes!", + icon = "trees_birch_planks.png", trigger={ type="place", node="spikes:spike_birch", @@ -220,6 +231,7 @@ awards.register_achievement("award_spike_birch",{ awards.register_achievement("award_spike_maple",{ title = "Spiky Maple!", description = "You placed maple spikes!", + icon = "trees_maple_planks.png", trigger={ type="place", node="spikes:spike_maple", @@ -228,6 +240,7 @@ awards.register_achievement("award_spike_maple",{ }) awards.register_achievement("award_spike_chestnut",{ title = "Spiky Chestnut!", + icon = "trees_chestnut_planks.png", description = "You placed chestnut spikes!", trigger={ type="place", @@ -237,6 +250,7 @@ awards.register_achievement("award_spike_chestnut",{ }) awards.register_achievement("award_spike_pine",{ title = "Spiky Pine!", + icon = "trees_pine_planks.png", description = "You placed pine spikes!", trigger={ type="place", @@ -246,6 +260,7 @@ awards.register_achievement("award_spike_pine",{ }) awards.register_achievement("award_spike_spruce",{ title = "Spiky Spruce!", + icon = "trees_spruce_planks.png", description = "You placed spruce spikes!", trigger={ type="place", @@ -258,6 +273,7 @@ awards.register_achievement("award_spike_spruce",{ awards.register_achievement("award_ants",{ title = "ANTS!", description = "You dug an anthill", + icon = "farming:anthill.png", trigger={ type="dig", node="farming:ant_hill", diff --git a/mods/awards/textures/anvil.png b/mods/awards/textures/awards_anvil.png similarity index 100% rename from mods/awards/textures/anvil.png rename to mods/awards/textures/awards_anvil.png diff --git a/mods/awards/textures/bg_default.png b/mods/awards/textures/awards_bg_default.png similarity index 100% rename from mods/awards/textures/bg_default.png rename to mods/awards/textures/awards_bg_default.png diff --git a/mods/awards/textures/bg_mining.png b/mods/awards/textures/awards_bg_mining.png similarity index 100% rename from mods/awards/textures/bg_mining.png rename to mods/awards/textures/awards_bg_mining.png diff --git a/mods/awards/textures/awards_death.png b/mods/awards/textures/awards_death.png new file mode 100644 index 0000000000000000000000000000000000000000..9dcbb97b0ea2a45972f482b37909007d0297189c GIT binary patch literal 183 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!63?wyl`GbKJe}GSjE0C6zm9@3CUA}zzojZ4e z0=A_9g_1p8978G?O}iOa9cAD-H0j5?`e*w$*>ChXqNF3e+S6qotDB-O*HXRdf4)^; z(c+Q2Vaj~tm3G#FPY+Ufb~jz;ytVJBpvWGZPwQ41%;7cJ-_PS=`^|&r|8%|MQtvhe f8m2s(vcz8CJmdGv!Tb7v)-iax`njxgN@xNAqqaf7 literal 0 HcmV?d00001 diff --git a/mods/awards/textures/awards_desert_anvil.png b/mods/awards/textures/awards_desert_anvil.png new file mode 100644 index 0000000000000000000000000000000000000000..1fc8c60b688970f1096cb5a785f23d7f91827308 GIT binary patch literal 307 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!63?wyl`GbK}PJmB{tBbNsx0g+YgK?d+S%Zst ziLGIit9h@tO_8l(o|S&Cm0qQTNxro~shv@~hgGMiRhOrAriE^^n?<3GLAIq{im7(B zqe+^X_Edj|WK*p+cgu8hoh%F88Yk1~0S;yM#*zAJt!@?*eeL>uY*}wAE(hA%-uIgo+j`mb!cM_=NTKiD*Lrp9y9Zy