Ensure hinges are resized with large textures
This commit is contained in:
parent
5011f7c105
commit
679509077e
10
main.lua
10
main.lua
@ -181,21 +181,21 @@ local use_default_16px_res = (modname == "darkage") or (modname == "moreblocks")
|
|||||||
local painted_texture_suffix = ""
|
local painted_texture_suffix = ""
|
||||||
local painted_texture_suffix_inv = ""
|
local painted_texture_suffix_inv = ""
|
||||||
if doors_are_painted then
|
if doors_are_painted then
|
||||||
|
|
||||||
local paint_opacity = 35
|
local paint_opacity = 35
|
||||||
local paint_opacity_inv = paint_opacity + 15
|
local paint_opacity_inv = paint_opacity + 15
|
||||||
|
|
||||||
if use_default_16px_res then
|
if use_default_16px_res then
|
||||||
painted_texture_suffix =
|
painted_texture_suffix =
|
||||||
"^(hidden_doors_painted_overlay.png^[opacity:" .. paint_opacity ..
|
"^((hidden_doors_painted_overlay.png^[opacity:" .. paint_opacity ..
|
||||||
"^[resize:38x32)^hidden_doors_hinges_overlay.png"
|
"^hidden_doors_hinges_overlay.png)^[resize:38x32)"
|
||||||
painted_texture_suffix_inv =
|
painted_texture_suffix_inv =
|
||||||
":8,0=hidden_doors_painted_overlay.png\\^[opacity\\:" ..
|
":8,0=hidden_doors_painted_overlay.png\\^[opacity\\:" ..
|
||||||
paint_opacity_inv .. "\\^[resize\\:38x32"
|
paint_opacity_inv .. "\\^[resize\\:38x32"
|
||||||
else
|
else
|
||||||
painted_texture_suffix =
|
painted_texture_suffix =
|
||||||
"^(hidden_doors_painted_overlay.png^[opacity:" .. paint_opacity ..
|
"^((hidden_doors_painted_overlay.png^[opacity:" .. paint_opacity ..
|
||||||
"^[resize:" .. image_size .. ")^hidden_doors_hinges_overlay.png"
|
"^hidden_doors_hinges_overlay.png)^[resize:" .. image_size .. ")"
|
||||||
painted_texture_suffix_inv =
|
painted_texture_suffix_inv =
|
||||||
": " .. X1 .. ",0=hidden_doors_painted_overlay.png\\^[opacity\\:" ..
|
": " .. X1 .. ",0=hidden_doors_painted_overlay.png\\^[opacity\\:" ..
|
||||||
paint_opacity_inv .. "\\^[resize\\:" .. image_size
|
paint_opacity_inv .. "\\^[resize\\:" .. image_size
|
||||||
|
Loading…
x
Reference in New Issue
Block a user