コード例 #1
0
 public void CreateCheckBox(string key, EventHandler ev)
 {
     CheckBox cb = new CheckBox(manager);
     cb.Init();
     cb.Parent = CheckBoxes.panel;
     cb.Text = key;
     cb.Top = HeightCounter4;
     cb.Width = 100;
     cb.Click += ev;
     HeightCounter4 += cb.Height;
 }
コード例 #2
0
        public Sidebar(UserInterface ui)
        {
            this.game = ui.game;
            //this.room = ui.game.room;
            this.ui = ui;
            NotImplemented = delegate {
                PopUp.Toast("Not Implemented. Take a hike.");
                //throw new NotImplementedException();
            };
            manager = game.Manager;

            manager.SetSkin("Green");
        }
コード例 #3
0
 public void CreateCheckBox(string key, bool isChecked, EventHandler ev)
 {
     CheckBox cb = new CheckBox(manager);
     cb.Init();
     cb.Parent = window;
     cb.Text = key;
     cb.Top = HeightCounter;
     cb.Left = LeftPadding;
     cb.Width = 180;
     cb.Click += ev;
     cb.Checked = isChecked;
     HeightCounter += cb.Height;
 }
コード例 #4
0
 public opt(OptType t, object c, TomShane.Neoforce.Controls.EventHandler e = null)
 {
     if (c.GetType() != tc[t]) throw new System.ArgumentException("Content does not match option type");
     type = t; content = c; action = e ?? action;
 }