Beispiel #1
0
        /// <summary>
        ///
        /// </summary>
        public FormEditor()
        {
            Instanse = this;
            InitializeComponent();

            windowSize           = new Size(Config.ScreenWidth * (int)Config.CharWidth * Config.RendererSize.X / 2, Config.ScreenHeight * Config.RendererSize.Y);
            panelGameWindow.Size = windowSize;
            panelGame.Size       = windowSize;
            if (EditorMode)
            {
                this.Size = new Size(windowSize.Width + 500, windowSize.Height + 200);
            }
            else
            {
                menuStrip1.Visible   = false;
                statusStrip1.Visible = false;
                panelCom.Visible     = false;
                panelObj.Visible     = false;
                panelMsg.Visible     = false;
                this.Size            = new Size(windowSize.Width + 20, windowSize.Height + 50);
            }
        }
Beispiel #2
0
 /// <summary>
 /// 初始化
 /// </summary>
 public override void Start()
 {
     mainForm = FormEditor.Instanse;
 }