コード例 #1
0
        public static void OpenGraphicsEditor()
        {
            GraphicsEditor ge = new GraphicsEditor();

            ge.StartPosition = FormStartPosition.CenterParent;
            ge.Owner         = ReubenController.MainWindow;

            if (ActiveEditor != null)
            {
                if (ActiveEditor is LevelEditor)
                {
                    LevelEditor le = (LevelEditor)ActiveEditor;
                    ge.ShowDialog(le.CurrentLevel.GraphicsBank, le.CurrentLevel.AnimationBank, le.CurrentLevel.Palette);
                }
                else
                {
                    WorldEditor we = (WorldEditor)ActiveEditor;
                    ge.ShowDialog(0x70, we.CurrentWorld.GraphicsBank, we.CurrentWorld.Palette);
                }
            }
            else
            {
                ge.ShowDialog();
            }
        }
コード例 #2
0
        public static void OpenGraphicsEditor()
        {
            GraphicsEditor ge = new GraphicsEditor();
            ge.StartPosition = FormStartPosition.CenterParent;
            ge.Owner = ReubenController.MainWindow;

            if (ActiveEditor != null)
            {
                if (ActiveEditor is LevelEditor)
                {
                    LevelEditor le = (LevelEditor)ActiveEditor;
                    ge.ShowDialog(le.CurrentLevel.GraphicsBank, le.CurrentLevel.AnimationBank, le.CurrentLevel.Palette);
                }
                else
                {
                    WorldEditor we = (WorldEditor)ActiveEditor;
                    ge.ShowDialog(0x70, we.CurrentWorld.GraphicsBank, we.CurrentWorld.Palette);
                }
            }
            else
            {
                ge.ShowDialog();
            }
        }