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; }
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)); } }
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)); } } }
private void a(object A_0, EventArgs A_1) { if ((this.b.get_Current() >= 0) && (this.b.get_Current() < this.c.Count)) { int v = this.c[this.b.get_Current()]; fl fl = cl.Create <fl>(v); fl.a(this); this.a = fl; this.d.set_Text(this.a.k()); base.l(); } }
public override void a(k A_0) { a0 a = A_0.c() as a0; if (((a != null) && (a.a() == 2)) && (a.c() == 1)) { v v = a.d()[0]; this.a = cl.a((c3)k.e(v[0])); this.a.h(v[1]); this.a.a(this); } }
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); }
private void c(object A_0, EventArgs A_1) { if (this.e != null) { this.e.Dispose(); } fl a = this.a; this.e = new HudView("Edit " + b6.a((b1)a), 300, 0x176, new ACImage(Color.Red)); this.e.set_UserMinimizable(false); this.e.set_UserGhostable(false); this.e.LoadUserSettings(); this.e.set_Visible(true); this.f = new HudFixedLayout(); this.e.get_Controls().set_HeadControl(this.f); HudButton button = new HudButton(); this.f.AddControl(button, new Rectangle(4, 0x162, 150, 0x10)); button.set_Text("Close"); button.add_Hit(new EventHandler(this.b)); this.g = new HudFixedLayout(); this.f.AddControl(this.g, new Rectangle(0, 0, 300, 350)); a.j(this.g); }
private static void a(c3 A_0, fl A_1) { a[A_0] = A_1; }
public d8(fl A_0, b3 A_1, string A_2) { this.a = A_0; this.b = A_1; this.c = A_2; }