Better inv. images for computer items
| @@ -15,6 +15,7 @@ minetest.register_node("computer:vanio", { | ||||
| 	drawtype = "mesh", | ||||
| 	mesh = "computer_laptop.obj", | ||||
| 	description = "Pony Vanio", | ||||
| 	inventory_image = "computer_laptop_inv.png", | ||||
| 	tiles = {"computer_laptop.png"}, | ||||
| 	paramtype = "light", | ||||
| 	paramtype2 = "facedir", | ||||
| @@ -53,6 +54,7 @@ minetest.register_node("computer:vanio_off", { | ||||
| -- Sony PlayStation lookalike | ||||
| computer.register("computer:slaystation", { | ||||
| 	description = "Pony SlayStation", | ||||
| 	inventory_image = "computer_ps1_inv.png", | ||||
| 	tiles_off = { top=true }, | ||||
| 	node_box = computer.pixelnodebox(32, { | ||||
| 		-- X   Y   Z   W   H   L | ||||
| @@ -69,6 +71,7 @@ computer.register("computer:slaystation", { | ||||
| -- Sony PlayStation 2 lookalike | ||||
| computer.register("computer:slaystation2", { | ||||
| 	description = "Pony SlayStation 2", | ||||
| 	inventory_image = "computer_ps2_inv.png", | ||||
| 	tiles_off = { front=true }, | ||||
| 	node_box = computer.pixelnodebox(32, { | ||||
| 		-- X   Y   Z   W   H   L | ||||
| @@ -86,6 +89,7 @@ computer.register("computer:slaystation2", { | ||||
| -- Sinclair ZX Spectrum lookalike | ||||
| computer.register("computer:specter", { | ||||
| 	description = "SX Specter", | ||||
| 	inventory_image = "computer_specter_inv.png", | ||||
| 	tiles_off = { }, | ||||
| 	node_box = computer.pixelnodebox(32, { | ||||
| 		-- X   Y   Z   W   H   L | ||||
| @@ -97,6 +101,7 @@ computer.register("computer:specter", { | ||||
| -- Nintendo Wii lookalike | ||||
| computer.register("computer:wee", { | ||||
| 	description = "Nientiendo Wee", | ||||
| 	inventory_image = "computer_wii_inv.png", | ||||
| 	tiles_off = { front=true }, | ||||
| 	node_box = computer.pixelnodebox(32, { | ||||
| 		-- X   Y   Z   W   H   L | ||||
| @@ -124,6 +129,7 @@ minetest.register_node("computer:piepad", { | ||||
| -- Commodore 64 lookalike | ||||
| computer.register("computer:admiral64", { | ||||
| 	description = "Admiral64", | ||||
| 	inventory_image = "computer_ad64_inv.png", | ||||
| 	tiles_off = { }, | ||||
| 	node_box = computer.pixelnodebox(32, { | ||||
| 		-- X   Y   Z   W   H   L | ||||
| @@ -134,6 +140,7 @@ computer.register("computer:admiral64", { | ||||
| -- Commodore 128 lookalike | ||||
| computer.register("computer:admiral128", { | ||||
| 	description = "Admiral128", | ||||
| 	inventory_image = "computer_ad128_inv.png", | ||||
| 	tiles_off = { }, | ||||
| 	node_box = computer.pixelnodebox(32, { | ||||
| 		-- X   Y   Z   W   H   L | ||||
| @@ -149,6 +156,7 @@ local mo_sbox = { | ||||
|  | ||||
| minetest.register_node("computer:monitor", { | ||||
| 	description = "Monitor and keyboard", | ||||
| 	inventory_image = "computer_monitor_inv.png", | ||||
| 	drawtype = "mesh", | ||||
| 	mesh = "computer_monitor.obj", | ||||
| 	tiles = {"computer_black.png", "monitor_plastic.png", "computer_black.png", "monitor_plastic.png"}, | ||||
| @@ -189,6 +197,7 @@ minetest.register_alias("computer:monitor_desktop", "computer:monitor") | ||||
| --WIFI Router (linksys look-a-like) | ||||
| minetest.register_node("computer:router", { | ||||
| 	description = "WIFI Router", | ||||
| 	inventory_image = "computer_router_inv.png", | ||||
| 	tiles = {"computer_router_t.png","computer_router_bt.png","computer_router_l.png","computer_router_r.png","computer_router_b.png", | ||||
| 			{name="computer_router_f_animated.png", animation={type="vertical_frames", aspect_w=32, aspect_h=32, length=1.0}},}, --"computer_router_f.png"}, | ||||
| 	paramtype = "light", | ||||
| @@ -216,6 +225,7 @@ local pct_cbox = { | ||||
| --Modern PC Tower | ||||
| minetest.register_node("computer:tower", { | ||||
| 	description = "Computer Tower", | ||||
| 	inventory_image = "computer_tower_inv.png", | ||||
| 	drawtype = "mesh", | ||||
| 	mesh = "computer_tower.obj", | ||||
| 	tiles = {"computer_tower.png"}, | ||||
| @@ -232,6 +242,7 @@ minetest.register_alias("computer:tower_on", "computer:tower") | ||||
| -- Printer/scaner combo | ||||
| minetest.register_node("computer:printer", { | ||||
| 	description = "Printer Scaner Combo", | ||||
| 	inventory_image = "computer_printer_inv.png", | ||||
| 	tiles = {"computer_printer_t.png","computer_printer_bt.png","computer_printer_l.png", | ||||
| 			"computer_printer_r.png","computer_printer_b.png","computer_printer_f.png"}, | ||||
| 	paramtype = "light", | ||||
|   | ||||
| @@ -13,6 +13,7 @@ computer.register = function (name, def) | ||||
| 		paramtype = "light", | ||||
| 		paramtype2 = "facedir", | ||||
| 		description = def.description, | ||||
| 		inventory_image = def.inventory_image, | ||||
| 		groups = {snappy=2, choppy=2, oddly_breakable_by_hand=2}, | ||||
| 		tiles = { | ||||
| 			TEXPFX.."tp.png", | ||||
|   | ||||
| @@ -29,12 +29,12 @@ local colors = { "computer_cyan.png", "computer_magenta.png", "computer_red.png" | ||||
| 	"computer_blue.png", "computer_green.png", "computer_orange.png", "computer_yellow.png" } | ||||
|  | ||||
| local background = "image[0,0;3.55,6.66;computer_black.png]" | ||||
| local buttons = "button[3,4.5;0.6,0.6;left;◄]" | ||||
| local buttons = "button[3,4.5;0.6,0.6;left;<]" | ||||
| 	.."button[3.6,4.5;0.6,0.6;rotateleft;L]" | ||||
| 	.."button[4.2,4.5;0.6,0.6;down;V]" | ||||
| 	.."button[4.2,5.3;0.6,0.6;drop;▼]" | ||||
| 	.."button[4.2,4.5;0.6,0.6;down;v]" | ||||
| 	.."button[4.2,5.3;0.6,0.6;drop;V]" | ||||
| 	.."button[4.8,4.5;0.6,0.6;rotateright;R]" | ||||
| 	.."button[5.4,4.5;0.6,0.6;right;►]" | ||||
| 	.."button[5.4,4.5;0.6,0.6;right;>]" | ||||
| 	.."button[3.5,3;2,2;new;New Game]" | ||||
|  | ||||
| local formsize = "size[5.9,5.7]" | ||||
| @@ -240,7 +240,7 @@ local function step(pos, fields) | ||||
| 	return run | ||||
| end | ||||
|  | ||||
| local arcade = { | ||||
| minetest.register_node("computer:tetris_arcade", { | ||||
| 	description="Tetris Arcade", | ||||
| 	drawtype = "mesh", | ||||
| 	mesh = "tetris_arcade.obj", | ||||
| @@ -276,7 +276,6 @@ local arcade = { | ||||
| 		local node = {name="computer:tetris_arcade", param1=0, param2 = minetest.dir_to_facedir(dir)} | ||||
| 		minetest.set_node(pos, node) | ||||
| 		itemstack:take_item() | ||||
| 		return itemstack | ||||
| 	end | ||||
| } | ||||
|  | ||||
| minetest.register_node("computer:tetris_arcade", arcade) | ||||
| }) | ||||
|   | ||||
							
								
								
									
										
											BIN
										
									
								
								computer/textures/computer_ad128_inv.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 2.3 KiB | 
							
								
								
									
										
											BIN
										
									
								
								computer/textures/computer_ad64_inv.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 2.2 KiB | 
							
								
								
									
										
											BIN
										
									
								
								computer/textures/computer_laptop_inv.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 2.7 KiB | 
							
								
								
									
										
											BIN
										
									
								
								computer/textures/computer_monitor_inv.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 2.7 KiB | 
							
								
								
									
										
											BIN
										
									
								
								computer/textures/computer_printer_inv.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 2.4 KiB | 
							
								
								
									
										
											BIN
										
									
								
								computer/textures/computer_ps1_inv.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 2.3 KiB | 
							
								
								
									
										
											BIN
										
									
								
								computer/textures/computer_ps2_inv.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 2.3 KiB | 
							
								
								
									
										
											BIN
										
									
								
								computer/textures/computer_router_inv.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 1.9 KiB | 
							
								
								
									
										
											BIN
										
									
								
								computer/textures/computer_specter_inv.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 2.3 KiB | 
							
								
								
									
										
											BIN
										
									
								
								computer/textures/computer_tower_inv.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 1.7 KiB | 
							
								
								
									
										
											BIN
										
									
								
								computer/textures/computer_wii_inv.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 2.1 KiB | 
| @@ -108,7 +108,7 @@ minetest.register_node("fake_fire:fancy_fire", { | ||||
| 		walkable = false, | ||||
| 		damage_per_second = 4, | ||||
| 		tiles = { | ||||
| 		{name='fire_basic_flame_animated.png',  | ||||
| 		{name="fake_fire_animated.png",  | ||||
| 		animation={type='vertical_frames', aspect_w=16, aspect_h=16, length=1}}, {name='fake_fire_logs.png'}}, | ||||
| 		on_rightclick = function (pos, node, clicker) | ||||
| 			start_smoke(pos, node, clicker) | ||||
|   | ||||