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
4c939ad9
Commit
4c939ad9
authored
9 years ago
by
Ivaria
Browse files
Options
Download
Email Patches
Plain Diff
Changed custom flag validator local variable name to be less ambiguous.
parent
0307c1a1
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
13 additions
and
13 deletions
+13
-13
VuhDoBouquetValidators.lua
VuhDoBouquetValidators.lua
+1
-1
VuhDoOptions/VuhDoLocalization_de.lua
VuhDoOptions/VuhDoLocalization_de.lua
+1
-1
VuhDoOptions/VuhDoLocalization_en.lua
VuhDoOptions/VuhDoLocalization_en.lua
+1
-1
VuhDoOptions/VuhDoLocalization_es.lua
VuhDoOptions/VuhDoLocalization_es.lua
+1
-1
VuhDoOptions/VuhDoLocalization_fr.lua
VuhDoOptions/VuhDoLocalization_fr.lua
+1
-1
VuhDoOptions/VuhDoLocalization_ru.lua
VuhDoOptions/VuhDoLocalization_ru.lua
+1
-1
VuhDoOptions/VuhDoLocalization_zhCN.lua
VuhDoOptions/VuhDoLocalization_zhCN.lua
+1
-1
VuhDoOptions/VuhDoLocalization_zhTW.lua
VuhDoOptions/VuhDoLocalization_zhTW.lua
+1
-1
changelog.txt
changelog.txt
+5
-5
No files found.
VuhDoBouquetValidators.lua
View file @
4c939ad9
...
...
@@ -1065,7 +1065,7 @@ end
--
local
function
VUHDO_customFlagValidator
(
anInfo
,
aCustom
)
if
aCustom
and
aCustom
[
"custom"
]
and
aCustom
[
"custom"
][
1
]
then
local
loadedFunction
,
errorString
=
loadstring
(
"local
an
Info = _G[\"
VUHDO_anInfo
\
"];"
..
aCustom
[
"custom"
][
1
]);
local
loadedFunction
,
errorString
=
loadstring
(
"local
VUHDO_unit
Info = _G[\"
VUHDO_anInfo
\
"];"
..
aCustom
[
"custom"
][
1
]);
if
loadedFunction
then
_G
[
"VUHDO_anInfo"
]
=
anInfo
;
...
...
This diff is collapsed.
Click to expand it.
VuhDoOptions/VuhDoLocalization_de.lua
View file @
4c939ad9
...
...
@@ -612,7 +612,7 @@ VUHDO_I18N_TT.K553 = "Make the selected profile the default for all new characte
VUHDO_I18N_TT
.
K554
=
"Make the selected key layout the default for all new characters on this account."
;
VUHDO_I18N_TT
.
K555
=
"Check to allow the VuhDo menu command to be bound even when using Clique compatibility mode."
;
VUHDO_I18N_TT
.
K556
=
"Check this to have an extra panel for boss encounter NPCs (eg. shards on Tectus, mushrooms on Brackenspore)."
;
VUHDO_I18N_TT
.
K557
=
"Body of the custom flag function. Must return true or false. Example: return (\"
YOURNAME
\
" ==
an
Info\[\"
name
\
"\])"
;
VUHDO_I18N_TT
.
K557
=
"Body of the custom flag function. Must return true or false. Example: return (\"
YOURNAME
\
" ==
VUHDO_unit
Info\[\"
name
\
"\])"
;
VUHDO_I18N_TT
.
K558
=
"Hide buff watch while out of combat."
;
VUHDO_I18N_DEFAULT_PROFILE
=
"Default Profile"
;
...
...
This diff is collapsed.
Click to expand it.
VuhDoOptions/VuhDoLocalization_en.lua
View file @
4c939ad9
...
...
@@ -611,7 +611,7 @@ VUHDO_I18N_TT.K553 = "Make the selected profile the default for all new characte
VUHDO_I18N_TT
.
K554
=
"Make the selected key layout the default for all new characters on this account."
;
VUHDO_I18N_TT
.
K555
=
"Check to allow the VuhDo menu command to be bound even when using Clique compatibility mode."
;
VUHDO_I18N_TT
.
K556
=
"Check this to have an extra panel for boss encounter NPCs (eg. shards on Tectus, mushrooms on Brackenspore)."
;
VUHDO_I18N_TT
.
K557
=
"Body of the custom flag function. Must return true or false. Example: return (\"
YOURNAME
\
" ==
an
Info\[\"
name
\
"\])"
;
VUHDO_I18N_TT
.
K557
=
"Body of the custom flag function. Must return true or false. Example: return (\"
YOURNAME
\
" ==
VUHDO_unit
Info\[\"
name
\
"\])"
;
VUHDO_I18N_TT
.
K558
=
"Hide buff watch while out of combat."
;
VUHDO_I18N_DEFAULT_PROFILE
=
"Default Profile"
;
...
...
This diff is collapsed.
Click to expand it.
VuhDoOptions/VuhDoLocalization_es.lua
View file @
4c939ad9
...
...
@@ -619,7 +619,7 @@ VUHDO_I18N_TT.K553 = "Make the selected profile the default for all new characte
VUHDO_I18N_TT
.
K554
=
"Make the selected key layout the default for all new characters on this account."
;
VUHDO_I18N_TT
.
K555
=
"Check to allow the VuhDo menu command to be bound even when using Clique compatibility mode."
;
VUHDO_I18N_TT
.
K556
=
"Check this to have an extra panel for boss encounter NPCs (eg. shards on Tectus, mushrooms on Brackenspore)."
;
VUHDO_I18N_TT
.
K557
=
"Body of the custom flag function. Must return true or false. Example: return (\"
YOURNAME
\
" ==
an
Info\[\"
name
\
"\])"
;
VUHDO_I18N_TT
.
K557
=
"Body of the custom flag function. Must return true or false. Example: return (\"
YOURNAME
\
" ==
VUHDO_unit
Info\[\"
name
\
"\])"
;
VUHDO_I18N_TT
.
K558
=
"Hide buff watch while out of combat."
;
VUHDO_I18N_DEFAULT_PROFILE
=
"Default Profile"
;
...
...
This diff is collapsed.
Click to expand it.
VuhDoOptions/VuhDoLocalization_fr.lua
View file @
4c939ad9
...
...
@@ -621,7 +621,7 @@ VUHDO_I18N_TT.K553 = "Make the selected profile the default for all new characte
VUHDO_I18N_TT
.
K554
=
"Make the selected key layout the default for all new characters on this account."
;
VUHDO_I18N_TT
.
K555
=
"Check to allow the VuhDo menu command to be bound even when using Clique compatibility mode."
;
VUHDO_I18N_TT
.
K556
=
"Check this to have an extra panel for boss encounter NPCs (eg. shards on Tectus, mushrooms on Brackenspore)."
;
VUHDO_I18N_TT
.
K557
=
"Body of the custom flag function. Must return true or false. Example: return (\"
YOURNAME
\
" ==
an
Info\[\"
name
\
"\])"
;
VUHDO_I18N_TT
.
K557
=
"Body of the custom flag function. Must return true or false. Example: return (\"
YOURNAME
\
" ==
VUHDO_unit
Info\[\"
name
\
"\])"
;
VUHDO_I18N_TT
.
K558
=
"Hide buff watch while out of combat."
;
VUHDO_I18N_DEFAULT_PROFILE
=
"Default Profile"
;
...
...
This diff is collapsed.
Click to expand it.
VuhDoOptions/VuhDoLocalization_ru.lua
View file @
4c939ad9
...
...
@@ -719,7 +719,7 @@ VUHDO_I18N_TT.K553 = "Make the selected profile the default for all new characte
VUHDO_I18N_TT
.
K554
=
"Make the selected key layout the default for all new characters on this account."
;
VUHDO_I18N_TT
.
K555
=
"Check to allow the VuhDo menu command to be bound even when using Clique compatibility mode."
;
VUHDO_I18N_TT
.
K556
=
"Check this to have an extra panel for boss encounter NPCs (eg. shards on Tectus, mushrooms on Brackenspore)."
;
VUHDO_I18N_TT
.
K557
=
"Body of the custom flag function. Must return true or false. Example: return (\"
YOURNAME
\
" ==
an
Info\[\"
name
\
"\])"
;
VUHDO_I18N_TT
.
K557
=
"Body of the custom flag function. Must return true or false. Example: return (\"
YOURNAME
\
" ==
VUHDO_unit
Info\[\"
name
\
"\])"
;
VUHDO_I18N_TT
.
K558
=
"Hide buff watch while out of combat."
;
VUHDO_I18N_DEFAULT_PROFILE
=
"Default Profile"
;
...
...
This diff is collapsed.
Click to expand it.
VuhDoOptions/VuhDoLocalization_zhCN.lua
View file @
4c939ad9
...
...
@@ -613,7 +613,7 @@ VUHDO_I18N_TT.K553 = "Make the selected profile the default for all new characte
VUHDO_I18N_TT
.
K554
=
"Make the selected key layout the default for all new characters on this account."
;
VUHDO_I18N_TT
.
K555
=
"Check to allow the VuhDo menu command to be bound even when using Clique compatibility mode."
;
VUHDO_I18N_TT
.
K556
=
"Check this to have an extra panel for boss encounter NPCs (eg. shards on Tectus, mushrooms on Brackenspore)."
;
VUHDO_I18N_TT
.
K557
=
"Body of the custom flag function. Must return true or false. Example: return (\"
YOURNAME
\
" ==
an
Info\[\"
name
\
"\])"
;
VUHDO_I18N_TT
.
K557
=
"Body of the custom flag function. Must return true or false. Example: return (\"
YOURNAME
\
" ==
VUHDO_unit
Info\[\"
name
\
"\])"
;
VUHDO_I18N_TT
.
K558
=
"Hide buff watch while out of combat."
;
VUHDO_I18N_DEFAULT_PROFILE
=
"Default Profile"
;
...
...
This diff is collapsed.
Click to expand it.
VuhDoOptions/VuhDoLocalization_zhTW.lua
View file @
4c939ad9
...
...
@@ -613,7 +613,7 @@ VUHDO_I18N_TT.K553 = "Make the selected profile the default for all new characte
VUHDO_I18N_TT
.
K554
=
"Make the selected key layout the default for all new characters on this account."
;
VUHDO_I18N_TT
.
K555
=
"Check to allow the VuhDo menu command to be bound even when using Clique compatibility mode."
;
VUHDO_I18N_TT
.
K556
=
"Check this to have an extra panel for boss encounter NPCs (eg. shards on Tectus, mushrooms on Brackenspore)."
;
VUHDO_I18N_TT
.
K557
=
"Body of the custom flag function. Must return true or false. Example: return (\"
YOURNAME
\
" ==
an
Info\[\"
name
\
"\])"
;
VUHDO_I18N_TT
.
K557
=
"Body of the custom flag function. Must return true or false. Example: return (\"
YOURNAME
\
" ==
VUHDO_unit
Info\[\"
name
\
"\])"
;
VUHDO_I18N_TT
.
K558
=
"Hide buff watch while out of combat."
;
VUHDO_I18N_DEFAULT_PROFILE
=
"Default Profile"
;
...
...
This diff is collapsed.
Click to expand it.
changelog.txt
View file @
4c939ad9
...
...
@@ -28,11 +28,11 @@ Improvements:
-- Under 'VuhDo Options > General > Bouquets'
-- Added custom flag validator which accepts a user defined function.
-- Bouquets can include any valid Lua function which returns true or false.
-- The function can access the '
an
Info' variable which is a map
containing
-- the relevant unit information.
--
E
xample below returns true if the unit is named 'Ivaria':
-- return ("Ivaria" ==
an
Info["name"])
-- Unit information (
an
Info table):
-- The function can access the '
VUHDO_unit
Info' variable which is a map
--
containing
the relevant unit information.
--
The e
xample below returns true if the unit is named 'Ivaria':
-- return ("Ivaria" ==
VUHDO_unit
Info["name"])
-- Unit information (
VUHDO_unit
Info table):
--
-- afk - boolean - true if unit is AFK
-- aggro - boolean - true if unit has aggro
...
...
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