From aed5aa6024e69e91735e18f5f684cf2cf990acf1 Mon Sep 17 00:00:00 2001 From: Vitalie Ciubotaru Date: Sun, 6 Mar 2016 23:02:00 +0900 Subject: [PATCH] New nodebox and textures for the trading terminal --- exchange_machine.lua | 33 +++++++++++++++++-- textures/global_exchange_exchange_side.png | Bin 231 -> 0 bytes textures/global_exchange_terminal_back.png | Bin 0 -> 232 bytes textures/global_exchange_terminal_bottom.png | Bin 0 -> 223 bytes textures/global_exchange_terminal_front.png | Bin 0 -> 275 bytes textures/global_exchange_terminal_right.png | Bin 0 -> 233 bytes textures/global_exchange_terminal_top.png | Bin 0 -> 236 bytes 7 files changed, 30 insertions(+), 3 deletions(-) delete mode 100644 textures/global_exchange_exchange_side.png create mode 100644 textures/global_exchange_terminal_back.png create mode 100644 textures/global_exchange_terminal_bottom.png create mode 100644 textures/global_exchange_terminal_front.png create mode 100644 textures/global_exchange_terminal_right.png create mode 100644 textures/global_exchange_terminal_top.png diff --git a/exchange_machine.lua b/exchange_machine.lua index 7af44fb..1bf0359 100644 --- a/exchange_machine.lua +++ b/exchange_machine.lua @@ -597,11 +597,38 @@ end) minetest.register_node("global_exchange:exchange", { description = "Exchange", - tiles = {"global_exchange_atm_top.png", - "global_exchange_atm_top.png", - "global_exchange_exchange_side.png", + drawtype = "nodebox", + tiles = { + "global_exchange_terminal_top.png", + "global_exchange_terminal_bottom.png", + "global_exchange_terminal_right.png", + "global_exchange_terminal_right.png^[transform4", + "global_exchange_terminal_back.png", + "global_exchange_terminal_front.png", }, + paramtype = "light", + paramtype2 = "facedir", groups = {cracky=2}, + stack_max = 1, + light_source = 3, + node_box = { + type = "fixed", + fixed = { + {-8/16, -4/16, 3/16, 0.5, 0.5, 5/16},--screens + {-1/16, -7/16, 5/16, 1/16, 5/16, 7/16},--screen leg + {-3/16, -8/16, 4/16, 3/16, -7/16, 8/16},--leg platform + {-7/16, -8/16, -8/16, 2/16, -6/16, -3/16},--keyboard + {3/16, -8/16, -3/16, 7/16, -7/16, 3/16},--phone low + {4/16, -7/16, -1/16, 6/16, -6/16, 3/16},--phone hi + {2/16, -7/16, 0, 8/16, -5/16, 2/16},--phone speaker + } + }, +--[[ + selection_box = { + type = "fixed", + fixed = {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5}, + }, +]] on_rightclick = function(_, _, clicker) local p_name = clicker:get_player_name() local state = main_state[p_name] diff --git a/textures/global_exchange_exchange_side.png b/textures/global_exchange_exchange_side.png deleted file mode 100644 index c82825a65e14ff1ddec64605763fbe7b71f1430f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 231 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61SBU+%rFB|oCO|{#S9GG!XV7ZFl&wkP>{XE z)7O>#0h1Inld(X^ixQxaWQl7;iF1B#Zfaf$gL6@8Vo7R>LV0FMhJw4NZ$Nk>pEyua zqNj^vh{pM3ldT)l6j(PH7#LJk{1jeUb$nZ|5045{k*P`O{ATWhHzQaVO1+BeRdDjX z`W#4q;8=8{!RL`sN~3gJnvkBO*qV23+DAoHZnB+v#CTIBrm3Vm^AV%+%9GLzVrBN0 UH<+e{11)3lboFyt=akR{0ETTwp8x;= diff --git a/textures/global_exchange_terminal_back.png b/textures/global_exchange_terminal_back.png new file mode 100644 index 0000000000000000000000000000000000000000..40c6bc070fc565f745d1d0d47926f0d2d00ec509 GIT binary patch literal 232 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`oCO|{#S9GG!XV7ZFl&wkP>{XE z)7O>#0W&wJtU}`>>lHvD$r9Iy66gHf+|;}h2Ir#G#FEq$h4Rdj3d*hc9VgVW+kf`bDQpR8MyFe*TzYD}bGJ?|gGs|2V}`9^zkcx{XE z)7O>#0W&u@pL*?E>+e7z$r9Iy66gHf+|;}h2Ir#G#FEq$h4Rdj38m%al>Je{z;NxLsGjEfCo6!K OFnGH9xvX{XE z)7O>#0W&wJgp$zgbq9e$k|nMYCC>S|xv6<249-QVi6yBi3gww484B*6z5(HleBwYw zy`CJ?!sZV@`o13x8MKQ Q1#}pLr>mdKI;Vst06~#noB#j- literal 0 HcmV?d00001 diff --git a/textures/global_exchange_terminal_right.png b/textures/global_exchange_terminal_right.png new file mode 100644 index 0000000000000000000000000000000000000000..ab6c2f8acb23b5f3ac6049d1638620d8b4cf1884 GIT binary patch literal 233 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`oCO|{#S9GG!XV7ZFl&wkP>{XE z)7O>#0W&wJoaSZW3+I7Ck|nMYCC>S|xv6<249-QVi6yBi3gww484B*6z5(HleBwYw z$(}BbAr`0KPCCeWz<`HYf9dWN*8IgcxA<-=vag&H#HH5%EwJ&R(Y6T(0vudYT%J^J z+t`uX7}m>hp_=_bS+)Hk{ST~-dpFq}%lJHT(<6oSyVet?_+Q_~IAO}RXv?N0+UJYw Z8Ke}YCfZ+&^#NMP;OXk;vd$@?2>@u9P1^tf literal 0 HcmV?d00001 diff --git a/textures/global_exchange_terminal_top.png b/textures/global_exchange_terminal_top.png new file mode 100644 index 0000000000000000000000000000000000000000..062e6e0237f3e761810bec5b19f2a2b19f3b0527 GIT binary patch literal 236 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`oCO|{#S9GG!XV7ZFl&wkP>{XE z)7O>#0W&wJoa(KmbDjW&BuiW)N}Tg^b5rw57@Uhz6H8K46v{J8G8EiBeFMT9`NV;W z(mY)pLo80;owSknfC3N8`IVd5wF5SB{yMpbE8D;$D@ZYLiGx#Mz`CNZySCr+(q!0S zJvS=*aic)f*JvRI_HG^ah@OqL*%#(pH1F=;HhoF4mBP|1+g3NI+)iM(e7;iFV^cU! coj?I|*nRnfwtMS2fHpFCy85}Sb4q9e0MAlPZ~y=R literal 0 HcmV?d00001