summaryrefslogtreecommitdiff
path: root/games/devtest/mods/testnodes/overlays.lua
blob: 294e06a1653ea106ef73043278b7db6c6a8546f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
local S = minetest.get_translator("testnodes")

minetest.register_node("testnodes:overlay", {
	description = S("Texture Overlay Test Node") .. "\n" ..
		S("Uncolorized"),
	tiles = {{name = "testnodes_overlayable.png"}},
	overlay_tiles = {{name = "testnodes_overlay.png"}},
	groups = { dig_immediate = 2 },
})
minetest.register_node("testnodes:overlay_color_all", {
	description = S("Texture Overlay Test Node, Colorized") .. "\n" ..
		S("param2 changes color"),
	tiles = {{name = "testnodes_overlayable.png"}},
	overlay_tiles = {{name = "testnodes_overlay.png"}},
	paramtype2 = "color",
	palette = "testnodes_palette_full.png",


	groups = { dig_immediate = 2 },
})
minetest.register_node("testnodes:overlay_color_overlay", {
	description = S("Texture Overlay Test Node, Colorized Overlay") .. "\n" ..
		S("param2 changes color of overlay"),
	tiles = {{name = "testnodes_overlayable.png", color="white"}},
	overlay_tiles = {{name = "testnodes_overlay.png"}},
	paramtype2 = "color",
	palette = "testnodes_palette_full.png",


	groups = { dig_immediate = 2 },
})
minetest.register_node("testnodes:overlay_color_overlayed", {
	description = S("Texture Overlay Test Node, Colorized Base") .. "\n" ..
		S("param2 changes color of base texture"),
	tiles = {{name = "testnodes_overlayable.png"}},
	overlay_tiles = {{name = "testnodes_overlay.png", color="white"}},
	paramtype2 = "color",
	palette = "testnodes_palette_full.png",


	groups = { dig_immediate = 2 },
})

local global_overlay_color = "#FF2000"
minetest.register_node("testnodes:overlay_global", {
	description = S("Texture Overlay Test Node, Global Color") .. "\n" ..
		S("Global color = @1", global_overlay_color),
	tiles = {{name = "testnodes_overlayable.png"}},
	overlay_tiles = {{name = "testnodes_overlay.png"}},
	color = global_overlay_color,


	groups = { dig_immediate = 2 },
})
minetest.register_node("testnodes:overlay_global_color_all", {
	description = S("Texture Overlay Test Node, Global Color + Colorized") .. "\n" ..
		S("Global color = @1", global_overlay_color) .. "\n" ..
		S("param2 changes color"),
	tiles = {{name = "testnodes_overlayable.png"}},
	overlay_tiles = {{name = "testnodes_overlay.png"}},
	color = global_overlay_color,
	paramtype2 = "color",
	palette = "testnodes_palette_full.png",


	groups = { dig_immediate = 2 },
})
minetest.register_node("testnodes:overlay_global_color_overlay", {
	description = S("Texture Overlay Test Node, Global Color + Colorized Overlay") .. "\n" ..
		S("Global color = @1", global_overlay_color) .. "\n" ..
		S("param2 changes color of overlay"),
	tiles = {{name = "testnodes_overlayable.png", color=global_overlay_color}},
	overlay_tiles = {{name = "testnodes_overlay.png"}},
	color = global_overlay_color,
	paramtype2 = "color",
	palette = "testnodes_palette_full.png",


	groups = { dig_immediate = 2 },
})
minetest.register_node("testnodes:overlay_global_color_overlayed", {
	description = S("Texture Overlay Test Node, Global Color + Colorized Base") .. "\n" ..
		S("Global color = @1", global_overlay_color) .. "\n" ..
		S("param2 changes color of base texture"),
	tiles = {{name = "testnodes_overlayable.png"}},
	overlay_tiles = {{name = "testnodes_overlay.png", color=global_overlay_color}},
	color = global_overlay_color,
	paramtype2 = "color",
	palette = "testnodes_palette_full.png",


	groups = { dig_immediate = 2 },
})