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
1510c64f
Commit
1510c64f
authored
2 years ago
by
Ivaria
Browse files
Options
Download
Email Patches
Plain Diff
Fixed auto-activate of profile/key layout on spec change
parent
3759f48b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
5 deletions
+28
-5
VuhDoEventHandler.lua
VuhDoEventHandler.lua
+19
-0
VuhDoGuiToolbox.lua
VuhDoGuiToolbox.lua
+1
-0
VuhDoToolbox.lua
VuhDoToolbox.lua
+7
-5
changelog.txt
changelog.txt
+1
-0
No files found.
VuhDoEventHandler.lua
View file @
1510c64f
...
...
@@ -727,6 +727,24 @@ function VUHDO_OnEvent(_, anEvent, anArg1, anArg2, anArg3, anArg4, anArg5, anArg
end
end
]]
;
elseif
"ACTIVE_TALENT_GROUP_CHANGED"
==
anEvent
then
if
VUHDO_VARIABLES_LOADED
and
not
InCombatLockdown
()
then
local
tSpecNum
=
tostring
(
VUHDO_getSpecialization
())
or
"1"
;
local
tBestProfile
=
VUHDO_getBestProfileAfterSpecChange
();
-- event sometimes fires multiple times so we must de-dupe
if
(
not
VUHDO_strempty
(
VUHDO_SPEC_LAYOUTS
[
tSpecNum
])
and
(
VUHDO_SPEC_LAYOUTS
[
"selected"
]
~=
VUHDO_SPEC_LAYOUTS
[
tSpecNum
]))
or
(
not
VUHDO_strempty
(
tBestProfile
)
and
(
VUHDO_CONFIG
[
"CURRENT_PROFILE"
]
~=
tBestProfile
))
then
VUHDO_activateSpecc
(
tSpecNum
);
end
if
((
VUHDO_RAID
or
tEmptyRaid
)[
"player"
]
~=
nil
)
then
VUHDO_resetTalentScan
(
"player"
);
VUHDO_initDebuffs
();
-- Talentabhngige Debuff-Fhigkeiten neu initialisieren.
VUHDO_timeReloadUI
(
1
);
end
end
else
VUHDO_Msg
(
"Error: Unexpected event: "
..
anEvent
);
end
...
...
@@ -1556,6 +1574,7 @@ local VUHDO_ALL_EVENTS = {
-- "
INCOMING_SUMMON_CHANGED
",
"
UNIT_PHASE
",
-- "
PLAYER_SPECIALIZATION_CHANGED
",
"
ACTIVE_TALENT_GROUP_CHANGED
",
};
...
...
This diff is collapsed.
Click to expand it.
VuhDoGuiToolbox.lua
View file @
1510c64f
...
...
@@ -308,6 +308,7 @@ end
--
local
VUHDO_BLIZZ_EVENTS
=
{
"ACTIVE_TALENT_GROUP_CHANGED"
,
"CVAR_UPDATE"
,
"DISPLAY_SIZE_CHANGED"
,
"GROUP_ROSTER_UPDATE"
,
...
...
This diff is collapsed.
Click to expand it.
VuhDoToolbox.lua
View file @
1510c64f
...
...
@@ -1131,7 +1131,7 @@ end
function
VUHDO_getSpecialization
()
if
not
GetSpecialization
then
return
1
;
return
GetActiveTalentGroup
()
;
else
return
GetSpecialization
();
end
...
...
@@ -1140,12 +1140,14 @@ end
function
VUHDO_getSpecializationInfo
(
...
)
function
VUHDO_getSpecializationInfo
(
aSpecNum
,
...
)
if
not
GetSpecializationInfo
then
return
1
,
"Unknown"
,
_
,
_
,
_
,
"NONE"
;
if
not
GetSpecializationInfo
then
local
tSpecNum
=
aSpecNum
or
VUHDO_getSpecialization
();
return
tSpecNum
,
tSpecNum
==
1
and
"Primary"
or
(
tSpecNum
==
2
and
"Secondary"
or
"Unkown"
),
_
,
_
,
_
,
GetTalentGroupRole
(
tSpecNum
)
or
"NONE"
;
else
return
GetSpecializationInfo
(
...
);
return
GetSpecializationInfo
(
aSpecNum
,
...
);
end
end
...
...
This diff is collapsed.
Click to expand it.
changelog.txt
View file @
1510c64f
...
...
@@ -22,6 +22,7 @@ Bugfixes:
Improvements:
-- Added default custom debuffs for phase 1 raid encounters
-- Fixed vehicle targeting e.g. Malygos encounter
-- Fixed auto-activate of profile/key layout on spec change
--------------------------------------------------------------
...
...
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