mirror of
https://github.com/GreenComfyTea/MHR-Overlay.git
synced 2026-01-25 12:58:06 -08:00
Update MHR_Overlay.lua
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
local debug = false;
|
|
||||||
xy = "";
|
xy = "";
|
||||||
|
|
||||||
|
local debug = require("MHR_Overlay.Misc.debug");
|
||||||
|
|
||||||
local keyboard = require("MHR_Overlay.Game_Handler.keyboard");
|
local keyboard = require("MHR_Overlay.Game_Handler.keyboard");
|
||||||
local quest_status = require("MHR_Overlay.Game_Handler.quest_status");
|
local quest_status = require("MHR_Overlay.Game_Handler.quest_status");
|
||||||
local screen = require("MHR_Overlay.Game_Handler.screen");
|
local screen = require("MHR_Overlay.Game_Handler.screen");
|
||||||
@@ -104,13 +105,10 @@ local function main_loop()
|
|||||||
player.update_myself_position();
|
player.update_myself_position();
|
||||||
quest_status.update_is_online();
|
quest_status.update_is_online();
|
||||||
quest_status.update_is_result_screen();
|
quest_status.update_is_result_screen();
|
||||||
|
quest_status.update_is_host();
|
||||||
time.tick();
|
time.tick();
|
||||||
|
|
||||||
if quest_status.index < 2 then
|
player.update_player_list(quest_status.index >= 2);
|
||||||
player.update_player_list_in_village();
|
|
||||||
else
|
|
||||||
player.update_player_list_on_quest();
|
|
||||||
end
|
|
||||||
|
|
||||||
if quest_status.index < 2 then
|
if quest_status.index < 2 then
|
||||||
quest_status.update_is_training_area();
|
quest_status.update_is_training_area();
|
||||||
@@ -478,17 +476,21 @@ end
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
if debug then
|
if debug.enabled then
|
||||||
if d2d ~= nil then
|
if d2d ~= nil then
|
||||||
d2d.register(function()
|
d2d.register(function()
|
||||||
end, function()
|
end, function()
|
||||||
d2d.text(drawing.font, "xy: " .. tostring(xy), 551, 11, 0xFF000000);
|
if xy ~= "" then
|
||||||
d2d.text(drawing.font, "xy: " .. tostring(xy), 550, 10, 0xFFFFFFFF);
|
d2d.text(drawing.font, "xy:\n" .. tostring(xy), 551, 11, 0xFF000000);
|
||||||
|
d2d.text(drawing.font, "xy:\n" .. tostring(xy), 550, 10, 0xFFFFFFFF);
|
||||||
|
end
|
||||||
end);
|
end);
|
||||||
else
|
else
|
||||||
re.on_frame(function()
|
re.on_frame(function()
|
||||||
draw.text("xy: " .. tostring(xy), 551, 11, 0xFF000000);
|
if xy ~= "" then
|
||||||
draw.text("xy: " .. tostring(xy), 550, 10, 0xFFFFFFFF);
|
draw.text("xy:\n" .. tostring(xy), 551, 11, 0xFF000000);
|
||||||
|
draw.text("xy:\n" .. tostring(xy), 550, 10, 0xFFFFFFFF);
|
||||||
|
end
|
||||||
end);
|
end);
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
Reference in New Issue
Block a user