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
Krazyito
VuhDo
Commits
b9bd9045
Commit
b9bd9045
authored
4 years ago
by
Ivaria
Browse files
Options
Download
Email Patches
Plain Diff
Fixed handling of unit dropdown menu under some conditions
parent
42f5c78f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
29 deletions
+36
-29
VuhDo.xml
VuhDo.xml
+2
-0
VuhDoKeySetup.lua
VuhDoKeySetup.lua
+33
-29
changelog.txt
changelog.txt
+1
-0
No files found.
VuhDo.xml
View file @
b9bd9045
...
...
@@ -91,6 +91,8 @@
</Scripts>
</Frame>
<Frame
name=
"VuhDoUnitButtonDropDown"
inherits=
"UIDropDownMenuTemplate"
clampedToScreen=
"true"
id=
"3"
hidden=
"true"
/>
<Frame
name=
"VuhDo"
parent=
"UIParent"
frameStrata=
"LOW"
toplevel=
"true"
inherits=
"SecureFrameTemplate"
>
<Scripts>
<OnLoad>
...
...
This diff is collapsed.
Click to expand it.
VuhDoKeySetup.lua
View file @
b9bd9045
...
...
@@ -69,7 +69,6 @@ local VUHDO_REZ_SPELLS_NAMES = {
local
sDropdown
;
local
tUnit
,
tInfo
,
tIdent
;
local
tButtonName
;
local
tMacroId
,
tMacroText
;
...
...
@@ -108,38 +107,43 @@ local function _VUHDO_setupHealButtonAttributes(aModiKey, aButtonId, anAction, a
aButton
:
SetAttribute
(
aModiKey
..
"type"
..
aButtonId
,
"VUHDO_contextMenu"
);
VUHDO_contextMenu
=
function
()
sDropdown
=
nil
;
local
tUnit
=
aButton
[
"raidid"
];
if
tUnit
==
"player"
then
sDropdown
=
PlayerFrameDropDown
;
elseif
UnitIsUnit
(
tUnit
,
"target"
)
then
sDropdown
=
TargetFrameDropDown
;
--[[elseif (UnitIsUnit(tUnit, "focus")) then
sDropdown = FocusFrameDropDown;]]
-- Problem, wenn Fokus lschen
elseif
UnitIsUnit
(
tUnit
,
"pet"
)
then
sDropdown
=
PetFrameDropDown
;
else
tUnit
=
aButton
[
"raidid"
];
local
tName
,
tNumber
,
tMenu
;
if
UnitIsUnit
(
tUnit
,
"player"
)
then
tMenu
=
"SELF"
;
elseif
UnitIsUnit
(
tUnit
,
"vehicle"
)
then
tMenu
=
"VEHICLE"
;
elseif
UnitIsUnit
(
tUnit
,
"pet"
)
then
tMenu
=
"PET"
;
elseif
UnitIsPlayer
(
tUnit
)
then
tInfo
=
VUHDO_RAID
[
tUnit
];
if
tInfo
then
if
(
VUHDO_RAID
[
"player"
]
or
tInvalidGroup
)[
"group"
]
==
tInfo
[
"group"
]
then
sDropdown
=
_G
[
'PartyMemberFrame'
..
tInfo
[
"number"
]
..
'DropDown'
]
else
tIdent
=
tInfo
[
"number"
];
FriendsDropDown
[
"name"
]
=
tInfo
[
"name"
];
FriendsDropDown
[
"id"
]
=
tIdent
;
FriendsDropDown
[
"unit"
]
=
tUnit
;
FriendsDropDown
[
"initialize"
]
=
RaidFrameDropDown_Initialize
;
FriendsDropDown
[
"displayMode"
]
=
"MENU"
;
sDropdown
=
FriendsDropDown
;
end
tName
=
tInfo
[
"name"
];
tNumber
=
tInfo
[
"number"
];
if
UnitInRaid
(
tUnit
)
then
tMenu
=
"RAID_PLAYER"
;
elseif
UnitInParty
(
tUnit
)
then
tMenu
=
"PARTY"
;
else
tMenu
=
"PLAYER"
;
end
else
tMenu
=
"TARGET"
;
tName
=
RAID_TARGET_ICON
;
end
if
sDropdown
then
ToggleDropDownMenu
(
1
,
nil
,
sDropdown
,
"cursor"
,
0
,
0
);
end
UIDropDownMenu_Initialize
(
VuhDoUnitButtonDropDown
,
function
(
self
)
if
tMenu
then
UnitPopup_ShowMenu
(
self
,
tMenu
,
tUnit
,
tName
,
tNumber
);
end
end
,
"MENU"
);
ToggleDropDownMenu
(
1
,
nil
,
VuhDoUnitButtonDropDown
,
"cursor"
,
0
,
0
);
end
aButton
[
"VUHDO_contextMenu"
]
=
VUHDO_contextMenu
;
...
...
This diff is collapsed.
Click to expand it.
changelog.txt
View file @
b9bd9045
...
...
@@ -14,6 +14,7 @@ Known issues:
Bugfixes:
-- Fixed VUHDO_UPDATE_ALIVE handling on unit dead state change
-- Fixed handling of unit dropdown menu under some conditions
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