Changed: exposed the toggle_fly to final clients

fix-media-player
Ulukyn 5 years ago
parent c2e879ebcc
commit debb6b7d0c

@ -108,6 +108,23 @@ class CAHToggleARKPACSBorders : public IActionHandler
}; };
REGISTER_ACTION_HANDLER (CAHToggleARKPACSBorders, "ark_pacs_borders"); REGISTER_ACTION_HANDLER (CAHToggleARKPACSBorders, "ark_pacs_borders");
// ***************************************************************************
class CAHToggleFly : public IActionHandler
{
virtual void execute (CCtrlBase * /* pCaller */, const string &/* Params */)
{
// Change to AI Mode.
if(UserControls.mode() != CUserControls::AIMode)
UserControls.mode(CUserControls::AIMode);
// Leave the AI Mode.
else
UserEntity->viewMode(UserEntity->viewMode());
}
};
// ***************************************************************************
REGISTER_ACTION_HANDLER (CAHToggleFly, "toggle_fly");
#if !FINAL_VERSION #if !FINAL_VERSION
// ------------------------------------------------------------------------------------------------ // ------------------------------------------------------------------------------------------------
class CAHProfile : public IActionHandler class CAHProfile : public IActionHandler
@ -266,22 +283,6 @@ class CAHSwitchConsoleDisplay : public IActionHandler
// *************************************************************************** // ***************************************************************************
REGISTER_ACTION_HANDLER (CAHSwitchConsoleDisplay, "switch_console_display"); REGISTER_ACTION_HANDLER (CAHSwitchConsoleDisplay, "switch_console_display");
// ***************************************************************************
class CAHToggleFly : public IActionHandler
{
virtual void execute (CCtrlBase * /* pCaller */, const string &/* Params */)
{
// Change to AI Mode.
if(UserControls.mode() != CUserControls::AIMode)
UserControls.mode(CUserControls::AIMode);
// Leave the AI Mode.
else
UserEntity->viewMode(UserEntity->viewMode());
}
};
// ***************************************************************************
REGISTER_ACTION_HANDLER (CAHToggleFly, "toggle_fly");
// *************************************************************************** // ***************************************************************************
class CAHReloadLandscapeIg : public IActionHandler class CAHReloadLandscapeIg : public IActionHandler
{ {

Loading…
Cancel
Save