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
Landon Wu
VuhDo
Commits
c729b4a1
Commit
c729b4a1
authored
8 years ago
by
Ivaria
Browse files
Options
Download
Email Patches
Plain Diff
Added new bindable command 'MouseLook' (move the camera with mouse)
parent
26942046
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
18 additions
and
1 deletion
+18
-1
VuhDoConst.lua
VuhDoConst.lua
+1
-0
VuhDoKeySetup.lua
VuhDoKeySetup.lua
+6
-0
VuhDoMacroFactory.lua
VuhDoMacroFactory.lua
+7
-0
VuhDoOptions/VuhDoNewOptionsSpellHostile.lua
VuhDoOptions/VuhDoNewOptionsSpellHostile.lua
+2
-1
VuhDoToolbox.lua
VuhDoToolbox.lua
+1
-0
changelog.txt
changelog.txt
+1
-0
No files found.
VuhDoConst.lua
View file @
c729b4a1
...
...
@@ -234,6 +234,7 @@ VUHDO_SPELL_KEY_EXTRAACTIONBUTTON = "extraactionbutton";
VUHDO_SPELL_KEY_MENU
=
"menu"
;
VUHDO_SPELL_KEY_TELL
=
"tell"
;
VUHDO_SPELL_KEY_DROPDOWN
=
"dropdown"
;
VUHDO_SPELL_KEY_MOUSELOOK
=
"mouselook"
;
...
...
This diff is collapsed.
Click to expand it.
VuhDoKeySetup.lua
View file @
c729b4a1
...
...
@@ -12,6 +12,7 @@ local VUHDO_buildTargetMacroText;
local
VUHDO_buildFocusMacroText
;
local
VUHDO_buildAssistMacroText
;
local
VUHDO_buildExtraActionButtonMacroText
;
local
VUHDO_buildMouseLookMacroText
;
local
VUHDO_replaceMacroTemplates
;
local
VUHDO_isActionValid
;
local
VUHDO_isSpellKnown
;
...
...
@@ -44,6 +45,7 @@ function VUHDO_keySetupInitLocalOverrides()
VUHDO_buildFocusMacroText
=
_G
[
"VUHDO_buildFocusMacroText"
];
VUHDO_buildAssistMacroText
=
_G
[
"VUHDO_buildAssistMacroText"
];
VUHDO_buildExtraActionButtonMacroText
=
_G
[
"VUHDO_buildExtraActionButtonMacroText"
];
VUHDO_buildMouseLookMacroText
=
_G
[
"VUHDO_buildMouseLookMacroText"
];
VUHDO_replaceMacroTemplates
=
_G
[
"VUHDO_replaceMacroTemplates"
];
VUHDO_isActionValid
=
_G
[
"VUHDO_isActionValid"
];
VUHDO_isSpellKnown
=
_G
[
"VUHDO_isSpellKnown"
];
...
...
@@ -96,6 +98,10 @@ local function _VUHDO_setupHealButtonAttributes(aModiKey, aButtonId, anAction, a
aButton
:
SetAttribute
(
aModiKey
..
"type"
..
aButtonId
,
"macro"
);
aButton
:
SetAttribute
(
aModiKey
..
"macrotext"
..
aButtonId
,
VUHDO_buildExtraActionButtonMacroText
(
tUnit
));
elseif
"mouselook"
==
tActionLow
then
aButton
:
SetAttribute
(
aModiKey
..
"type"
..
aButtonId
,
"macro"
);
aButton
:
SetAttribute
(
aModiKey
..
"macrotext"
..
aButtonId
,
VUHDO_buildMouseLookMacroText
());
elseif
"menu"
==
tActionLow
or
"tell"
==
tActionLow
then
aButton
:
SetAttribute
(
aModiKey
..
"type"
..
aButtonId
,
nil
);
...
...
This diff is collapsed.
Click to expand it.
VuhDoMacroFactory.lua
View file @
c729b4a1
...
...
@@ -301,6 +301,13 @@ end
--
function
VUHDO_buildMouseLookMacroText
()
return
"/run if IsMouselooking() then MouselookStop() else MouselookStart() end\n"
;
end
local
VUHDO_PROHIBIT_HELP
=
{
[
VUHDO_SPELL_ID
.
REBIRTH
]
=
true
,
[
VUHDO_SPELL_ID
.
REDEMPTION
]
=
true
,
...
...
This diff is collapsed.
Click to expand it.
VuhDoOptions/VuhDoNewOptionsSpellHostile.lua
View file @
c729b4a1
...
...
@@ -57,7 +57,8 @@ local function VUHDO_isHostileActionValid(anActionName)
if
(
VUHDO_SPELL_KEY_ASSIST
==
tActionLowerName
or
VUHDO_SPELL_KEY_FOCUS
==
tActionLowerName
or
VUHDO_SPELL_KEY_TARGET
==
tActionLowerName
or
VUHDO_SPELL_KEY_EXTRAACTIONBUTTON
==
tActionLowerName
)
then
or
VUHDO_SPELL_KEY_EXTRAACTIONBUTTON
==
tActionLowerName
or
VUHDO_SPELL_KEY_MOUSELOOK
==
tActionLowerName
)
then
return
"Command"
,
0
.
8
,
1
,
0
.
8
;
end
...
...
This diff is collapsed.
Click to expand it.
VuhDoToolbox.lua
View file @
c729b4a1
...
...
@@ -679,6 +679,7 @@ function VUHDO_isActionValid(anActionName, anIsCustom)
or
VUHDO_SPELL_KEY_TELL
==
tActionLowerName
or
VUHDO_SPELL_KEY_TARGET
==
tActionLowerName
or
VUHDO_SPELL_KEY_EXTRAACTIONBUTTON
==
tActionLowerName
or
VUHDO_SPELL_KEY_MOUSELOOK
==
tActionLowerName
or
VUHDO_SPELL_KEY_DROPDOWN
==
tActionLowerName
then
return
VUHDO_I18N_COMMAND
,
0
.
8
,
1
,
0
.
8
,
"CMD"
;
end
...
...
This diff is collapsed.
Click to expand it.
changelog.txt
View file @
c729b4a1
...
...
@@ -19,6 +19,7 @@ Bugfixes:
Improvements:
-- Added new bindable command 'MouseLook' (move the camera with mouse)
--------------------------------------------------------------
...
...
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