mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-28 15:41:13 -04:00
disable some player controls in gui mode
This commit is contained in:
parent
14ddcc1204
commit
4949576984
@ -97,6 +97,8 @@ namespace MWInput
|
|||||||
|
|
||||||
void toggleSpell()
|
void toggleSpell()
|
||||||
{
|
{
|
||||||
|
if (windows.isGuiMode()) return;
|
||||||
|
|
||||||
DrawState state = player.getDrawState();
|
DrawState state = player.getDrawState();
|
||||||
if (state == DrawState_Weapon || state == DrawState_Nothing)
|
if (state == DrawState_Weapon || state == DrawState_Nothing)
|
||||||
{
|
{
|
||||||
@ -108,11 +110,12 @@ namespace MWInput
|
|||||||
player.setDrawState(DrawState_Nothing);
|
player.setDrawState(DrawState_Nothing);
|
||||||
std::cout << "Player does not have any kind of attack ready now.\n";
|
std::cout << "Player does not have any kind of attack ready now.\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void toggleWeapon()
|
void toggleWeapon()
|
||||||
{
|
{
|
||||||
|
if (windows.isGuiMode()) return;
|
||||||
|
|
||||||
DrawState state = player.getDrawState();
|
DrawState state = player.getDrawState();
|
||||||
if (state == DrawState_Spell || state == DrawState_Nothing)
|
if (state == DrawState_Spell || state == DrawState_Nothing)
|
||||||
{
|
{
|
||||||
@ -124,7 +127,6 @@ namespace MWInput
|
|||||||
player.setDrawState(DrawState_Nothing);
|
player.setDrawState(DrawState_Nothing);
|
||||||
std::cout << "Player does not have any kind of attack ready now.\n";
|
std::cout << "Player does not have any kind of attack ready now.\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void screenshot()
|
void screenshot()
|
||||||
@ -184,11 +186,13 @@ namespace MWInput
|
|||||||
|
|
||||||
void toggleAutoMove()
|
void toggleAutoMove()
|
||||||
{
|
{
|
||||||
|
if (windows.isGuiMode()) return;
|
||||||
player.setAutoMove (!player.getAutoMove());
|
player.setAutoMove (!player.getAutoMove());
|
||||||
}
|
}
|
||||||
|
|
||||||
void toggleWalking()
|
void toggleWalking()
|
||||||
{
|
{
|
||||||
|
if (windows.isGuiMode()) return;
|
||||||
player.toggleRunning();
|
player.toggleRunning();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user