예제 #1
0
        public CToolBarCheckbox AddCheckbox(string title, CToggleButtonDelegate buttonDelegate)
        {
            CToolBarCheckbox button = new CToolBarCheckbox(title, buttonDelegate);

            AddSubview(button);
            return(button);
        }
예제 #2
0
        public CToolBarToggle AddToggle(string title, CToggleButtonDelegate buttonDelegate)
        {
            CToolBarToggle button = new CToolBarToggle(title, buttonDelegate);

            AddSubview(button);
            return(button);
        }
예제 #3
0
 public CToggleButton(string title = "", CToggleButtonDelegate buttonDelegate = null)
     : base(title)
 {
     ButtonDelegate = buttonDelegate;
 }
예제 #4
0
 public CToolBarCheckbox(string title, CToggleButtonDelegate buttonDelegate)
     : base(title, buttonDelegate)
 {
     Width = CSharedStyles.MeasureWidth(GUI.skin.toggle, title);
 }
예제 #5
0
 public CToolBarToggle(string title, CToggleButtonDelegate buttonDelegate)
     : base(title, buttonDelegate)
 {
     Width = CSharedStyles.MeasureWidth(CSharedStyles.toolbarButton, title);
 }