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
Lethay
VuhDo
Commits
0edd8143
Commit
0edd8143
authored
4 years ago
by
Ivaria
Browse files
Options
Download
Plain Diff
Merge branch 'shadowlands' into 'master'
Shadowlands pre-patch See merge request
vuhdo/vuhdo!8
parents
e1855909
9e7e4dfe
Changes
28
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
1264 additions
and
1261 deletions
+1264
-1261
.release/release.sh
.release/release.sh
+1
-1
Libs/Libs.xml
Libs/Libs.xml
+1
-1
Libs/NickTag-1.0/NickTag-1.0.lua
Libs/NickTag-1.0/NickTag-1.0.lua
+1044
-1044
Libs/NickTag-1.0/NickTag-1.0.toc
Libs/NickTag-1.0/NickTag-1.0.toc
+5
-5
Libs/NickTag-1.0/NickTag-1.0.xml
Libs/NickTag-1.0/NickTag-1.0.xml
+3
-3
VuhDo.lua
VuhDo.lua
+10
-0
VuhDo.toc
VuhDo.toc
+2
-2
VuhDo.xml
VuhDo.xml
+4
-14
VuhDoAoeAdvisor.lua
VuhDoAoeAdvisor.lua
+7
-1
VuhDoBouquetValidators.lua
VuhDoBouquetValidators.lua
+6
-2
VuhDoBuffWatch.lua
VuhDoBuffWatch.lua
+20
-0
VuhDoBuffWatch.xml
VuhDoBuffWatch.xml
+9
-26
VuhDoDebuffConst.lua
VuhDoDebuffConst.lua
+0
-1
VuhDoEventHandler.lua
VuhDoEventHandler.lua
+3
-11
VuhDoGuiToolbox.lua
VuhDoGuiToolbox.lua
+2
-4
VuhDoOptions/VuhDoLookAndFeel.lua
VuhDoOptions/VuhDoLookAndFeel.lua
+80
-0
VuhDoOptions/VuhDoLookAndFeel.xml
VuhDoOptions/VuhDoLookAndFeel.xml
+45
-126
VuhDoOptions/VuhDoLookAndFeelStandardShare.lua
VuhDoOptions/VuhDoLookAndFeelStandardShare.lua
+7
-7
VuhDoOptions/VuhDoNewColorPicker.lua
VuhDoOptions/VuhDoNewColorPicker.lua
+10
-0
VuhDoOptions/VuhDoNewColorPicker.xml
VuhDoOptions/VuhDoNewColorPicker.xml
+5
-13
No files found.
.release/release.sh
View file @
0edd8143
...
...
@@ -66,7 +66,7 @@ strtotime() {
exit_code
=
0
# Game versions for uploading
game_version
=
"
8.3.0
"
game_version
=
"
9.0.1
"
game_version_id
=
toc_version
=
classic
=
...
...
This diff is collapsed.
Click to expand it.
Libs/Libs.xml
View file @
0edd8143
...
...
@@ -20,6 +20,6 @@
<Include
file=
"LibCompress\lib.xml"
/>
<Script
file=
"LibBase64-1.0\LibBase64-1.0.lua"
/>
<Include
file=
"LibCustomGlow-1.0\LibCustomGlow-1.0.xml"
/>
<Include
file=
"NickTag-1.0\NickTag-1.0.xml"
/>
<Include
file=
"NickTag-1.0\NickTag-1.0.xml"
/>
</Ui>
This diff is collapsed.
Click to expand it.
Libs/NickTag-1.0/NickTag-1.0.lua
View file @
0edd8143
This diff is collapsed.
Click to expand it.
Libs/NickTag-1.0/NickTag-1.0.toc
View file @
0edd8143
## Interface:
7
0200
## Title: NickTag-1.0
## Notes: Standalone version of the NickTag library.
NickTag-1.0.xml
## Interface:
8
0200
## Title: NickTag-1.0
## Notes: Standalone version of the NickTag library.
NickTag-1.0.xml
This diff is collapsed.
Click to expand it.
Libs/NickTag-1.0/NickTag-1.0.xml
View file @
0edd8143
<Ui
xmlns=
"http://www.blizzard.com/wow/ui/"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://www.blizzard.com/wow/ui/..\FrameXML\UI.xsd"
>
<Script
file=
"NickTag-1.0.lua"
/>
</Ui>
<Ui
xmlns=
"http://www.blizzard.com/wow/ui/"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://www.blizzard.com/wow/ui/..\FrameXML\UI.xsd"
>
<Script
file=
"NickTag-1.0.lua"
/>
</Ui>
This diff is collapsed.
Click to expand it.
VuhDo.lua
View file @
0edd8143
...
...
@@ -47,6 +47,16 @@ VUHDO_PLAYER_NAME = nil;
VUHDO_PLAYER_RAID_ID
=
nil
;
VUHDO_PLAYER_GROUP
=
nil
;
-- Backdrops
BACKDROP_VUHDO_TOOLTIP
=
{
bgFile
=
"Interface\\Tooltips\\UI-Tooltip-Background"
,
edgeFile
=
"Interface\\Tooltips\\UI-Tooltip-Border"
,
tile
=
true
,
tileSize
=
8
,
edgeSize
=
8
,
insets
=
{
left
=
3
,
right
=
3
,
top
=
3
,
bottom
=
3
},
};
-- BURST CACHE ---------------------------------------------------
local
VUHDO_CONFIG
;
local
VUHDO_PET_2_OWNER
;
...
...
This diff is collapsed.
Click to expand it.
VuhDo.toc
View file @
0edd8143
## Interface:
803
00
## Interface:
90
00
2
## Title: VuhDo ['vu:du:]
## Author: Iza@Gilneas, humfras, Ivaria@Hyjal
## Version: 3.11
4
## Version: 3.11
5
## Notes: Raid Frames providing click-heal functionality, buff and debuff control, main tank management and much more
## SavedVariablesPerCharacter: VUHDO
_
CONFIG, VUHDO
_
PANEL
_
SETUP, VUHDO
_
SPELL
_
ASSIGNMENTS, VUHDO
_
HOSTILE
_
SPELL
_
ASSIGNMENTS, VUHDO
_
MM
_
SETTINGS, VUHDO
_
PLAYER
_
TARGETS, VUHDO
_
MAINTANK
_
NAMES, VUHDO
_
BUFF
_
SETTINGS, VUHDO
_
POWER
_
TYPE
_
COLORS, VUHDO
_
SPELLS
_
KEYBOARD, VUHDO
_
SPELL
_
CONFIG, VUHDO
_
BUFF
_
ORDER, VUHDO
_
SPEC
_
LAYOUTS, VUHDO
_
GROUP
_
SIZE, VUHDO
_
RAID, VUHDO
_
INDICATOR
_
CONFIG
## SavedVariables: VUHDO
_
DEFAULT
_
LAYOUT, VUHDO
_
DEFAULT
_
PROFILE, VUHDO
_
PROFILES, VUHDO
_
MANUAL
_
ROLES, VUHDO
_
SPELL
_
LAYOUTS, VUHDO
_
USER
_
CLASS
_
COLORS, VUHDO
_
DEBUFF
_
BLACKLIST, VUHDO
_
BOUQUETS, VUHDO
_
COMBAT
_
LOG
_
TRACE, VUHDO
_
GLOBAL
_
CONFIG, VUHDO
_
DEBUG
...
...
This diff is collapsed.
Click to expand it.
VuhDo.xml
View file @
0edd8143
...
...
@@ -101,7 +101,10 @@
</Scripts>
</Frame>
<Frame
name=
"VuhDoTooltip"
frameStrata=
"TOOLTIP"
movable=
"true"
parent=
"UIParent"
hidden=
"true"
>
<Frame
name=
"VuhDoTooltip"
frameStrata=
"TOOLTIP"
movable=
"true"
parent=
"UIParent"
hidden=
"true"
inherits=
"BackdropTemplate"
mixin=
"BackdropTemplateMixin"
>
<KeyValues>
<KeyValue
key=
"backdropInfo"
value=
"BACKDROP_VUHDO_TOOLTIP"
type=
"global"
/>
</KeyValues>
<Layers>
<Layer
level=
"ARTWORK"
>
<FontString
name=
"$parentTextL1"
inherits=
"GameFontNormalSmall"
hidden=
"true"
>
...
...
@@ -322,19 +325,6 @@
</FontString>
</Layer>
</Layers>
<Backdrop
tile=
"true"
bgFile=
"Interface\Tooltips\UI-Tooltip-Background"
edgeFile=
"Interface\Tooltips\UI-Tooltip-Border"
>
<EdgeSize>
<AbsValue
val=
"8"
/>
</EdgeSize>
<TileSize>
<AbsValue
val=
"8"
/>
</TileSize>
<BackgroundInsets>
<AbsInset
left=
"3"
right=
"3"
top=
"3"
bottom=
"3"
/>
</BackgroundInsets>
</Backdrop>
<Scripts>
<OnMouseDown>
VuhDoTooltipOnMouseDown(self,arg1)
</OnMouseDown>
<OnMouseUp>
VuhDoTooltipOnMouseUp(self,arg1)
</OnMouseUp>
...
...
This diff is collapsed.
Click to expand it.
VuhDoAoeAdvisor.lua
View file @
0edd8143
...
...
@@ -228,7 +228,13 @@ function VUHDO_aoeUpdateSpellAverages()
tSpellModi
=
tInfo
[
"base"
]
/
tInfo
[
"divisor"
];
tInfo
[
"avg"
]
=
floor
((
tInfo
[
"base"
]
+
tBonus
*
tSpellModi
)
+
0
.
5
);
end
tInfo
[
"thresh"
]
=
VUHDO_CONFIG
[
"AOE_ADVISOR"
][
"config"
][
tName
][
"thresh"
];
-- FIXME: as of 9.0.1 PLAYER_EQUIPMENT_CHANGED sometimes fires before VUHDO_CONFIG is loaded and available
if
VUHDO_CONFIG
then
tInfo
[
"thresh"
]
=
VUHDO_CONFIG
[
"AOE_ADVISOR"
][
"config"
][
tName
][
"thresh"
];
elseif
not
tInfo
[
"thresh"
]
then
tInfo
[
"thresh"
]
=
8000
;
-- FIXME: current lowest threshold
end
--print("VUHDO_aoeUpdateSpellAverages(): name = " .. tName .. ", avg = floor((base + bonus * spellMod) + 0.5) | " .. tInfo["avg"] .. " = floor((" .. tInfo["base"] .. " + " .. tBonus .. " * " .. tSpellModi .. ") + 0.5)");
end
end
...
...
This diff is collapsed.
Click to expand it.
VuhDoBouquetValidators.lua
View file @
0edd8143
...
...
@@ -205,7 +205,7 @@ end
--
local
function
VUHDO_isPhasedValidator
(
anInfo
,
_
)
if
Unit
IsWarModePhased
(
anInfo
[
"unit"
])
or
not
UnitInPhase
(
anInfo
[
"unit"
])
then
if
Unit
PhaseReason
(
anInfo
[
"unit"
])
then
return
true
,
"Interface\\TargetingFrame\\UI-PhasingIcon"
,
-
1
,
-
1
,
-
1
,
nil
,
nil
,
0
.
15625
,
0
.
84375
,
0
.
15625
,
0
.
84375
;
else
...
...
@@ -217,12 +217,16 @@ end
--
local
function
VUHDO_isWarModePhasedValidator
(
anInfo
,
_
)
if
UnitIsWarModePhased
(
anInfo
[
"unit"
])
then
local
tPhaseReason
=
UnitPhaseReason
(
anInfo
[
"unit"
]);
if
tPhaseReason
and
tPhaseReason
==
Enum
.
PhaseReason
.
WarMode
then
return
true
,
"Interface\\TargetingFrame\\UI-PhasingIcon"
,
-
1
,
-
1
,
-
1
,
nil
,
nil
,
0
.
15625
,
0
.
84375
,
0
.
15625
,
0
.
84375
;
else
return
false
,
nil
,
-
1
,
-
1
,
-
1
;
end
end
...
...
This diff is collapsed.
Click to expand it.
VuhDoBuffWatch.lua
View file @
0edd8143
...
...
@@ -29,6 +29,26 @@ VUHDO_BUFF_ORDER = { };
local
sEmpty
=
{
};
local
sCooldownAliases
=
{
};
-- Backdrops
BACKDROP_VUHDO_BUFF_SWATCH_PANEL_8_8_0000
=
{
bgFile
=
"Interface\\Tooltips\\UI-Tooltip-Background"
,
edgeFile
=
"Interface\\Tooltips\\UI-Tooltip-Border"
,
tile
=
true
,
tileSize
=
8
,
edgeSize
=
8
,
};
BACKDROP_COLOR_VUHDO_BUFF_SWATCH_PANEL
=
CreateColor
(
0
,
0
,
0
);
BACKDROP_VUHDO_BUFF_WATCH_MAIN_FRAME_16_16_5555
=
{
bgFile
=
"Interface\\Tooltips\\UI-Tooltip-Background"
,
edgeFile
=
"Interface\\Tooltips\\UI-Tooltip-Border"
,
tile
=
true
,
tileSize
=
16
,
edgeSize
=
16
,
insets
=
{
left
=
5
,
right
=
5
,
top
=
5
,
bottom
=
5
},
};
...
...
This diff is collapsed.
Click to expand it.
VuhDoBuffWatch.xml
View file @
0edd8143
...
...
@@ -22,23 +22,14 @@
</Scripts>
</Button>
<Frame
name=
"VuhDoBuffSwatchPanelTemplate"
virtual=
"true"
>
<Frame
name=
"VuhDoBuffSwatchPanelTemplate"
virtual=
"true"
inherits=
"BackdropTemplate"
mixin=
"BackdropTemplateMixin"
>
<KeyValues>
<KeyValue
key=
"backdropInfo"
value=
"BACKDROP_VUHDO_BUFF_SWATCH_PANEL_8_8_0000"
type=
"global"
/>
<KeyValue
key=
"backdropColor"
value=
"BACKDROP_COLOR_VUHDO_BUFF_SWATCH_PANEL"
type=
"global"
/>
</KeyValues>
<Size>
<AbsDimension
x=
"75"
y=
"24"
/>
</Size>
<Backdrop
bgFile=
"Interface\Tooltips\UI-Tooltip-Background"
edgeFile=
"Interface\Tooltips\UI-Tooltip-Border"
tile=
"true"
>
<Color
r=
"0"
g=
"0"
b=
"0"
/>
<BackgroundInsets>
<AbsInset
left=
"0"
right=
"0"
top=
"0"
bottom=
"0"
/>
</BackgroundInsets>
<TileSize>
<AbsValue
val=
"8"
/>
</TileSize>
<EdgeSize>
<AbsValue
val=
"8"
/>
</EdgeSize>
</Backdrop>
<Frames>
<Button
name=
"$parentGlassButton"
setAllPoints=
"true"
inherits=
"SecureUnitButtonTemplate,SecureHandlerEnterLeaveTemplate,SecureHandlerShowHideTemplate"
>
...
...
@@ -242,18 +233,10 @@
</Frame>
<Frame
name=
"VuhDoBuffWatchMainFrameTemplate"
virtual=
"true"
toplevel=
"true"
frameStrata=
"MEDIUM"
movable=
"true"
parent=
"UIParent"
enableMouse=
"true"
>
<Backdrop
bgFile=
"Interface\Tooltips\UI-Tooltip-Background"
edgeFile=
"Interface\Tooltips\UI-Tooltip-Border"
tile=
"true"
>
<BackgroundInsets>
<AbsInset
left=
"5"
right=
"5"
top=
"5"
bottom=
"5"
/>
</BackgroundInsets>
<TileSize>
<AbsValue
val=
"16"
/>
</TileSize>
<EdgeSize>
<AbsValue
val=
"16"
/>
</EdgeSize>
</Backdrop>
movable=
"true"
parent=
"UIParent"
enableMouse=
"true"
inherit=
"BackdropTemplate"
mixin=
"BackdropTemplateMixin"
>
<KeyValues>
<KeyValue
key=
"backdropInfo"
value=
"BACKDROP_VUHDO_BUFF_WATCH_MAIN_FRAME_16_16_5555"
type=
"global"
/>
</KeyValues>
<Frames>
<Frame
name=
"$parentInfoLabel"
hidden=
"true"
inherits=
"VuhDoLabelFrameTemplate"
>
<Size>
...
...
This diff is collapsed.
Click to expand it.
VuhDoDebuffConst.lua
View file @
0edd8143
...
...
@@ -201,6 +201,5 @@ VUHDO_INIT_IGNORE_DEBUFFS_NO_HARM = {
[(
GetSpellInfo
(
57723
))]
=
true
,
-- Exhaustion
[(
GetSpellInfo
(
80354
))]
=
true
,
-- Temporal Displacement
[(
GetSpellInfo
(
95809
))]
=
true
,
-- Insanity
[(
GetSpellInfo
(
12292
))]
=
true
,
-- Bloodbath
};
This diff is collapsed.
Click to expand it.
VuhDoEventHandler.lua
View file @
0edd8143
...
...
@@ -442,15 +442,7 @@ function VUHDO_OnEvent(_, anEvent, anArg1, anArg2, anArg3, anArg4, anArg5, anArg
VUHDO_updateBouquetsForEvent
(
anArg1
,
4
);
-- VUHDO_UPDATE_DEBUFF
end
-- elseif "UNIT_HEALTH" == anEvent then
-- as of patch 7.1 we are seeing empty units on health related events
-- if anArg1 and (VUHDO_RAID or tEmptyRaid)[anArg1] then
-- VUHDO_updateHealth(anArg1, 2); -- VUHDO_UPDATE_HEALTH
-- end
-- TODO: is it ok to listen to both UNIT_HEALTH and UNIT_HEALTH_FREQUENT?
-- TODO: add options based on desired responsiveness and performance
elseif
"UNIT_HEALTH_FREQUENT"
==
anEvent
then
elseif
"UNIT_HEALTH"
==
anEvent
then
-- as of patch 7.1 we are seeing empty units on health related events
if
anArg1
and
((
VUHDO_RAID
or
tEmptyRaid
)[
anArg1
]
or
VUHDO_isBossUnit
(
anArg1
))
then
VUHDO_updateHealth
(
anArg1
,
2
);
...
...
@@ -1091,7 +1083,7 @@ local function VUHDO_updateAllRange()
end
-- Check if unit is phased
if
Unit
IsWarModePhased
(
tUnit
)
or
not
UnitInPhase
(
tUnit
)
then
if
Unit
PhaseReason
(
tUnit
)
then
tIsInRange
=
false
;
else
-- Check if unit is in range
...
...
@@ -1498,7 +1490,7 @@ end
local VUHDO_ALL_EVENTS = {
"
VARIABLES_LOADED
", "
PLAYER_ENTERING_WORLD
",
"
UNIT_HEALTH_FREQUENT
",
"
UNIT_MAXHEALTH
",
--
"
UNIT_HEALTH
",
"
UNIT_MAXHEALTH
", "
UNIT_HEALTH
",
"
UNIT_AURA
",
"
UNIT_TARGET
",
"
GROUP_ROSTER_UPDATE
", "
INSTANCE_ENCOUNTER_ENGAGE_UNIT
", "
UPDATE_ACTIVE_BATTLEFIELD
",
...
...
This diff is collapsed.
Click to expand it.
VuhDoGuiToolbox.lua
View file @
0edd8143
...
...
@@ -346,8 +346,7 @@ local VUHDO_BLIZZ_EVENTS = {
"UNIT_FACTION"
,
"UNIT_FLAGS"
,
"UNIT_HEAL_PREDICTION"
,
-- "UNIT_HEALTH",
"UNIT_HEALTH_FREQUENT"
,
"UNIT_HEALTH"
,
"UNIT_LEVEL"
,
"UNIT_MAXHEALTH"
,
"UNIT_MAXPOWER"
,
...
...
@@ -379,8 +378,7 @@ local VUHDO_FIX_EVENTS = {
"UNIT_AURA"
,
"UNIT_COMBAT"
,
"UNIT_HEAL_PREDICTION"
,
-- "UNIT_HEALTH",
"UNIT_HEALTH_FREQUENT"
,
"UNIT_HEALTH"
,
"UNIT_MAXHEALTH"
,
"UNIT_MAXPOWER"
,
"UNIT_PET"
,
...
...
This diff is collapsed.
Click to expand it.
VuhDoOptions/VuhDoLookAndFeel.lua
View file @
0edd8143
...
...
@@ -34,6 +34,86 @@ local VUHDO_NORMAL_LABEL_COLOR_DISA = {
-- Backdrops
BACKDROP_VUHDO_H_SLIDER_8_8_1111
=
{
bgFile
=
"Interface\\AddOns\\VuhDoOptions\\Images\\blue_lt_square_16_16"
,
edgeFile
=
"Interface\\AddOns\\VuhDoOptions\\Images\\panel_edges_3"
,
tile
=
true
,
tileSize
=
8
,
edgeSize
=
8
,
insets
=
{
left
=
1
,
right
=
1
,
top
=
1
,
bottom
=
1
},
};
BACKDROP_VUHDO_FRAME_16_16_1111
=
{
bgFile
=
"Interface\\AddOns\\VuhDoOptions\\Images\\blue_lt_square_16_16"
,
edgeFile
=
"Interface\\AddOns\\VuhDoOptions\\Images\\panel_edges_2"
,
tile
=
true
,
tileSize
=
16
,
edgeSize
=
16
,
insets
=
{
left
=
1
,
right
=
1
,
top
=
1
,
bottom
=
1
},
};
BACKDROP_VUHDO_PANEL_16_16_3333
=
{
bgFile
=
"Interface\\AddOns\\VuhDo\\Images\\white_square_16_16"
,
edgeFile
=
"Interface\\AddOns\\VuhDoOptions\\Images\\panel_edges_1"
,
tile
=
true
,
tileSize
=
16
,
edgeSize
=
16
,
insets
=
{
left
=
3
,
right
=
3
,
top
=
3
,
bottom
=
3
},
};
BACKDROP_VUHDO_WHITE_PANEL_16_16_3333
=
{
bgFile
=
"Interface\\AddOns\\VuhDo\\Images\\white_square_16_16"
,
edgeFile
=
"Interface\\AddOns\\VuhDoOptions\\Images\\panel_edges_2"
,
tile
=
true
,
tileSize
=
16
,
edgeSize
=
16
,
insets
=
{
left
=
3
,
right
=
3
,
top
=
3
,
bottom
=
3
},
};
BACKDROP_VUHDO_WHITE_SQUARE_16_16_0000
=
{
bgFile
=
"Interface\\AddOns\\VuhDo\\Images\\white_square_16_16"
,
tile
=
true
,
tileSize
=
16
,
edgeSize
=
16
,
};
BACKDROP_VUHDO_PANEL_SCROLL_BAR_8_8_1111
=
{
bgFile
=
"Interface\\AddOns\\VuhDoOptions\\Images\\blue_dk_square_16_16"
,
edgeFile
=
"Interface\\AddOns\\VuhDoOptions\\Images\\panel_edges_3"
,
tile
=
true
,
tileSize
=
8
,
edgeSize
=
8
,
insets
=
{
left
=
1
,
right
=
1
,
top
=
1
,
bottom
=
1
},
};
BACKDROP_VUHDO_SCROLL_PANEL_16_16_0000
=
{
bgFile
=
"Interface\\AddOns\\VuhDo\\Images\\white_square_16_16"
,
edgeFile
=
"Interface\\AddOns\\VuhDoOptions\\Images\\panel_edges_4"
,
tile
=
true
,
tileSize
=
16
,
edgeSize
=
16
,
};
BACKDROP_VUHDO_SCROLL_PANEL_2_16_16_0000
=
{
bgFile
=
"Interface\\AddOns\\VuhDo\\Images\\white_square_16_16"
,
edgeFile
=
"Interface\\AddOns\\VuhDoOptions\\Images\\panel_edges_1"
,
tile
=
true
,
tileSize
=
16
,
edgeSize
=
16
,
};
BACKDROP_VUHDO_PANEL_APPEND_BOTTOM_16_16_1111
=
{
bgFile
=
"Interface\\AddOns\\VuhDoOptions\\Images\\blue_lt_square_16_16"
,
edgeFile
=
"Interface\\AddOns\\VuhDoOptions\\Images\\panel_edges_2_append_bottom"
,
tile
=
true
,
tileSize
=
16
,
edgeSize
=
16
,
insets
=
{
left
=
1
,
right
=
1
,
top
=
1
,
bottom
=
1
},
};
--
function
VUHDO_lnfCheckButtonOnLoad
(
aCheckButton
)
if
aCheckButton
:
GetText
()
then
...
...
This diff is collapsed.
Click to expand it.
VuhDoOptions/VuhDoLookAndFeel.xml
View file @
0edd8143
...
...
@@ -1255,7 +1255,10 @@
<AbsDimension
x=
"140"
y=
"50"
/>
</Size>
<Frames>
<Slider
name=
"$parentSlider"
enableMouse=
"true"
minValue=
"0"
maxValue=
"100"
defaultValue=
"0"
valueStep=
"1"
orientation=
"HORIZONTAL"
>
<Slider
name=
"$parentSlider"
enableMouse=
"true"
minValue=
"0"
maxValue=
"100"
defaultValue=
"0"
valueStep=
"1"
orientation=
"HORIZONTAL"
inherits=
"BackdropTemplate"
mixin=
"BackdropTemplateMixin"
>
<KeyValues>
<KeyValue
key=
"backdropInfo"
value=
"BACKDROP_VUHDO_H_SLIDER_8_8_1111"
type=
"global"
/>
</KeyValues>
<Size>
<AbsDimension
x=
"128"
y=
"18"
/>
</Size>
...
...
@@ -1263,17 +1266,6 @@
<Anchor
point=
"LEFT"
/>
<Anchor
point=
"RIGHT"
/>
</Anchors>
<Backdrop
bgFile=
"Interface\AddOns\VuhDoOptions\Images\blue_lt_square_16_16"
edgeFile=
"Interface\AddOns\VuhDoOptions\Images\panel_edges_3"
tile=
"true"
>
<BackgroundInsets>
<AbsInset
left=
"1"
right=
"1"
top=
"1"
bottom=
"1"
/>
</BackgroundInsets>
<TileSize>
<AbsValue
val=
"8"
/>
</TileSize>
<EdgeSize>
<AbsValue
val=
"8"
/>
</EdgeSize>
</Backdrop>
<Layers>
<Layer>
<FontString
name=
"$parentTitle"
inherits=
"VuDoDefaultFontTemplate"
text=
""
>
...
...
@@ -1330,18 +1322,10 @@
<AbsDimension
x=
"18"
y=
"50"
/>
</Size>
<Frames>
<Slider
name=
"$parentSlider"
setallpoints=
"true"
enableMouse=
"true"
minValue=
"0"
maxValue=
"100"
defaultValue=
"0"
valueStep=
"1"
orientation=
"VERTICAL"
>
<Backdrop
bgFile=
"Interface\AddOns\VuhDoOptions\Images\blue_lt_square_16_16"
edgeFile=
"Interface\AddOns\VuhDoOptions\Images\panel_edges_3"
tile=
"true"
>
<BackgroundInsets>
<AbsInset
left=
"1"
right=
"1"
top=
"1"
bottom=
"1"
/>
</BackgroundInsets>
<TileSize>
<AbsValue
val=
"8"
/>
</TileSize>
<EdgeSize>
<AbsValue
val=
"8"
/>
</EdgeSize>
</Backdrop>
<Slider
name=
"$parentSlider"
setallpoints=
"true"
enableMouse=
"true"
minValue=
"0"
maxValue=
"100"
defaultValue=
"0"
valueStep=
"1"
orientation=
"VERTICAL"
inherits=
"BackdropTemplate"
mixin=
"BackdropTemplateMixin"
>
<KeyValues>
<KeyValue
key=
"backdropInfo"
value=
"BACKDROP_VUHDO_H_SLIDER_8_8_1111"
type=
"global"
/>
</KeyValues>
<Layers>
<Layer>
<FontString
name=
"$parentTitle"
inherits=
"VuDoDefaultFontTemplate"
text=
""
>
...
...
@@ -1393,21 +1377,13 @@
</Frame>
<Frame
name=
"VuhdoComboItemTemplate"
virtual=
"true"
>
<Frame
name=
"VuhdoComboItemTemplate"
virtual=
"true"
inherits=
"BackdropTemplate"
mixin=
"BackdropTemplateMixin"
>
<KeyValues>
<KeyValue
key=
"backdropInfo"
value=
"BACKDROP_VUHDO_WHITE_SQUARE_16_16_0000"
type=
"global"
/>
</KeyValues>
<Size>
<AbsDimension
x=
"210"
y=
"16"
/>
</Size>
<Backdrop
bgFile=
"Interface\AddOns\VuhDo\Images\white_square_16_16"
tile=
"true"
>
<BackgroundInsets>
<AbsInset
left=
"0"
right=
"0"
top=
"0"
bottom=
"0"
/>
</BackgroundInsets>
<TileSize>
<AbsValue
val=
"16"
/>
</TileSize>
<EdgeSize>
<AbsValue
val=
"16"
/>
</EdgeSize>
</Backdrop>
<Frames>
<Frame
name=
"$parentLabel"
>
<Size>
...
...
@@ -1984,7 +1960,7 @@
</Anchor>
</Anchors>
<ScrollChild>
<Frame
name=
"$parentSelectPanel"
>
<Frame
name=
"$parentSelectPanel"
mixin=
"BackdropTemplateMixin"
>
<Anchors>
<Anchor
point=
"TOPLEFT"
>
<Offset>
...
...
@@ -2123,7 +2099,7 @@
</Anchor>
</Anchors>
<ScrollChild>
<Frame
name=
"$parentSelectPanel"
>
<Frame
name=
"$parentSelectPanel"
mixin=
"BackdropTemplateMixin"
>
<Anchors>
<Anchor
point=
"TOPLEFT"
>
<Offset>
...
...
@@ -2149,65 +2125,32 @@
</Scripts>
</Button>
<Frame
name=
"VuhDoFrameTemplate"
toplevel=
"true"
movable=
"true"
virtual=
"true"
>
<Backdrop
bgFile=
"Interface\AddOns\VuhDoOptions\Images\blue_lt_square_16_16"
edgeFile=
"Interface\AddOns\VuhDoOptions\Images\panel_edges_2"
tile=
"true"
>
<BackgroundInsets>
<AbsInset
left=
"1"
right=
"1"
top=
"1"
bottom=
"1"
/>
</BackgroundInsets>
<TileSize>
<AbsValue
val=
"16"
/>
</TileSize>
<EdgeSize>
<AbsValue
val=
"16"
/>
</EdgeSize>
</Backdrop>
<Frame
name=
"VuhDoFrameTemplate"
toplevel=
"true"
movable=
"true"
virtual=
"true"
inherits=
"BackdropTemplate"
mixin=
"BackdropTemplateMixin"
>
<KeyValues>
<KeyValue
key=
"backdropInfo"
value=
"BACKDROP_VUHDO_FRAME_16_16_1111"
type=
"global"
/>
</KeyValues>
</Frame>
<Frame
name=
"VuhDoPanelTemplate"
virtual=
"true"
>
<Backdrop
bgFile=
"Interface\AddOns\VuhDo\Images\white_square_16_16"
edgeFile=
"Interface\AddOns\VuhDoOptions\Images\panel_edges_1"
tile=
"true"
>
<BackgroundInsets>
<AbsInset
left=
"3"
right=
"3"
top=
"3"
bottom=
"3"
/>
</BackgroundInsets>
<TileSize>
<AbsValue
val=
"16"
/>
</TileSize>
<EdgeSize>
<AbsValue
val=
"16"
/>
</EdgeSize>
</Backdrop>
<Frame
name=
"VuhDoPanelTemplate"
virtual=
"true"
inherits=
"BackdropTemplate"
mixin=
"BackdropTemplateMixin"
>
<KeyValues>
<KeyValue
key=
"backdropInfo"
value=
"BACKDROP_VUHDO_PANEL_16_16_3333"
type=
"global"
/>
</KeyValues>
</Frame>
<Frame
name=
"VuhDoWhitePanelTemplate"
virtual=
"true"
>
<Backdrop
bgFile=
"Interface\AddOns\VuhDo\Images\white_square_16_16"
edgeFile=
"Interface\AddOns\VuhDoOptions\Images\panel_edges_2"
tile=
"true"
>
<BackgroundInsets>
<AbsInset
left=
"3"
right=
"3"
top=
"3"
bottom=
"3"
/>
</BackgroundInsets>
<TileSize>
<AbsValue
val=
"16"
/>
</TileSize>
<EdgeSize>
<AbsValue
val=
"16"
/>
</EdgeSize>
</Backdrop>
<Frame
name=
"VuhDoWhitePanelTemplate"
virtual=
"true"
inherits=
"BackdropTemplate"
mixin=
"BackdropTemplateMixin"
>
<KeyValues>
<KeyValue
key=
"backdropInfo"
value=
"BACKDROP_VUHDO_WHITE_PANEL_16_16_3333"
type=
"global"
/>
</KeyValues>
</Frame>
<Slider
name=
"VuhDoPanelScrollBarTemplate"
virtual=
"true"
>
<Slider
name=
"VuhDoPanelScrollBarTemplate"
virtual=
"true"
inherits=
"BackdropTemplate"
mixin=
"BackdropTemplateMixin"
>
<KeyValues>
<KeyValue
key=
"backdropInfo"
value=
"BACKDROP_VUHDO_PANEL_SCROLL_BAR_8_8_1111"
type=
"global"
/>
</KeyValues>
<Size>
<AbsDimension
x=
"16"
y=
"0"
/>
</Size>
<Backdrop
bgFile=
"Interface\AddOns\VuhDoOptions\Images\blue_dk_square_16_16"
edgeFile=
"Interface\AddOns\VuhDoOptions\Images\panel_edges_3"
tile=
"true"
>
<BackgroundInsets>
<AbsInset
left=
"1"
right=
"1"
top=
"1"
bottom=
"1"
/>
</BackgroundInsets>
<TileSize>
<AbsValue
val=
"8"
/>
</TileSize>
<EdgeSize>
<AbsValue
val=
"8"
/>
</EdgeSize>
</Backdrop>
<Frames>
<Button
name=
"$parentScrollUpButton"
inherits=
"UIPanelScrollUpButtonTemplate"
>
<Size>
...
...
@@ -2254,18 +2197,10 @@
</Slider>
<ScrollFrame
name=
"VuhDoScrollPanelTemplate"
virtual=
"true"
>
<Backdrop
bgFile=
"Interface\AddOns\VuhDo\Images\white_square_16_16"
edgeFile=
"Interface\AddOns\VuhDoOptions\Images\panel_edges_4"
tile=
"true"
>
<BackgroundInsets>
<AbsInset
left=
"0"
right=
"0"
top=
"0"
bottom=
"0"
/>
</BackgroundInsets>
<TileSize>
<AbsValue
val=
"16"
/>
</TileSize>
<EdgeSize>
<AbsValue
val=
"16"
/>
</EdgeSize>
</Backdrop>
<ScrollFrame
name=
"VuhDoScrollPanelTemplate"
virtual=
"true"
inherits=
"BackdropTemplate"
mixin=
"BackdropTemplateMixin"
>
<KeyValues>
<KeyValue
key=
"backdropInfo"
value=
"BACKDROP_VUHDO_SCROLL_PANEL_16_16_0000"
type=
"global"
/>
</KeyValues>
<Frames>
<Slider
name=
"$parentScrollBar"
inherits=
"VuhDoPanelScrollBarTemplate"
>
<Anchors>
...
...
@@ -2283,7 +2218,7 @@
</Slider>
</Frames>
<Scripts>
<OnLoad>
<OnLoad
inherit=
"prepend"
>
ScrollFrame_OnLoad(self);
</OnLoad>
<OnScrollRangeChanged>
...
...
@@ -2312,18 +2247,10 @@
</Scripts>
</ScrollFrame>
<ScrollFrame
name=
"VuhDoScrollPanelTemplate2"
virtual=
"true"
>
<Backdrop
bgFile=
"Interface\AddOns\VuhDo\Images\white_square_16_16"
edgeFile=
"Interface\AddOns\VuhDoOptions\Images\panel_edges_1"
tile=
"true"
>
<BackgroundInsets>
<AbsInset
left=
"0"
right=
"0"
top=
"0"
bottom=
"0"
/>
</BackgroundInsets>
<TileSize>
<AbsValue
val=
"16"
/>
</TileSize>
<EdgeSize>
<AbsValue
val=
"16"
/>
</EdgeSize>
</Backdrop>
<ScrollFrame
name=
"VuhDoScrollPanelTemplate2"
virtual=
"true"
inherits=
"BackdropTemplate"
mixin=
"BackdropTemplateMixin"
>
<KeyValues>
<KeyValue
key=
"backdropInfo"
value=
"BACKDROP_VUHDO_SCROLL_PANEL_2_16_16_0000"
type=
"global"
/>
</KeyValues>
<Frames>
<Slider
name=
"$parentScrollBar"
inherits=
"VuhDoPanelScrollBarTemplate"
>
<Anchors>
...
...
@@ -2341,7 +2268,7 @@
</Slider>
</Frames>
<Scripts>
<OnLoad>
<OnLoad
inherit=
"prepend"
>
ScrollFrame_OnLoad(self);
</OnLoad>
<OnScrollRangeChanged>
...
...
@@ -2485,7 +2412,7 @@
</Anchor>
</Anchors>
<ScrollChild>
<Frame
name=
"$parentSelectPanel"
>
<Frame
name=
"$parentSelectPanel"
mixin=
"BackdropTemplateMixin"
>
<Anchors>
<Anchor
point=
"TOPLEFT"
>
<Offset>
...
...
@@ -2512,18 +2439,10 @@
</Button>
<Frame
name=
"VuhDoPanelAppendBottomTemplate"
virtual=
"true"
>
<Backdrop
bgFile=
"Interface\AddOns\VuhDoOptions\Images\blue_lt_square_16_16"
edgeFile=
"Interface\AddOns\VuhDoOptions\Images\panel_edges_2_append_bottom"
tile=
"true"
>
<BackgroundInsets>
<AbsInset
left=
"1"
right=
"1"
top=
"1"
bottom=
"1"
/>
</BackgroundInsets>
<TileSize>
<AbsValue
val=
"16"
/>
</TileSize>
<EdgeSize>
<AbsValue
val=
"16"
/>
</EdgeSize>
</Backdrop>
<Frame
name=
"VuhDoPanelAppendBottomTemplate"
virtual=
"true"
inherits=
"BackdropTemplate"
mixin=
"BackdropTemplateMixin"
>
<KeyValues>
<KeyValue
key=
"backdropInfo"
value=
"BACKDROP_VUHDO_PANEL_APPEND_BOTTOM_16_16_1111"
type=
"global"
/>
</KeyValues>
</Frame>
...
...
This diff is collapsed.
Click to expand it.
VuhDoOptions/VuhDoLookAndFeelStandardShare.lua
View file @
0edd8143
...
...
@@ -39,13 +39,13 @@ function VUHDO_initBuddyNameModel()
end
-- Friends
local
tNumFriends
=
GetNumFriends
();
local
tIsOnline
;
local
tName
;
local
tNumFriends
=
C_FriendList
.
GetNumFriends
();
local
tFriendInfo
;
for
tCnt
=
1
,
tNumFriends
do
tName
,
_
,
_
,
_
,
tIsOnline
=
GetFriendInfo
(
tCnt
);
if
(
tIsOnline
)
then
VUHDO_addBuddyNameToComboModel
(
tName
);
tFriendInfo
=
C_FriendList
.
GetFriendInfoByIndex
(
tCnt
);
if
(
tFriendInfo
.
connected
)
then
VUHDO_addBuddyNameToComboModel
(
tFriendInfo
.
name
);
end
end
...
...
@@ -102,4 +102,4 @@ function VUHDO_optionsExecShare(aPanel)
_G
[
aPanel
:
GetAttribute
(
"model"
)[
1
]](
VUHDO_SELECTED_COMBO_BUDDY
,
tSelection
);
return
true
;
end
\ No newline at end of file
end
This diff is collapsed.
Click to expand it.
VuhDoOptions/VuhDoNewColorPicker.lua
View file @
0edd8143
...
...
@@ -5,6 +5,16 @@ local sIsTextEdit;
local
VUHDO_origColor
;
local
VUHDO_copyPasteColor
=
{
};
-- Backdrops
BACKDROP_VUHDO_COLOR_PICKER_SLIDER_8_8_1111
=
{
bgFile
=
"Interface\\AddOns\\VuhDoOptions\\Images\\blue_lt_square_16_16"
,
edgeFile
=
"Interface\\AddOns\\VuhDoOptions\\Images\\panel_edges_1"
,
tile
=
true
,
tileSize
=
8
,
edgeSize
=
8
,
insets
=
{
left
=
1
,
right
=
1
,
top
=
1
,
bottom
=
1
},
};
--
local
function
VUHDO_mayEditText
()
return
VUHDO_COLOR
.
TR
~=
nil
and
not
strfind
(
VUHDO_PROHIBIT
,
"T"
,
1
,
true
);
...
...
This diff is collapsed.
Click to expand it.
VuhDoOptions/VuhDoNewColorPicker.xml
View file @
0edd8143
...
...
@@ -229,18 +229,10 @@
</Anchor>
</Anchors>
<Frames>
<Slider
name=
"$parentSlider"
setallpoints=
"true"
enableMouse=
"true"
minValue=
"0"
maxValue=
"100"
defaultValue=
"0"
valueStep=
"1"
orientation=
"VERTICAL"
>
<Backdrop
bgFile=
"Interface\AddOns\VuhDoOptions\Images\blue_lt_square_16_16"
edgeFile=
"Interface\AddOns\VuhDoOptions\Images\panel_edges_1"
tile=
"true"
>
<BackgroundInsets>
<AbsInset
left=
"1"
right=
"1"
top=
"1"
bottom=
"1"
/>
</BackgroundInsets>
<TileSize>
<AbsValue
val=
"8"
/>
</TileSize>
<EdgeSize>
<AbsValue
val=
"8"
/>
</EdgeSize>
</Backdrop>
<Slider
name=
"$parentSlider"
setallpoints=
"true"
enableMouse=
"true"
minValue=
"0"
maxValue=
"100"
defaultValue=
"0"
valueStep=
"1"
orientation=
"VERTICAL"
inherits=
"BackdropTemplate"
mixin=
"BackdropTemplateMixin"
>
<KeyValues>
<KeyValue
key=
"backdropInfo"
value=
"BACKDROP_VUHDO_COLOR_PICKER_SLIDER_8_8_1111"
type=
"global"
/>
</KeyValues>
<Layers>
<Layer>
<FontString
name=
"$parentTitle"
inherits=
"VuDoDefaultFontTemplate"
text=
"VUHDO_I18N_OPACITY"
>
...
...
@@ -287,7 +279,7 @@
</Frames>
<Scripts>
<OnLoad>
<OnLoad
inherit=
"prepend"
>
VUHDO_lnfPatchFont(self, "OldColorLabel");
VUHDO_lnfPatchFont(self, "NewColorLabel");
self:SetScript("OnColorSelect", VUHDO_colorPickerColorSelectCallback);
...
...
This diff is collapsed.
Click to expand it.
Prev
1
2
Next
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