From 5011f7c105e29c3417cfeb44eabdc9575279835c Mon Sep 17 00:00:00 2001 From: Treer Date: Wed, 12 Sep 2018 04:21:40 +1000 Subject: [PATCH] Reduce visibility of painted doors --- main.lua | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/main.lua b/main.lua index bdf5074..d19a876 100644 --- a/main.lua +++ b/main.lua @@ -181,12 +181,24 @@ local use_default_16px_res = (modname == "darkage") or (modname == "moreblocks") local painted_texture_suffix = "" local painted_texture_suffix_inv = "" if doors_are_painted then + + local paint_opacity = 35 + local paint_opacity_inv = paint_opacity + 15 + if use_default_16px_res then - painted_texture_suffix = "^(hidden_doors_painted_overlay.png^[opacity:50^[resize:38x32)^hidden_doors_hinges_overlay.png" - painted_texture_suffix_inv = ":8,0=hidden_doors_painted_overlay.png\\^[opacity\\:60\\^[resize\\:38x32" + painted_texture_suffix = + "^(hidden_doors_painted_overlay.png^[opacity:" .. paint_opacity .. + "^[resize:38x32)^hidden_doors_hinges_overlay.png" + painted_texture_suffix_inv = + ":8,0=hidden_doors_painted_overlay.png\\^[opacity\\:" .. + paint_opacity_inv .. "\\^[resize\\:38x32" else - painted_texture_suffix = "^(hidden_doors_painted_overlay.png^[opacity:50^[resize:" .. image_size .. ")^hidden_doors_hinges_overlay.png" - painted_texture_suffix_inv = ": " .. X1 .. ",0=hidden_doors_painted_overlay.png\\^[opacity\\:60\\^[resize\\:" .. image_size + painted_texture_suffix = + "^(hidden_doors_painted_overlay.png^[opacity:" .. paint_opacity .. + "^[resize:" .. image_size .. ")^hidden_doors_hinges_overlay.png" + painted_texture_suffix_inv = + ": " .. X1 .. ",0=hidden_doors_painted_overlay.png\\^[opacity\\:" .. + paint_opacity_inv .. "\\^[resize\\:" .. image_size end end