From 940b9f87f6378ba270025cbd9d73d99b45964cba Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Fri, 30 Aug 2019 23:08:23 +0200 Subject: [PATCH] Inventory menu: Add trash icon+change guide symbol --- mods/crafting/api.lua | 2 +- mods/crafting/locale/crafting.de.tr | 1 - mods/crafting/locale/template.txt | 1 - mods/creative/init.lua | 2 +- mods/creative/textures/creative_trash_icon.png | Bin 0 -> 2899 bytes 5 files changed, 2 insertions(+), 4 deletions(-) create mode 100644 mods/creative/textures/creative_trash_icon.png diff --git a/mods/crafting/api.lua b/mods/crafting/api.lua index be753aa..ce9d76c 100644 --- a/mods/crafting/api.lua +++ b/mods/crafting/api.lua @@ -279,7 +279,7 @@ form = form .. "listring[current_player;craft_out]" form = form .. default.ui.get_itemslot_bg(0.25, 0.25, 1, 4) form = form .. default.ui.get_itemslot_bg(7.25, 3.25, 1, 1) -form = form .. default.ui.button(1.25, 3.25, 1.0, 1.0, "toggle_filter", S("T"), nil, S("Show all recipes/show only craftable recipes")) +form = form .. default.ui.button(1.25, 3.25, 1.0, 1.0, "toggle_filter", "?", nil, S("Show all recipes/show only craftable recipes")) form = form .. default.ui.button(7.25, 1.25, 1, 1, "do_craft_1", "1") form = form .. default.ui.button(7.25, 2.25, 1, 1, "do_craft_10", "10") diff --git a/mods/crafting/locale/crafting.de.tr b/mods/crafting/locale/crafting.de.tr index 7f35109..309b6d1 100644 --- a/mods/crafting/locale/crafting.de.tr +++ b/mods/crafting/locale/crafting.de.tr @@ -1,3 +1,2 @@ # textdomain:crafting -T=U Show all recipes/show only craftable recipes=Alle Rezepte zeigen/nur mögliche Rezepte zeigen diff --git a/mods/crafting/locale/template.txt b/mods/crafting/locale/template.txt index 8833729..4a96c06 100644 --- a/mods/crafting/locale/template.txt +++ b/mods/crafting/locale/template.txt @@ -1,3 +1,2 @@ # textdomain:crafting -T= Show all recipes/show only craftable recipes= diff --git a/mods/creative/init.lua b/mods/creative/init.lua index adb8586..7afe0f2 100644 --- a/mods/creative/init.lua +++ b/mods/creative/init.lua @@ -89,7 +89,7 @@ creative.get_creative_formspec = function(player, start_i, pagenum) default.ui.button(7.25, 2.25, 1, 1, "creative_next", ">>").. default.ui.get_itemslot_bg(0.25, 0.25, 7,4).. - -- TODO: Add trash icon + "image[7.25,3.25;1,1;creative_trash_icon.png]".. "list[detached:creative_trash;main;7.25,3.25;1,1;]".. default.ui.get_itemslot_bg(7.25, 3.25, 1,1).. "listring[current_player;main]".. diff --git a/mods/creative/textures/creative_trash_icon.png b/mods/creative/textures/creative_trash_icon.png new file mode 100644 index 0000000000000000000000000000000000000000..e7bf8adfbc08796a94e4b098c6ec80037d96992e GIT binary patch literal 2899 zcmV-Z3#{~sP) zaB^>EX>4U6ba`-PAZ2)IW&i+q+O1hxawEA8{KqNg2;4xB$Ke|BZt#vj2~^3JrIOnA zv=r@EE@L;|d)_5c5E`UkI=Q=-IDa?RP{m1?S?;X`r9>$rNC?C*8<7X({ugHgwnZx~xu*>Q0U-$U!S@vGX?pn$OxbnHF z+g9uoIs(!Z?Y4}!;2-0&*t_CgTyq1gO>DK3>-bWA0OH#xKYjDtFS`yuu*4Kr5L`nT zAzE9B5^5MmO47IAK?poduoL0{a}mwqV=dn1tvVkjE0}qD^b8(@dE@c!O^*$~eSaBf zZ5%f20RmoiB*OaV+J`T=-jwR zy!8znj%L^kh~Su`fEok}$V!P*M!XeBs1Zj_%$!-caOIZaQkiqklGUf0L`lMuMWjfT zR$@toODi!0Eq}1Ip_srV`YqOc%Mk7e05SYRtBf<|IR%xL$%}c+! z(r<5k9;hyCF{D0f8saO|5Z2lihFmwdUg6Cmymy?z?=d#kUs!!~4_T1blo-)YED5&j zt;5cKPT6CpA{#$1pX9lXCwxI~89Z0*k?Tky5oCgV*Yn)q52NkenxJpST43JVhHtV% zP(Z&VT)yGptnD$*y%whHXV_K%F9SG3612y=~Z zFoEG4P=M)cE1k`X6y_Bh>rG?2v6jz0&ys04VBE zeG`R4>6)MtG%Sn@aV+Q$ z@+u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