From 636bcacee9cf127f9bd59944b6364a5d2e6d19ab Mon Sep 17 00:00:00 2001 From: gpcf Date: Sun, 14 May 2023 15:46:51 +0200 Subject: rename textures, index palette and replace signs textures with textures from default --- init.lua | 8 ++++---- textures/animation_frames.png | Bin 1497 -> 0 bytes textures/departureboards_animation_frames.png | Bin 0 -> 851 bytes textures/departureboards_line_bg.png | Bin 0 -> 629 bytes textures/departureboards_station_sign.png | Bin 0 -> 682 bytes textures/line_bg.png | Bin 629 -> 0 bytes textures/station_sign.png | Bin 740 -> 0 bytes 7 files changed, 4 insertions(+), 4 deletions(-) delete mode 100644 textures/animation_frames.png create mode 100644 textures/departureboards_animation_frames.png create mode 100644 textures/departureboards_line_bg.png create mode 100644 textures/departureboards_station_sign.png delete mode 100644 textures/line_bg.png delete mode 100644 textures/station_sign.png 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 Binary files a/textures/animation_frames.png and /dev/null differ diff --git a/textures/departureboards_animation_frames.png b/textures/departureboards_animation_frames.png new file mode 100644 index 0000000..751dac4 Binary files /dev/null and b/textures/departureboards_animation_frames.png differ diff --git a/textures/departureboards_line_bg.png b/textures/departureboards_line_bg.png new file mode 100644 index 0000000..9adc772 Binary files /dev/null and b/textures/departureboards_line_bg.png differ diff --git a/textures/departureboards_station_sign.png b/textures/departureboards_station_sign.png new file mode 100644 index 0000000..160871e Binary files /dev/null and b/textures/departureboards_station_sign.png differ diff --git a/textures/line_bg.png b/textures/line_bg.png deleted file mode 100644 index 9adc772..0000000 Binary files a/textures/line_bg.png and /dev/null differ diff --git a/textures/station_sign.png b/textures/station_sign.png deleted file mode 100644 index fede238..0000000 Binary files a/textures/station_sign.png and /dev/null differ -- cgit v1.2.3