mirror of
https://github.com/GreenComfyTea/MHR-Overlay.git
synced 2026-01-24 04:18:11 -08:00
Implemented Endemic Life UI.
This commit is contained in:
@@ -88,6 +88,10 @@ function drawing.draw_bar(bar, position, opacity_scale, percentage)
|
||||
percentage = 1;
|
||||
end
|
||||
|
||||
if percentage < 0 then
|
||||
percentage = 0;
|
||||
end
|
||||
|
||||
local position_x = position.x + bar.offset.x;
|
||||
local position_y = position.y + bar.offset.y;
|
||||
local foreground_width = bar.size.width * percentage;
|
||||
|
||||
Reference in New Issue
Block a user