Example #1
0
        public static bool createCanvas(string windowTitle)
        {
            if (omni.bGlobal["$isDedicated"])
                {
                omni.console.Call_Classname("GFXInit", "createNullDevice");
                return true;
                }
            // Create the Canvas

            GuiCanvas canvas = new ObjectCreator("GuiCanvas", "Canvas", typeof (canvas)).Create();

            if (canvas.isObject())
                canvas.setWindowTitle(omni.Util.getEngineName() + " - " + omni.sGlobal["$appName"]);
            return true;
        }