794 {
796 {
797 handler.Select(handler == selectedHandler, selectedHandler);
798 }
799
801 ScriptConsoleWeatherTab weatherTab;
802 bool isCameraTab =
Class.
CastTo(cameraTab, selectedHandler);
803 bool isWeatherTab =
Class.
CastTo(weatherTab, selectedHandler);
804
805 if (isCameraTab || isWeatherTab)
806 {
807
809 if (isCameraTab)
810 g_Game.GetMission().RemoveActiveInputExcludes({
"movement"},
true);
811 }
812 else
813 {
814
816 g_Game.GetMission().AddActiveInputExcludes({
"movement"});
817 }
818
821 }
PluginConfigDebugProfile m_ConfigDebugProfile
ref map< int, ref ScriptConsoleTabBase > m_TabHandlersByID
void ShowMenuBackground(bool state)
ScriptConsoleTabBase m_SelectedHandler
Super root of all classes in Enforce script.
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.