Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Zosyne
VuhDo
Commits
35901d79
Commit
35901d79
authored
2 years ago
by
Ivaria
Browse files
Options
Download
Email Patches
Plain Diff
Fix show/hide of Blizzard default party frames
parent
7600c971
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
21 deletions
+25
-21
VuhDoGuiToolbox.lua
VuhDoGuiToolbox.lua
+25
-21
No files found.
VuhDoGuiToolbox.lua
View file @
35901d79
...
...
@@ -530,23 +530,24 @@ end
local
function
VUHDO_hideBlizzParty
()
HIDE_PARTY_INTERFACE
=
"1"
;
hooksecurefunc
(
"ShowPartyFrame"
,
local
tPartyFrame
=
_G
[
"PartyFrame"
];
hooksecurefunc
(
tPartyFrame
,
"UpdatePartyFrames"
,
function
()
if
not
InCombatLockdown
()
then
for
tCnt
=
1
,
4
do
VUHDO_hideFrame
(
_G
[
"PartyMemberFrame"
..
tCnt
]);
end
_G
[
"PartyFrame"
]:
HidePartyFrames
();
end
end
);
local
tPartyFrame
;
for
tCnt
=
1
,
4
do
tPartyFrame
=
_G
[
"PartyMemberFrame"
..
tCnt
];
VUHDO_unregisterAndSaveEvents
(
false
,
tPartyFrame
,
_G
[
"PartyMemberFrame"
..
tCnt
..
"HealthBar"
],
_G
[
"PartyMemberFrame"
..
tCnt
..
"ManaBar"
]
);
VUHDO_hideFrame
(
tPartyFrame
);
for
tCnt
=
1
,
MAX_PARTY_MEMBERS
do
local
tPartyMemberFrame
=
tPartyFrame
.
PartyMemberFramePool
:
Acquire
();
VUHDO_unregisterAndSaveEvents
(
false
,
tPartyMemberFrame
,
tPartyMemberFrame
.
HealthBar
,
tPartyMemberFrame
.
ManaBar
);
if
(
UnitExists
(
"party"
..
tCnt
))
then
VUHDO_hideFrame
(
tPartyMemberFrame
);
end
end
if
(
CompactPartyFrame
~=
nil
and
CompactPartyFrame
:
IsVisible
())
then
...
...
@@ -558,29 +559,32 @@ end
--
local
function
VUHDO_showBlizzParty
()
if
VUHDO_GROUP_TYPE_PARTY
~=
VUHDO_getCurrentGroupType
()
then
return
;
end
if
VUHDO_GROUP_TYPE_PARTY
~=
VUHDO_getCurrentGroupType
()
then
return
;
end
if
tonumber
(
GetCVar
(
"useCompactPartyFrames"
))
==
0
then
HIDE_PARTY_INTERFACE
=
"0"
;
hooksecurefunc
(
"ShowPartyFrame"
,
local
tPartyFrame
=
_G
[
"PartyFrame"
];
hooksecurefunc
(
tPartyFrame
,
"UpdatePartyFrames"
,
function
()
if
not
InCombatLockdown
()
then
for
t
Cnt
=
1
,
4
do
VUHDO_showFrame
(
_G
[
"
PartyMemberFrame
"
..
tCnt
]
);
for
t
PartyMemberFrame
in
_G
[
"PartyFrame"
].
PartyMemberFramePool
:
EnumerateActive
()
do
t
PartyMemberFrame
:
Show
(
);
end
end
end
);
local
tPartyFrame
;
for
tCnt
=
1
,
4
do
tPartyFrame
=
_G
[
"PartyMemberFrame"
..
tCnt
];
VUHDO_registerOriginalEvents
(
false
,
tPartyFrame
,
_G
[
"PartyMemberFrame"
..
tCnt
..
"HealthBar"
],
_G
[
"PartyMemberFrame"
..
tCnt
..
"ManaBar"
]);
for
tCnt
=
1
,
MAX_PARTY_MEMBERS
do
local
tPartyMemberFrame
=
tPartyFrame
.
PartyMemberFramePool
:
Acquire
();
VUHDO_registerOriginalEvents
(
false
,
tPartyMemberFrame
,
tPartyMemberFrame
.
HealthBar
,
tPartyMemberFrame
.
ManaBar
);
if
(
UnitExists
(
"party"
..
tCnt
))
then
VUHDO_showFrame
(
tPartyFrame
);
VUHDO_showFrame
(
tParty
Member
Frame
);
end
end
else
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment