From a5f384fc6a6906eccbe8ba9dcfd69a2775e9d690 Mon Sep 17 00:00:00 2001 From: crabman77 Date: Thu, 9 Jun 2016 22:52:19 +0200 Subject: [PATCH] optimize textures with trimage move wear texture in formspec change texture empty slot --- shop.lua | 6 +++--- textures/minercantile_bancomatic_back.png | Bin 89 -> 83 bytes textures/minercantile_bancomatic_side.png | Bin 154 -> 153 bytes textures/minercantile_img_inv.png | Bin 92 -> 121 bytes textures/minercantile_wear_0.png | Bin 116 -> 110 bytes textures/minercantile_wear_1.png | Bin 118 -> 110 bytes textures/minercantile_wear_2.png | Bin 117 -> 111 bytes textures/minercantile_wear_3.png | Bin 117 -> 112 bytes textures/minercantile_wear_4.png | Bin 117 -> 114 bytes textures/minercantile_wear_5.png | Bin 117 -> 114 bytes textures/minercantile_wear_6.png | Bin 117 -> 114 bytes textures/minercantile_wear_7.png | Bin 117 -> 112 bytes textures/minercantile_wear_8.png | Bin 117 -> 111 bytes textures/minercantile_wear_9.png | Bin 118 -> 110 bytes 14 files changed, 3 insertions(+), 3 deletions(-) diff --git a/shop.lua b/shop.lua index e236ad1..c5e4990 100644 --- a/shop.lua +++ b/shop.lua @@ -481,11 +481,11 @@ local function show_formspec_to_sell(name) local item = shop_sell[name].items[i] if item then table.insert(formspec, "item_image_button["..x..","..y..";1,1;"..item.name..";buttonchoice_"..i..";"..item.nb.."]") - table.insert(formspec, "label["..(x)..","..(y+0.8)..";"..item.price.."$]") + table.insert(formspec, "label["..(x)..","..(y+0.9)..";"..item.price.."$]") if item.wear and item.wear > 0 then local img = get_wear_img(item.wear) if img then - table.insert(formspec, "image["..x..","..y..";1,1;"..img.."]") + table.insert(formspec, "image["..x..","..(y+0.1)..";1,1;"..img.."]") end end else @@ -517,7 +517,7 @@ local function get_formspec_sell_items(name) if item.wear and item.wear > 0 then local img = get_wear_img(item.wear) if img then - table.insert(formspec, "image[3.6,1.5;1,1;"..img.."]") + table.insert(formspec, "image[3.6,1.6;1,1;"..img.."]") end end diff --git a/textures/minercantile_bancomatic_back.png b/textures/minercantile_bancomatic_back.png index bfceed34476ba2ab679750e266235f94aaa1fec1..5e3bd5840d83e6b1500311bb5d02fcba295a964f 100644 GIT binary patch delta 64 zcmazHo*-e($jrdN;JM|+b|A$Z;1l9{@Zj>bE`l$CTy9Sn#}E$LWQiw0&H@I;>9f`b P0a*;5u6{1-oD!MGxHZZiXexuJ LtDnm{r-UW|5%e8+ delta 108 zcmbQqIE!(D1SbbG0|SH0lCEPD6%`|#JzX3_Dj1U!R2bT(F@>o#9A*h)V++%0jb`kT zyTWxqL_05DK$P!{gEGhNM$YL>7Re2w8yGUhY8Y9Wo~TN&NHlUWh~}~eEG-PZ2{e|$ M)78&qol`;+0A7C{4gdfE diff --git a/textures/minercantile_img_inv.png b/textures/minercantile_img_inv.png index cc3411b23798935d43be92e679a5ad75962790f3..250b4326327df58c0c22807d03c0c2f037f20478 100644 GIT binary patch delta 102 zcma#4oFI|N#LU3Jz$Y>(9Y}Eo_=LFr|Nr0L-+$GXeGf%;PXh`vl?3?(Gt?c_n+Q@V z>*?YcA`zaP(7?DhG+_hN!3#XB%{>p#ANXR;!@!`}9=d;<$lX6cg$$mqelF{r5}E*# Cz#^sq delta 73 zcmb=7nIPf9!OXzG;IgFa7?5HM@Ck98bg=d#Wzp$Py%3>9qv diff --git a/textures/minercantile_wear_0.png b/textures/minercantile_wear_0.png index 231920c638fb9f836280a86c415b77c59afc1713..3d31944e0541e29c17134bb8497d406d13811327 100644 GIT binary patch delta 91 zcmXTPn;;R!#LU3Jz$Y>(9Y}Eo_=LCuX&`uP%^*^m!3bnAmIV0)GdMiEkp|=ld%8G= nNJu72u%2)*72$D`NMK-4Jj7ICmbYvJP@2Kh)z4*}Q$iB}NtqO3 delta 97 zcmc~RnII9v!OXzG;IgFa7?9!#@Ck7R(m?Ron&JQd|HWk=?SUM|k|4ie28U-i(tsQ> tPZ!6K3dUrKZ3!YhO@RlFbnpvY<7eQ~Wl-SYc60=3_H^}gS?83{1OPRN8x8;f diff --git a/textures/minercantile_wear_1.png b/textures/minercantile_wear_1.png index a3c7679a5151313f8eef075ca160da6615c03996..16470fb784e28d04a0e4fc4b5effefa1f6f1c709 100644 GIT binary patch delta 91 zcmXTRn;;R!#LU3Jz$Y>(9Y}Eo_=LCuX&`uP%^*^m!3bnAmIV0)GdMiEkp|=ld%8G= nNJu72u%2+x7U6M{NMK-45@)Klx@GbLD9zyM>gTe~DWM4fKpzw8 delta 99 zcmc~Rn;;R#!OXzG;IgFa7?9!#@Ck7R(m?Ron&JQd|HWk=?SUM|k|4ie28U-i(tsQZ vPZ!6K3dUrKZ3!YhO@RlF968b(9Y}Eo_=LCuX&`tU%J80BPXoweED7=pW^j0RBMrzA@pN$v ok&sN5U_IfGovOjnVsLmdKI;Vst0F_Y|0RR91 delta 98 zcmc~Vogfj*!OXzG;IgFa7?9!#@Ck7R(m?Pyl;QvX|Dh!o!axpVNswPKgTu2MX+Vy+ ur;B4q1!Jl% diff --git a/textures/minercantile_wear_3.png b/textures/minercantile_wear_3.png index e6317caf8e3878af0bc6e4815c8461bf320943de..08efc0e8f606e0f8a5a796cf1358badb978a983a 100644 GIT binary patch delta 93 zcmXRdm>?0s#LU3Jz$Y>(9Y}Eo_=LCuX&`tU%J80BPXoweED7=pW^j0RBMrzA^>lFz pk&sN5U_IfGef3g+0!Ly4BZH1Ov(l8K+f6|lJzf1=);T3K0RXxA7Lxz~ delta 98 zcmXRYogfj*!OXzG;IgFa7?9!#@Ck7R(m?Pyl;QvX|Dh!o!axpVNswPKgTu2MX+Vy+ ur;B4q1!JG*$^ZtBCon{|@hVTWv;hEDGX``3 delta 29 hcmXRaouDGh6W|l#$^ZtBCouf~|G%U$e#b;J8vuk%3UL4c diff --git a/textures/minercantile_wear_5.png b/textures/minercantile_wear_5.png index 2839a32abb32be743a2594a3ddd59492cfbd5300..609788fbede02e2a718051aa83902be6c253f0cd 100644 GIT binary patch delta 26 ecmXRdnxG=Y8Q>G*$^Ztho->$f-kdwp(gpxsNe7q! delta 29 hcmXRaouDGh6W|l#$^Ztho-_Ra|6iiUX#GSp8vunA3OE1& diff --git a/textures/minercantile_wear_6.png b/textures/minercantile_wear_6.png index 500e9d7e4ef1d9aec642710a2d62160016e35d3a..7b0b6f0c322c5cda1dcb89b929a38ffc5a606b61 100644 GIT binary patch delta 26 ecmXRdnxG=Y8Q>G*$^Ztho->$f-kdwp(gpxsNe7q! delta 29 hcmXRaouDGh6W|l#$^Ztho-_Ra|6iiUX#GSp8vunA3OE1& diff --git a/textures/minercantile_wear_7.png b/textures/minercantile_wear_7.png index 084d60f25235d6e815ea7303df3ed9f959326d2a..7f74add65bfc344ce20985b9c33437f8e19a26ab 100644 GIT binary patch delta 93 zcmXRdm>?0s#LU3Jz$Y>(9Y}Eo_=LCuX(0Iig~8ckg$|I#SQ6wH%;50sMjDVK>gnPb oA|aV9!Fs|WTU0=Ymp8G2k-<`uMX_rE>v51qPgg&ebxsLQ0I@q2Q2+n{ delta 98 zcmXRYogfj*!OXzG;IgFa7?9!#@Ck7R(m?S23&a2a{~Joq?ErEZOM?7@862M7NCR@j uJzX3_Dj1U`wk3%4GzA`L;WaqKkocE@FPg#RhKPe5NVlh}pUXO@geCyF2p#PJ diff --git a/textures/minercantile_wear_8.png b/textures/minercantile_wear_8.png index e11cb6c0414abc34ca00ed54ad4b3e73d3516d27..5bbe75082e7ac725947e79bd835f7b750ea078b1 100644 GIT binary patch delta 92 zcmXTTpCA#=#LU3Jz$Y>(9Y}Eo_=LCuX&`9%&)8Tqy#mN$ED7=pW^j0RBMrzA@pN$v nk&sN5U_IfGEz04;o7lj}U?a+sCL}1)3)1K5>gTe~DWM4fr*Ra; delta 98 zcmc~Vogfj*!OXzG;IgFa7?9!#@Ck7R(m>GipYi|y|A*E+Ukv0hmIV0)GdMiEkp|?5 vd%8G=R4^t>Y)cU7X$m~h!fepQnE020?Vj`njxgN@xNA-kKnT diff --git a/textures/minercantile_wear_9.png b/textures/minercantile_wear_9.png index 97321a8fe2e00e8ac7fd593ee24b529424e1b221..6ea2748cc144ca1833b78bffe9d210ddf3d795ca 100644 GIT binary patch delta 91 zcmXTRn;;R!#LU3Jz$Y>(9Y}Eo_=LCuX%P7D)G^hB56ECF3GxeOaCmkj4agDpba4!k mkW7|fJ>ifoD$!zafPum04@>pS`x~Nx(hQ!ielF{r5}E**sTU&v delta 99 zcmc~Rn;;R#!OXzG;IgFa7?9!#@Ck7R(jf5P>Hq)#=k(n60ojZtL4Lsu4$p3+0XY($ uE{-7;jL8z)5=45M0uQuE8yFc0UE^oq_hYbPiq_8o>GpK>b6Mw<&;$T#m>Zh_