Пример #1
0
    public override void a(object A_0)
    {
        HudFixedLayout layout = A_0 as HudFixedLayout;

        if (layout != null)
        {
            int y = 4;
            this.d = new HudStaticText();
            layout.AddControl(this.d, new Rectangle(4, y, 0x124, 0x10));
            this.d.set_Text(this.a.k());
            y += 20;
            this.c.Clear();
            this.b = new HudCombo(layout.get_Group());
            layout.AddControl(this.b, new Rectangle(4, y, 150, 0x10));
            foreach (int num2 in cl.GetTypeIDs <fl>())
            {
                this.c.Add(num2);
                fl fl = cl.Create <fl>(num2);
                this.b.AddItem(fl.g(), null);
                if (fl.f() == this.a.f())
                {
                    this.b.set_Current(this.b.get_Count() - 1);
                }
            }
            this.b.add_Change(new EventHandler(this.a));
            HudButton button = new HudButton();
            layout.AddControl(button, new Rectangle(0x9e, y, 100, 0x10));
            button.set_Text("Edit");
            button.add_Hit(new EventHandler(this.c));
        }
    }
Пример #2
0
        public void a(object A_0)
        {
            HudFixedLayout layout = A_0 as HudFixedLayout;

            if (layout != null)
            {
                this.c = new HudList();
                layout.AddControl(this.c, new Rectangle(0, 0, 300, 0x146));
                this.c.AddColumn(typeof(HudPictureBox), 0x10, "clx");
                this.c.AddColumn(typeof(HudStaticText), 0x270f, "cln");
                this.a();
                this.c.add_Click(new HudList.delClickedControl(this, (IntPtr)this.a));
                this.g.Clear();
                this.f = new HudCombo(layout.get_Group());
                layout.AddControl(this.f, new Rectangle(4, 330, 150, 0x10));
                foreach (int num in cl.GetTypeIDs <T>())
                {
                    this.g.Add(num);
                    this.f.AddItem(cl.Create <T>(num).g(), null);
                }
                HudButton button = new HudButton();
                layout.AddControl(button, new Rectangle(0x9e, 330, 100, 0x10));
                button.set_Text("Add...");
                button.add_Hit(new EventHandler(this.b));
            }
        }
Пример #3
0
    public void a(object A_0)
    {
        HudFixedLayout layout = A_0 as HudFixedLayout;

        if (layout != null)
        {
            this.c = new HudCombo(layout.get_Group());
            layout.AddControl(this.c, new Rectangle(4, 0xb7, 0x94, 0x10));
            this.c.add_Change(new EventHandler(this.d));
            HudButton button = new HudButton();
            layout.AddControl(button, new Rectangle(0x9c, 0xb7, 0x94, 0x10));
            button.set_Text("New State...");
            button.add_Hit(new EventHandler(this.b));
            this.d = new HudCombo(layout.get_Group());
            layout.AddControl(this.d, new Rectangle(4, 0xc7, 0x94, 0x10));
            this.d.add_Change(new EventHandler(this.c));
            button = new HudButton();
            layout.AddControl(button, new Rectangle(0x9c, 0xc7, 0x94, 0x10));
            button.set_Text("New State...");
            button.add_Hit(new EventHandler(this.a));
            this.a();
        }
    }