Example #1
0
        static void Exec(bool gui, string input, string output, string export, float magnification)
        {
            Core.Initialize();

            if (Core.Language == Language.Japanese)
            {
                Resources.LoadLanguageFile("resources/lang_ja.json");
            }
            if (Core.Language == Language.English)
            {
                Resources.LoadLanguageFile("resources/lang_en.json");
            }

            if (!GUI.Manager.Initialize(960, 540))
            {
                return;
            }

            Images.Load(GUI.Manager.Native);

            var mainMenu = new GUI.Menu.MainMenu();
            var menu     = new GUI.Menu.Menu();

            menu.Label = "メニューバーテスト";
            mainMenu.Controls.Add(menu);

            GUI.Manager.Controls.Add(mainMenu);
            GUI.Manager.Controls.Add(new DebugMenu());

            GUI.Manager.Controls.Add(new TestWindow());

            while (GUI.Manager.NativeManager.DoEvents())
            {
                GUI.Manager.Update();
            }

            Images.Unload();

            GUI.Manager.Terminate();

            Core.Dispose();
        }
Example #2
0
        protected override void OnCreateMainMenu()
        {
            var mainMenu = new GUI.Menu.MainMenu();

            GUI.Manager.AddControl(mainMenu);
        }