Skip to content

Commit

Permalink
updated to use new status globals
Browse files Browse the repository at this point in the history
  • Loading branch information
tirem committed Mar 21, 2023
1 parent 5e1f22e commit 75718ad
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions XivParty/model.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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()
Expand Down
4 changes: 2 additions & 2 deletions XivParty/xivparty.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 75718ad

Please sign in to comment.