aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgpcf <gpcf@gpcf.eu>2023-05-14 15:46:51 +0200
committergpcf <gpcf@gpcf.eu>2023-05-14 15:46:51 +0200
commit636bcacee9cf127f9bd59944b6364a5d2e6d19ab (patch)
tree1f71fdb8460a6f34ca544acdeaec9481c8598802
parent5ca195f42598b137765c56bc270470d7240b7738 (diff)
downloaddepartureboards-636bcacee9cf127f9bd59944b6364a5d2e6d19ab.tar.gz
departureboards-636bcacee9cf127f9bd59944b6364a5d2e6d19ab.tar.bz2
departureboards-636bcacee9cf127f9bd59944b6364a5d2e6d19ab.zip
rename textures, index palette and replace signs textures with
textures from default
-rw-r--r--init.lua8
-rw-r--r--textures/animation_frames.pngbin1497 -> 0 bytes
-rw-r--r--textures/departureboards_animation_frames.pngbin0 -> 851 bytes
-rw-r--r--textures/departureboards_line_bg.png (renamed from textures/line_bg.png)bin629 -> 629 bytes
-rw-r--r--textures/departureboards_station_sign.pngbin0 -> 682 bytes
-rw-r--r--textures/station_sign.pngbin740 -> 0 bytes
6 files changed, 4 insertions, 4 deletions
diff --git a/init.lua b/init.lua
index 653022e..11c6914 100644
--- a/init.lua
+++ b/init.lua
@@ -41,7 +41,7 @@ local function render_depboard(pos, objref)
delay = 1 -- add here splitflap sound
end
objref:set_properties({ is_visible=false })
- minetest.after(delay, function () objref:set_properties({ textures= {"[combine:256x256:0,0=station_sign.png\\^(line_bg.png\\^\\[colorize\\:"..line_color.."\\:150)\\^\\[resize\\:256x256:200,100="..escape_texture(line)..":10,100="..escape_texture(dest)..":200,127="..escape_texture(m)..":228,127="..escape_texture(s)..":10,127="..escape_texture(remark)},
+ minetest.after(delay, function () objref:set_properties({ textures= {"[combine:256x256:0,0=departureboards_station_sign.png\\^(departureboards_line_bg.png\\^\\[colorize\\:"..line_color.."\\:150)\\^\\[resize\\:256x256:200,100="..escape_texture(line)..":10,100="..escape_texture(dest)..":200,127="..escape_texture(m)..":228,127="..escape_texture(s)..":10,127="..escape_texture(remark)},
visual_size = {x=3, y=3}, is_visible=true }) end)
end
@@ -68,9 +68,9 @@ minetest.register_node("departureboards:departureboard", {
type = "fixed",
fixed={-1.5,-1/2, 0.5, 1.5, 1/2, 0.5-0.1}},
visual_scale=3,
- tiles = { "signs_road_sides.png", "signs_road_sides.png",
- "signs_road_sides.png", "signs_road_sides.png", "signs_road_sides.png",
- {name="animation_frames.png", animation={type="vertical_frames", aspect_w=96, aspect_h=96, length=1.0}}},
+ tiles = { "default_steel_block.png", "default_steel_block.png",
+ "default_steel_block.png", "default_steel_block.png", "default_steel_block.png",
+ {name="departureboards_animation_frames.png", animation={type="vertical_frames", aspect_w=96, aspect_h=96, length=1.0}}},
groups = {choppy=2, dig_immediate=2, not_blocking_trains=1, display_api=1},
sounds = default.node_sound_defaults(),
display_entities = {
diff --git a/textures/animation_frames.png b/textures/animation_frames.png
deleted file mode 100644
index 2a2bffe..0000000
--- a/textures/animation_frames.png
+++ /dev/null
Binary files differ
diff --git a/textures/departureboards_animation_frames.png b/textures/departureboards_animation_frames.png
new file mode 100644
index 0000000..751dac4
--- /dev/null
+++ b/textures/departureboards_animation_frames.png
Binary files differ
diff --git a/textures/line_bg.png b/textures/departureboards_line_bg.png
index 9adc772..9adc772 100644
--- a/textures/line_bg.png
+++ b/textures/departureboards_line_bg.png
Binary files differ
diff --git a/textures/departureboards_station_sign.png b/textures/departureboards_station_sign.png
new file mode 100644
index 0000000..160871e
--- /dev/null
+++ b/textures/departureboards_station_sign.png
Binary files differ
diff --git a/textures/station_sign.png b/textures/station_sign.png
deleted file mode 100644
index fede238..0000000
--- a/textures/station_sign.png
+++ /dev/null
Binary files differ