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)); } }
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)); } }
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); }
public override void a(object A_0) { HudFixedLayout layout = A_0 as HudFixedLayout; if (layout != null) { this.b = new HudStaticText(); layout.AddControl(this.b, new Rectangle(4, 4, 0x124, 0x10)); this.b.set_Text(this.k()); HudButton button = new HudButton(); layout.AddControl(button, new Rectangle(4, 0x18, 200, 0x10)); button.set_Text("Set Current"); button.add_Hit(new EventHandler(this.a)); } }
public void a(object A_0) { HudFixedLayout layout = A_0 as HudFixedLayout; if (layout != null) { this.b = new HudCombo(layout.get_Group()); layout.AddControl(this.b, new Rectangle(4, 0xb7, 0x94, 0x10)); this.a(); this.b.add_Change(new EventHandler(this.b)); HudButton button = new HudButton(); layout.AddControl(button, new Rectangle(0x9c, 0xb7, 0x94, 0x10)); button.set_Text("New State..."); button.add_Hit(new EventHandler(this.a)); } }
private void a(object A_0, int A_1, int A_2) { if ((A_1 >= 0) && (A_1 < this.a.Count)) { switch (A_2) { case 0: this.a.RemoveAt(A_1); this.a(); [email protected](); if (this.h != null) { this.h.c(); } return; case 1: { if (this.b != null) { this.b.Dispose(); } T local = this.a[A_1]; this.b = new HudView("Edit " + MultipleBase <T> .a((b1)local), 300, 0x176, new ACImage(Color.Red)); this.b.set_UserMinimizable(false); this.b.set_UserGhostable(false); this.b.LoadUserSettings(); this.b.set_Visible(true); this.d = new HudFixedLayout(); this.b.get_Controls().set_HeadControl(this.d); HudButton button = new HudButton(); this.d.AddControl(button, new Rectangle(4, 0x162, 150, 0x10)); button.set_Text("Close"); button.add_Hit(new EventHandler(this.a)); this.e = new HudFixedLayout(); this.d.AddControl(this.e, new Rectangle(0, 0, 300, 350)); local.j(this.e); return; } } } }
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); }