mirror of
https://github.com/GreenComfyTea/MHR-Overlay.git
synced 2026-01-24 04:18:11 -08:00
Fix continue labels ambiguity
This commit is contained in:
@@ -5,6 +5,7 @@ local config;
|
|||||||
local buffs;
|
local buffs;
|
||||||
local consumables;
|
local consumables;
|
||||||
local screen;
|
local screen;
|
||||||
|
local utils;
|
||||||
|
|
||||||
local sdk = sdk;
|
local sdk = sdk;
|
||||||
local tostring = tostring;
|
local tostring = tostring;
|
||||||
@@ -58,12 +59,12 @@ function this.draw()
|
|||||||
for _, consumable in pairs(consumables.list) do
|
for _, consumable in pairs(consumables.list) do
|
||||||
|
|
||||||
if not consumable.is_active then
|
if not consumable.is_active then
|
||||||
goto continue
|
goto continue2
|
||||||
end
|
end
|
||||||
|
|
||||||
table.insert(displayed_buffs, consumable);
|
table.insert(displayed_buffs, consumable);
|
||||||
|
|
||||||
::continue::
|
::continue2::
|
||||||
end
|
end
|
||||||
|
|
||||||
-- sort
|
-- sort
|
||||||
@@ -99,15 +100,13 @@ function this.draw()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
local position_on_screen = screen.calculate_absolute_coordinates(cached_config.position);
|
local position_on_screen = screen.calculate_absolute_coordinates(cached_config.position);
|
||||||
|
|
||||||
-- draw
|
-- draw
|
||||||
for _, buff in ipairs(displayed_buffs) do
|
for _, buff in ipairs(displayed_buffs) do
|
||||||
|
|
||||||
if not buff.is_active then
|
if not buff.is_active then
|
||||||
goto continue2
|
goto continue3
|
||||||
end
|
end
|
||||||
|
|
||||||
buffs.draw(buff, buff.buff_UI, position_on_screen, 1);
|
buffs.draw(buff, buff.buff_UI, position_on_screen, 1);
|
||||||
@@ -118,7 +117,7 @@ function this.draw()
|
|||||||
position_on_screen.y = position_on_screen.y + cached_config.spacing.y * global_scale_modifier;
|
position_on_screen.y = position_on_screen.y + cached_config.spacing.y * global_scale_modifier;
|
||||||
end
|
end
|
||||||
|
|
||||||
::continue2::
|
::continue3::
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -135,6 +134,7 @@ function this.init_module()
|
|||||||
--quest_status = require("MHR_Overlay.Game_Handler.quest_status");
|
--quest_status = require("MHR_Overlay.Game_Handler.quest_status");
|
||||||
screen = require("MHR_Overlay.Game_Handler.screen");
|
screen = require("MHR_Overlay.Game_Handler.screen");
|
||||||
--drawing = require("MHR_Overlay.UI.drawing");
|
--drawing = require("MHR_Overlay.UI.drawing");
|
||||||
|
utils = require("MHR_Overlay.Misc.utils");
|
||||||
end
|
end
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
Reference in New Issue
Block a user