示例#1
0
        private void RenderBox_RightMouseDown(object sender, MouseEventArgs e)
        {
            m_GameEngine.OnRightMouseDown((uint)e.X, (uint)e.Y);

            if (this.m_mode == MODE.DRAWTEX)
            {
                string temp;
                m_GameEngine.GetBrushAttr("Tex0", out temp);
                this.ComboBox_Tex1.Enabled = false;
                this.ComboBox_Tex1.Text    = temp;
                this.ComboBox_Tex1.Enabled = true;

                m_GameEngine.GetBrushAttr("Tex1", out temp);
                this.ComboBox_Tex2.Enabled = false;
                this.ComboBox_Tex2.Text    = temp;
                this.ComboBox_Tex2.Enabled = true;

                m_GameEngine.GetBrushAttr("Tex2", out temp);
                this.ComboBox_Tex3.Enabled = false;
                this.ComboBox_Tex3.Text    = temp;
                this.ComboBox_Tex3.Enabled = true;

                m_GameEngine.GetBrushAttr("Tex3", out temp);
                this.ComboBox_Tex4.Enabled = false;
                this.ComboBox_Tex4.Text    = temp;
                this.ComboBox_Tex4.Enabled = true;

                m_GameEngine.GetBrushAttr("Tex4", out temp);
                this.ComboBox_Tex5.Enabled = false;
                this.ComboBox_Tex5.Text    = temp;
                this.ComboBox_Tex5.Enabled = true;

                m_GameEngine.GetBrushAttr("Tex5", out temp);
                this.ComboBox_Tex6.Enabled = false;
                this.ComboBox_Tex6.Text    = temp;
                this.ComboBox_Tex6.Enabled = true;

                m_GameEngine.GetBrushAttr("Tex6", out temp);
                this.ComboBox_Tex7.Enabled = false;
                this.ComboBox_Tex7.Text    = temp;
                this.ComboBox_Tex7.Enabled = true;

                m_GameEngine.GetBrushAttr("Tex7", out temp);
                this.ComboBox_Tex8.Enabled = false;
                this.ComboBox_Tex8.Text    = temp;
                this.ComboBox_Tex8.Enabled = true;

                this.Panel_Textures.Show();
                this.Panel_Textures.BringToFront();
            }
        }