コード例 #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;
    }
コード例 #2
0
ファイル: h.cs プロジェクト: obfuscators-2019/VirindiTank
    private void a()
    {
        bf bf = new bf();

        bf.b(Path.Combine(PluginCore.ci, this.j()));
        this.c.Clear();
        if (!bf.ContainsKey("CondAct"))
        {
            a5.a(eChatType.Errors, "Meta file load: DB format invalid.");
            this.c.Clear();
        }
        else
        {
            a0 a = bf["CondAct"];
            for (int i = 0; i < a.c(); i++)
            {
                fl fl = cl.a((c3)k.e(a.d()[i][0]));
                b3 b  = cl.a((ep)k.e(a.d()[i][1]));
                if ((b == null) || (fl == null))
                {
                    a5.a(eChatType.Errors, "Meta file load: unsupported cond/act type.");
                    this.c.Clear();
                    return;
                }
                fl.h(a.d()[i][2]);
                b.h(a.d()[i][3]);
                string key = k.b(a.d()[i][4]);
                if (!this.c.ContainsKey(key))
                {
                    this.c[key] = new List <d8>();
                }
                this.c[key].Add(new d8(fl, b, key));
            }
        }
    }
コード例 #3
0
    private void a(d8 A_0)
    {
        fl a = A_0.a;
        b3 b = A_0.b;

        this.g = A_0;
        this.e = true;
        this.f = new HudView("Virindi Tank Edit Meta Rule", 0x264, 0x1a2, new ACImage());
        this.f.set_UserMinimizable(false);
        this.f.set_UserGhostable(false);
        this.f.LoadUserSettings();
        this.h = new HudFixedLayout();
        this.f.get_Controls().set_HeadControl(this.h);
        HudButton button = new HudButton();

        this.h.AddControl(button, new Rectangle(4, 0x18e, 0x40, 0x10));
        button.set_Text("Close");
        this.l = new HudCombo(this.f.get_Controls());
        this.m = new HudCombo(this.f.get_Controls());
        this.h.AddControl(this.l, new Rectangle(4, 4, 300, 0x10));
        this.h.AddControl(this.m, new Rectangle(0x134, 4, 300, 0x10));
        this.b();
        this.k = new HudCombo(this.f.get_Controls());
        this.h.AddControl(this.k, new Rectangle(4, 0x18, 0x94, 0x10));
        this.k.add_Change(new EventHandler(this.e));
        this.a();
        HudButton button2 = new HudButton();

        this.h.AddControl(button2, new Rectangle(0x9c, 0x18, 0x94, 0x10));
        button2.set_Text("New State...");
        button2.add_Hit(new EventHandler(this.d));
        this.h.AddControl(this.d(), new Rectangle(3, 0x2b, 1, 0x161));
        this.h.AddControl(this.c(), new Rectangle(4, 0x2b, 0x12d, 1));
        this.h.AddControl(this.c(), new Rectangle(4, 0x18b, 0x12d, 1));
        this.h.AddControl(this.d(), new Rectangle(0x131, 0x2b, 1, 0x161));
        this.h.AddControl(this.d(), new Rectangle(0x261, 0x2b, 1, 0x161));
        this.h.AddControl(this.d(), new Rectangle(0x133, 0x2b, 1, 0x161));
        this.h.AddControl(this.c(), new Rectangle(0x134, 0x2b, 0x12d, 1));
        this.h.AddControl(this.c(), new Rectangle(0x134, 0x18b, 0x12d, 1));
        this.i = new HudFixedLayout();
        this.j = new HudFixedLayout();
        this.h.AddControl(this.i, new Rectangle(4, 0x2c, 300, 350));
        this.h.AddControl(this.j, new Rectangle(0x134, 0x2c, 300, 350));
        a.j(this.i);
        b.j(this.j);
        button.add_Hit(new EventHandler(this.a));
        this.l.add_Change(new EventHandler(this.c));
        this.m.add_Change(new EventHandler(this.b));
        this.f.set_Visible(true);
    }
コード例 #4
0
 private static void a(ep A_0, b3 A_1)
 {
     b[A_0] = A_1;
 }
コード例 #5
0
 public d8(fl A_0, b3 A_1, string A_2)
 {
     this.a = A_0;
     this.b = A_1;
     this.c = A_2;
 }
コード例 #6
0
 public AgentTypeDescriptor(b3 instance)
 {
     _internal = instance;
 }