From 75718ad1f36f78bdf03996802cd7b20130e7696b Mon Sep 17 00:00:00 2001 From: Timothy Cricchio Date: Tue, 21 Mar 2023 16:43:09 -0400 Subject: [PATCH] updated to use new status globals --- XivParty/model.lua | 4 ++-- XivParty/xivparty.lua | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/XivParty/model.lua b/XivParty/model.lua index f4a7050..83c09b2 100644 --- a/XivParty/model.lua +++ b/XivParty/model.lua @@ -91,7 +91,7 @@ function model:GetMemberInformation(memIdx) memberInfo.level = party:GetMemberMainJobLevel(memIdx); memberInfo.subLevel = party:GetMemberSubJobLevel(memIdx); memberInfo.serverid = party:GetMemberServerId(memIdx); - local t1, t2 = gStatusLib.helpers.GetTargets(); + local t1, t2 = statusHelpers.GetTargets(); memberInfo.targetIdx = party:GetMemberTargetIndex(memIdx); memberInfo.targeted = (t1 and t1 == memberInfo.targetIdx); memberInfo.subTargeted = (t2 and t2 == memberInfo.targetIdx); @@ -121,7 +121,7 @@ function model:GetMemberInformation(memIdx) end function model:updatePlayers() - local target, subtarget = gStatusLib.helpers.GetTargets(); + local target, subtarget = statusHelpers.GetTargets(); for i = 0, 17 do local idx = (i / 6):floor() diff --git a/XivParty/xivparty.lua b/XivParty/xivparty.lua index abd3511..f6e2498 100644 --- a/XivParty/xivparty.lua +++ b/XivParty/xivparty.lua @@ -214,14 +214,14 @@ end local function CheckState() -- Check for login state - if (gStatusLib.helpers.bLoggedIn) then + if (statusHelpers.bLoggedIn) then init(); else dispose(); end if (isInitialized) then - view:visible(not Settings.hideCutscene or not gStatusLib.helpers.GetGameInterfaceHidden(), const.visCutscene) -- hide UI during cutscenes + view:visible(not Settings.hideCutscene or not statusHelpers.GetGameInterfaceHidden(), const.visCutscene) -- hide UI during cutscenes end end