Ejemplo n.º 1
0
    private void b()
    {
        this.d = true;
        int num  = 0;
        int num2 = 0;

        this.n.Clear();
        foreach (KeyValuePair <c3, fl> pair in cl.a)
        {
            fl fl = pair.Value;
            this.l.AddItem(fl.g(), fl.f());
            this.n.Add(fl.f());
            if (fl.f() == this.g.a.f())
            {
                num2 = num;
            }
            num++;
        }
        this.l.set_Current(num2);
        num = 0;
        this.o.Clear();
        foreach (KeyValuePair <ep, b3> pair2 in cl.b)
        {
            b3 b = pair2.Value;
            this.m.AddItem(b.g(), b.d());
            this.o.Add(b.d());
            if (b.d() == this.g.b.d())
            {
                num2 = num;
            }
            num++;
        }
        this.m.set_Current(num2);
        this.d = false;
    }
Ejemplo n.º 2
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));
        }
    }