Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
VuhDo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
124
Issues
124
List
Boards
Labels
Service Desk
Milestones
Merge Requests
4
Merge Requests
4
Operations
Operations
Environments
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
VuhDo
VuhDo
Commits
18d2e04a
Commit
18d2e04a
authored
Feb 14, 2021
by
Ivaria
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed shield bar display when health bar is inverted
parent
26c362d7
Changes
3
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
1 deletion
+5
-1
VuhDoBouquetValidators.lua
VuhDoBouquetValidators.lua
+3
-1
VuhDoPanelRedraw.lua
VuhDoPanelRedraw.lua
+1
-0
changelog.txt
changelog.txt
+1
-0
No files found.
VuhDoBouquetValidators.lua
View file @
18d2e04a
...
...
@@ -46,6 +46,7 @@ local VUHDO_getRedGreenForDistance;
local
VUHDO_getTexCoordsForCell
;
local
VUHDO_getUnitGroupPrivileges
;
local
VUHDO_getLatestCustomDebuff
;
local
VUHDO_getUnitOverallShieldRemain
;
local
sIsInverted
;
local
sBarColors
;
...
...
@@ -87,6 +88,7 @@ function VUHDO_bouquetValidatorsInitLocalOverrides()
VUHDO_getTexCoordsForCell
=
_G
[
"VUHDO_getTexCoordsForCell"
];
VUHDO_getUnitGroupPrivileges
=
_G
[
"VUHDO_getUnitGroupPrivileges"
];
VUHDO_getLatestCustomDebuff
=
_G
[
"VUHDO_getLatestCustomDebuff"
];
VUHDO_getUnitOverallShieldRemain
=
_G
[
"VUHDO_getUnitOverallShieldRemain"
];
sIsInverted
=
VUHDO_INDICATOR_CONFIG
[
"CUSTOM"
][
"HEALTH_BAR"
][
"invertGrowth"
];
sBarColors
=
VUHDO_PANEL_SETUP
[
"BAR_COLORS"
];
...
...
@@ -713,7 +715,7 @@ end
local
tHealth
,
tHealthMax
;
local
function
VUHDO_statusHealthValidator
(
anInfo
,
_
)
if
sIsInverted
then
return
true
,
nil
,
anInfo
[
"health"
]
+
VUHDO_getIncHealOnUnit
(
anInfo
[
"unit"
]),
-
1
,
return
true
,
nil
,
anInfo
[
"health"
]
+
VUHDO_getIncHealOnUnit
(
anInfo
[
"unit"
])
+
VUHDO_getUnitOverallShieldRemain
(
anInfo
[
"unit"
])
,
-
1
,
anInfo
[
"healthmax"
],
nil
,
anInfo
[
"health"
];
else
return
true
,
nil
,
anInfo
[
"health"
],
-
1
,
...
...
VuhDoPanelRedraw.lua
View file @
18d2e04a
...
...
@@ -789,6 +789,7 @@ function VUHDO_initHealButton(aButton, aPanelNum)
VUHDO_getHealthBar
(
aButton
,
5
):
SetIsInverted
(
tIsInverted
);
VUHDO_getHealthBar
(
aButton
,
6
):
SetIsInverted
(
tIsInverted
);
VUHDO_getHealthBar
(
aButton
,
14
):
SetIsInverted
(
tIsInverted
);
VUHDO_getHealthBar
(
aButton
,
19
):
SetIsInverted
(
tIsInverted
);
tIsInverted
=
VUHDO_INDICATOR_CONFIG
[
"CUSTOM"
][
"MANA_BAR"
][
"invertGrowth"
];
VUHDO_getHealthBar
(
aButton
,
2
):
SetIsInverted
(
tIsInverted
);
...
...
changelog.txt
View file @
18d2e04a
...
...
@@ -11,6 +11,7 @@ Known issues:
Bugfixes:
-- Added workaround for bug in Blizzard API UnitPhaseReason
-- Fixed shield bar display when health bar is inverted
Improvements:
...
...
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