示例#1
0
        private void InitializeForms()
        {
            // Editor forms
            monstersForm = new MonstersForm(this);
            monstersForm.ToggleButton = toggleMonsters;
            DockPanel = new DockPanel();
            DockPanel = dockPanel;

            Settings settings = Settings.Default;

            if (settings.VisualTheme == 0 || settings.VisualTheme == 1)
            {
                DockPanel.Theme = new VS2005Theme();
            }
            else if (settings.VisualTheme == 2)
            {
                //DockPanel.Theme = new VS2013BlueTheme();
            }

            dockPanel = DockPanel;
            monstersForm.Show(dockPanel, DockState.Document);
            spriteForm = new SpriteForm(this);
            spriteForm.ToggleButton = toggleSprite;
            spriteForm.Show(dockPanel, DockState.Document);
            battleScriptsForm = new BattleScriptForm(this);
            battleScriptsForm.ToggleButton = toggleBattleScripts;
            battleScriptsForm.Show(monstersForm.Pane, DockAlignment.Right, 0.60);

            // Hacking tools
            hackingToolsWindow = new HackingTools(new UpdateFunction(monstersForm.LoadProperties), num);
        }
示例#2
0
 // Constructor
 public CommandEdit(BattleScript[] battleScripts, int index, byte[] oldScript, BattleScriptForm form, int selectedIndex)
 {
     this.index         = index;
     this.oldScript     = oldScript;
     this.battleScripts = battleScripts;
     this.selectedIndex = selectedIndex;
     this.form          = form;
 }