Exemple #1
0
        private void LogicDisplayParamsChanged(object sender, EventArgs e) // 逻辑显示参数
        {
            if ((sender as DevComponents.DotNetBar.Controls.CheckBoxX) == this.checkShowLogicCell)
            {
                this.checkShowTerrainCell.Enabled = this.checkShowItemCell.Enabled = checkShowSelectedCell.Enabled = this.checkShowLogicCell.Checked;
            }

            int showcell     = this.checkShowLogicCell.Checked ? 1 : 0;
            int showterrain  = this.checkShowTerrainCell.Checked ? 1 : 0;
            int showitem     = this.checkShowItemCell.Checked ? 1 : 0;
            int showselected = this.checkShowSelectedCell.Checked ? 1 : 0;

            SceneSceneEditor.GetSetLogicDisplayParams(0, ref showcell, ref showterrain, ref showitem, ref showselected);
        }