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
00cadfc6
Commit
00cadfc6
authored
3 years ago
by
Ivaria
Browse files
Options
Download
Plain Diff
Merge branch 'tbcc' into vanilla
parents
425cd427
2b4d65cc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
54 additions
and
14 deletions
+54
-14
VuhDoGuiToolbox.lua
VuhDoGuiToolbox.lua
+53
-14
changelog.txt
changelog.txt
+1
-0
No files found.
VuhDoGuiToolbox.lua
View file @
00cadfc6
...
...
@@ -395,11 +395,47 @@ local VUHDO_FIX_EVENTS = {
--
local
sEventsPerFrame
=
{};
local
sFrameHideParents
=
{};
local
sFrameOrigParents
=
{};
--
local
function
VUHDO_hideFrame
(
aFrame
)
if
not
sFrameHideParents
[
aFrame
:
GetName
()]
then
local
tFrameParent
=
CreateFrame
(
"Frame"
);
tFrameParent
:
Hide
();
sFrameHideParents
[
aFrame
:
GetName
()]
=
tFrameParent
;
end
if
not
sFrameOrigParents
[
aFrame
:
GetName
()]
then
sFrameOrigParents
[
aFrame
:
GetName
()]
=
aFrame
:
GetParent
();
aFrame
:
SetParent
(
sFrameHideParents
[
aFrame
:
GetName
()]);
end
end
--
local
function
VUHDO_showFrame
(
aFrame
)
if
sFrameOrigParents
[
aFrame
:
GetName
()]
then
aFrame
:
SetParent
(
sFrameOrigParents
[
aFrame
:
GetName
()]);
aFrame
:
Show
();
sFrameOrigParents
[
aFrame
:
GetName
()]
=
nil
;
end
end
--
local
function
VUHDO_unregisterAndSaveEvents
(
anIsHide
,
...
)
local
tFrame
;
for
tCnt
=
1
,
select
(
'#'
,
...
)
do
...
...
@@ -418,15 +454,16 @@ local function VUHDO_unregisterAndSaveEvents(anIsHide, ...)
end
tFrame
:
UnregisterAllEvents
();
if
anIsHide
then
tFrame
:
Hide
();
end
if
anIsHide
then
VUHDO_hideFrame
(
tFrame
);
end
end
end
end
--
local
function
VUHDO_registerOriginalEvents
(
anIsShow
,
...
)
local
tFrame
;
...
...
@@ -446,7 +483,9 @@ local function VUHDO_registerOriginalEvents(anIsShow, ...)
tFrame
:
RegisterAllEvents
();
end
if
anIsShow
then
tFrame
:
Show
();
end
if
anIsShow
then
VUHDO_showFrame
(
tFrame
);
end
end
end
end
...
...
@@ -497,7 +536,7 @@ local function VUHDO_hideBlizzParty()
function
()
if
not
InCombatLockdown
()
then
for
tCnt
=
1
,
4
do
_G
[
"PartyMemberFrame"
..
tCnt
]
:
Hide
(
);
VUHDO_hideFrame
(
_G
[
"PartyMemberFrame"
..
tCnt
]);
end
end
end
...
...
@@ -509,7 +548,7 @@ local function VUHDO_hideBlizzParty()
VUHDO_unregisterAndSaveEvents
(
false
,
tPartyFrame
,
_G
[
"PartyMemberFrame"
..
tCnt
..
"HealthBar"
],
_G
[
"PartyMemberFrame"
..
tCnt
..
"ManaBar"
]
);
tPartyFrame
:
Hide
(
);
VUHDO_hideFrame
(
tPartyFrame
);
end
if
(
CompactPartyFrame
~=
nil
and
CompactPartyFrame
:
IsVisible
())
then
...
...
@@ -530,7 +569,7 @@ local function VUHDO_showBlizzParty()
function
()
if
not
InCombatLockdown
()
then
for
tCnt
=
1
,
4
do
_G
[
"PartyMemberFrame"
..
tCnt
]
:
Show
(
);
VUHDO_showFrame
(
_G
[
"PartyMemberFrame"
..
tCnt
]);
end
end
end
...
...
@@ -543,7 +582,7 @@ local function VUHDO_showBlizzParty()
tPartyFrame
,
_G
[
"PartyMemberFrame"
..
tCnt
..
"HealthBar"
],
_G
[
"PartyMemberFrame"
..
tCnt
..
"ManaBar"
]);
if
(
UnitExists
(
"party"
..
tCnt
))
then
tPartyFrame
:
Show
(
);
VUHDO_showFrame
(
tPartyFrame
);
end
end
else
...
...
@@ -564,10 +603,9 @@ end
--
local
function
VUHDO_showBlizzPlayer
()
VUHDO_registerOriginalEvents
(
false
,
PlayerFrame
,
PlayerFrameHealthBar
,
PlayerFrameManaBar
);
PlayerFrame
:
Show
(
);
VUHDO_showFrame
(
PlayerFrame
);
if
"DEATHKNIGHT"
==
VUHDO_PLAYER_CLASS
then
VUHDO_registerOriginalEvents
(
RuneFrame
);
RuneFrame
:
Show
();
VUHDO_registerOriginalEvents
(
true
,
RuneFrame
);
end
end
...
...
@@ -584,7 +622,8 @@ end
--
local
function
VUHDO_showBlizzTarget
()
VUHDO_registerOriginalEvents
(
false
,
TargetFrame
,
TargetFrameHealthBar
,
TargetFrameManaBar
,
TargetFrameToT
,
FocusFrameToT
);
VUHDO_registerOriginalEvents
(
true
,
TargetFrame
,
TargetFrameToT
,
FocusFrameToT
);
VUHDO_registerOriginalEvents
(
false
,
TargetFrameHealthBar
,
TargetFrameManaBar
);
ComboFrame
:
SetPoint
(
"TOPRIGHT"
,
"TargetFrame"
,
"TOPRIGHT"
,
-
44
,
-
9
);
end
...
...
@@ -612,7 +651,7 @@ end
--
local
function
VUHDO_showBlizzFocus
()
VUHDO_registerOriginalEvents
(
fals
e
,
FocusFrame
);
VUHDO_registerOriginalEvents
(
tru
e
,
FocusFrame
);
end
...
...
This diff is collapsed.
Click to expand it.
changelog.txt
View file @
00cadfc6
...
...
@@ -60,6 +60,7 @@ Known issues:
Bugfixes:
-- Fixed hiding of standard Blizzard UI frames (e.g. party, raid)
Improvements:
...
...
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