Example #1
0
        public override void OnWake()
        {
            // Turn off any shell sounds...
            // sfxStop( ... );

            Global.SetConsoleBool("enableDirectInput", true);
            Global.ActivateDirectInput();

            // Message hud dialog
            if (Global.IsObject("MainChatHud"))
            {
                Core.SimObjects.UI.Canvas.PushDialog("MainChatHud");
            }

            // just update the action map here
            Sim.FindObjectByName <ActionMap>("moveMap").Push();

            // hack city - these controls are floating around and need to be clamped
            if (Global.IsFunction("refreshCenterTextCtrl"))
            {
                Global.Schedule("0", "0", "refreshCenterTextCtrl");
            }
            if (Global.IsFunction("refreshBottomTextCtrl"))
            {
                Global.Schedule("0", "0", "refreshBottomTextCtrl");
            }
        }