Exemple #1
0
 private void ShowTabListInFrame(UndoneWorkKind undoneWork, FrameKind kind, FrameFunction function, bool OKEnabled, bool CancelEnabled, bool showCheckBox, bool multiselecting, GameObjectList gameObjectList, GameObjectList selectedObjectList, string title, string tabName)
 {
     this.GameFramePlugin.Kind     = kind;
     this.GameFramePlugin.Function = function;
     this.TabListPlugin.InitialValues(gameObjectList, selectedObjectList, this.screen.MouseState.ScrollWheelValue, title);
     this.TabListPlugin.SetListKindByName(kind.ToString(), showCheckBox, multiselecting);
     this.TabListPlugin.SetSelectedTab(tabName);
     this.GameFramePlugin.SetFrameContent(this.TabListPlugin.TabList, this.screen.viewportSize);
     this.GameFramePlugin.OKButtonEnabled     = OKEnabled;
     this.GameFramePlugin.CancelButtonEnabled = CancelEnabled;
     this.GameFramePlugin.IsShowing           = true;
 }
        public void ShowBianduiLiebiao(UndoneWorkKind undoneWork, FrameKind kind, FrameFunction function, bool OKEnabled, bool CancelEnabled, bool showCheckBox, bool multiselecting, GameObjectList gameObjectList, GameObjectList selectedObjectList, string title, string tabName,int bingyi)
        {
            //if ((gameObjectList != null) && (gameObjectList.Count != 0))
            {
                this.Plugins.BianduiLiebiao.Kind = kind;
                this.Plugins.BianduiLiebiao.Function = function;
                this.Plugins.BianduiLiebiao.ShezhiBingyi(bingyi);
                this.Plugins.BianduiLiebiao.InitialValues(gameObjectList, selectedObjectList, this.mouseState.ScrollWheelValue, title);
                this.Plugins.BianduiLiebiao.SetListKindByName(kind.ToString(), showCheckBox, multiselecting);
                this.Plugins.BianduiLiebiao.SetSelectedTab(tabName);

                //this.Plugins.GameFramePlugin.SetFrameyoucelanContent(this.Plugins.youcelanPlugin.TabList, base.viewportSize);  //viewportSize  游戏内容窗口的大小
                this.Plugins.BianduiLiebiao.SetyoucelanContent(base.viewportSize);  //viewportSize  游戏内容窗口的大小
                
                //this.Plugins.GameFramePlugin.shiyoucelan = true;
                //this.Plugins.GameFramePlugin.OKButtonEnabled = OKEnabled;
                //this.Plugins.GameFramePlugin.CancelButtonEnabled = CancelEnabled;
                //this.Plugins.GameFramePlugin.IsShowing = true;
                //this.Plugins.youcelanPlugin.IsShowing = true;


                this.Plugins.BianduiLiebiao.IsShowing = true;
                this.Plugins.youcelanPlugin.IsShowing = false ;

                this.Plugins.ContextMenuPlugin.ShezhiBianduiLiebiaoXinxi(this.Plugins.BianduiLiebiao.IsShowing, this.Plugins.BianduiLiebiao.Weizhi);

            }
        }
        public void SetTabListInFrame(UndoneWorkKind undoneWork, FrameKind kind, FrameFunction function, bool OKEnabled, bool CancelEnabled, bool showCheckBox, bool multiselecting, GameObjectList gameObjectList, GameObjectList selectedObjectList, string title, string tabName)
        {
            if ((gameObjectList != null) && (gameObjectList.Count != 0))
            {
                this.Plugins.GameFramePlugin.Kind = kind;
                this.Plugins.GameFramePlugin.Function = function;
                this.Plugins.TabListPlugin.InitialValues(gameObjectList, selectedObjectList, this.mouseState.ScrollWheelValue, title);
                this.Plugins.TabListPlugin.SetListKindByName(kind.ToString(), showCheckBox, multiselecting);
                this.Plugins.TabListPlugin.SetSelectedTab(tabName);
                this.Plugins.GameFramePlugin.SetFrameContent(this.Plugins.TabListPlugin.TabList, base.viewportSize);

                this.Plugins.GameFramePlugin.OKButtonEnabled = OKEnabled;
                this.Plugins.GameFramePlugin.CancelButtonEnabled = CancelEnabled;
                //this.Plugins.GameFramePlugin.IsShowing = true;
            }
        }
 public UndoneWorkItem(UndoneWorkKind kind, Enum subKind)
 {
     this.Kind    = kind;
     this.SubKind = subKind;
 }
 public UndoneWorkItem(UndoneWorkKind kind, Enum subKind)
 {
     this.Kind = kind;
     this.SubKind = subKind;
 }