Пример #1
0
        public void PlayGuiOnWake(string thisobj)
        {
            // Turn off any shell sounds...
            // sfxStop( ... );
            bGlobal["$enableDirectInput"] = true;
            Util._activateDirectInput();

            coGuiCanvas canvas = "canvas";

            // Message hud dialog
            coGuiControl MainChatHud = "MainChatHud";

            if (MainChatHud.isObject())
            {
                coGuiMessageVectorCtrl chatHud = "chatHud";
                canvas.pushDialog(MainChatHud);
                chatHud.attach("HudMessageVector");
            }

            // just update the action map here
            (( coActionMap)"moveMap").push();


            // hack city - these controls are floating around and need to be clamped
            if (console.isFunction("refreshCenterTextCtrl"))
            {
                Util._schedule("0", "0", "refreshCenterTextCtrl");
            }
            if (console.isFunction("refreshBottomTextCtrl"))
            {
                Util._schedule("0", "0", "refreshBottomTextCtrl");
            }
        }
Пример #2
0
 public void GuiCanvaspushDialog(coGuiCanvas thisobj, string ctrl, string layer, string center)
 {
     thisobj.pushDialog(ctrl, layer, center);
     GuiCanvascheckCursor(thisobj);
 }