Add include options for value/max labels

This commit is contained in:
GreenComfyTea
2023-03-06 13:24:01 +02:00
parent 7346b8d96f
commit 6a4f4a9dfe
16 changed files with 441 additions and 164 deletions

View File

@@ -124,7 +124,12 @@ function drawing.draw_label(label, position, opacity_scale, ...)
return;
end
local text = string.format(label.text, table.unpack({...}));
local text = string.format(label.text_format, table.unpack({...}));
if text == "" then
return;
end
local position_x = position.x + label.offset.x;
local position_y = position.y + label.offset.y;