示例#1
0
 public void m0001f6(c000068 p0, c00010d p1)
 {
     if (this.f000059 != null)
     {
         this.f000059(p0);
     }
     this.m000030(p1);
 }
示例#2
0
 internal c00010e(c000068 p0, c00007f p1, Type p2, string p3, bool p4, bool p5, MemberTypes p6, bool p7)
 {
     this.f000028 = p0;
     this.f000018 = p1;
     this.f00000d = p2;
     this.f000006 = p3;
     this.f00000a = p4;
     this.f000056 = p5;
     this.f000189 = p6;
     this.f0000a0 = p7;
 }
示例#3
0
 public override void m0000a5(c000068 p0)
 {
     base.m0000a5(p0);
     foreach (c000112 c in base.f00005b)
     {
         if (((c00006b) c.f00000e).Contains(p0))
         {
             ((c00006b) c.f00000e).Remove(p0);
         }
     }
 }
示例#4
0
 public static void m0000a8(c000068 p0)
 {
     c00006a ca = p0 as c00006a;
     c000148 callingWindow = p0.m0000bd() as c000148;
     callingWindow.m0000c0(false);
     if (callingWindow.f000204 != null)
     {
         if (callingWindow.f0008a6 != null)
         {
             callingWindow.f000204(callingWindow.f0008a6);
         }
         else
         {
             callingWindow.f000204(callingWindow);
         }
     }
     c000072.m0000bf(null);
 }
示例#5
0
 public static void m0000a2(Texture2D p0, c000069 p1)
 {
     Exception exception;
     try
     {
         f000091 = new ReadOnlyCollection<c000068>(f000090);
         f000031 = 2f;
         f000033 = 1f;
         f00000a = true;
         f000058 = new SpriteBatch(c000074.GetGraphicsDevice());
         f000098 = new VertexDeclaration(Renderer.m0000d4(), VertexPositionColorTexture.VertexElements);
         f00005b = new List<c000069>();
         f00005b.Add(p1);
         f00002b = new c00006b();
         f00008f = new ReadOnlyCollection<c000068>(f00002b);
         f000092 = new LinkedList<c000068>();
         f000052 = new c000068(m00006b());
         f000052.m000375(1f);
         f000052.m000376(1f);
         f000052.m0000c0(true);
     }
     catch (Exception exception1)
     {
         exception = exception1;
         MessageBox.Show("Error setting GuiManager engine object references");
     }
     try
     {
         f000099 = p0;
         m000031();
     }
     catch (Exception exception2)
     {
         MessageBox.Show("Error setting GuiManager textures.  If you are seeing this, one reason may be that you do not have the  correct Managed DirectX files on your computer.  To download them,  go to www.flatredball.com, click on Resources on the top bar  and click on the \"DirectX Web Installer\" link under FlatRedBall  Prerequisites.  If you have already done this and your problem is not  solved, please visit the forums on www.flatredball.com and post about your  problem.\n\nAdditional Information:\n" + exception2.ToString());
     }
     try
     {
         f000096 = new List<struct01d4>();
         f000094 = new List<VertexBuffer>();
         m0000af();
         f000097[0] = 3;
         f000097[1] = 0;
         f000097[2] = 1;
         f000097[3] = 3;
         f000097[4] = 1;
         f000097[5] = 2;
         f000093 = new NumberFormatInfo();
         f000056 = true;
         f00009a = new List<string>();
     }
     catch (Exception exception3)
     {
         exception = exception3;
         MessageBox.Show("Error wrapping up GuiManager creation");
     }
     m0000b2();
 }
示例#6
0
 private void m0003c4(c000068 p0)
 {
     this.m0002d6(this.f000017.m0000f0());
 }
示例#7
0
 public static void m000097(c000068 p0)
 {
     if (p0 == null)
     {
         throw new ArgumentException("Argument Window can't be null");
     }
     f00002b.Add(p0);
 }
示例#8
0
 public static void m0000b5(c000068 p0, bool p1)
 {
     if (f00002b.Contains(p0))
     {
         f00002b.Remove(p0);
     }
     else if (f000090.Contains(p0))
     {
         p0.m0000c0(false);
         f000090.Remove(p0);
     }
     else if (f000092.Contains(p0))
     {
         f000092.Remove(p0);
     }
     p0.m0002da(p1);
     if (c000072.m0000be() == p0)
     {
         c000072.m0000bf(null);
     }
 }
示例#9
0
 private void m0003ff(c000068 p0)
 {
     p0.m0000bd().m0000b1();
 }
示例#10
0
 public static void m0000a7(c000068 p0)
 {
     if (f00002b.Contains(p0))
     {
         f00002b.Remove(p0);
         f00002b.Add(p0);
     }
 }
示例#11
0
 public static void m0000b3(c000068 p0)
 {
     m0000b4(p0.m0000bd());
 }
示例#12
0
 public void m0000a6(c000068 p0)
 {
     this.f000028 = p0;
     if ((this.m0000bd() != null) && (this.f00002c != null))
     {
         this.f00002c.m00033f(this.f000028.f00002c, true);
     }
 }
示例#13
0
 public void m0000a7(c000068 p0)
 {
     this.f000090.Add(p0);
     p0.f000052 = this;
 }
示例#14
0
 public virtual void m000097(c000068 p0)
 {
     this.f00002b.Add(p0);
     p0.m0000a6(this);
 }
示例#15
0
 public virtual void m0000a5(c000068 p0)
 {
     if (p0 != null)
     {
         if (this.f00002b.Contains(p0))
         {
             this.f00002b.Remove(p0);
         }
         if (this.f000090.Contains(p0))
         {
             p0.f000052 = null;
             this.f000090.Remove(p0);
         }
         if (p0.f00002c != null)
         {
             c000052.m00036f(p0.f00002c);
         }
     }
 }
示例#16
0
 private void m000402(c000068 p0)
 {
     this.f00005b.Clear();
     if (this.f000047.f00000e != null)
     {
         string str = this.f000047.f00000e as string;
         string str2 = c000091.m00011e(str);
         if (!(!string.IsNullOrEmpty(str2) || string.IsNullOrEmpty(str)))
         {
             this.f00005b.Add(str);
         }
         else
         {
             this.f00005b.Add(str2);
         }
         if (f00007a.ContainsKey(this.f00005b[0]))
         {
             this.m000080(f00007a[this.f00005b[0]]);
         }
         else
         {
             this.m000080(this.f000007);
         }
     }
 }
示例#17
0
 private void m000401(c000068 p0)
 {
     string str;
     if (this.m00008a().Count != 0)
     {
         str = c000091.m00011f(this.m00008a()[0]);
     }
     else
     {
         str = this.f000007;
     }
     foreach (string str2 in this.f00005b)
     {
         m00030d(str2, str);
     }
     c000074.m00007f(f000006);
 }
示例#18
0
 private void m000400(c000068 p0)
 {
     string path = m000093();
     if (!Directory.Exists(path))
     {
         Directory.CreateDirectory(path);
     }
     string str2 = c000091.m00011e(((c00011c) p0).m00008a()[0]);
     StreamWriter writer = null;
     try
     {
         writer = new StreamWriter(path + "recent" + str2 + ".txt", true);
         writer.WriteLine(c000091.m00012b(((c00011c) p0).m00008a()[0]));
     }
     catch
     {
     }
     finally
     {
         if (writer != null)
         {
             writer.Close();
             writer.Dispose();
         }
     }
     StreamReader reader = null;
     List<string> list = new List<string>();
     try
     {
         string str3;
         reader = new StreamReader(path + "recent" + str2 + ".txt");
         while ((str3 = reader.ReadLine()) != null)
         {
             list.Add(str3);
         }
     }
     catch
     {
     }
     finally
     {
         if (reader != null)
         {
             reader.Close();
         }
     }
     if (list.Count > f00000f)
     {
         while (list.Count > f00000f)
         {
             list.RemoveAt(0);
         }
         try
         {
             writer = new StreamWriter(path + "recent" + str2 + ".txt");
             foreach (string str4 in list)
             {
                 writer.WriteLine(str4);
             }
         }
         catch
         {
         }
         finally
         {
             if (writer != null)
             {
                 writer.Close();
             }
         }
     }
 }
示例#19
0
 public static void m0000a5(c000068 p0)
 {
     f000090.Add(p0);
 }
示例#20
0
 private void m0000a8(c000068 p0)
 {
     c000112 c = this.m0002c7();
     if (c != null)
     {
         if (c != null)
         {
             float num = (((base.f0000a8 - this.m00008e()) + 1.2f) + (c.m00000f() * 0.7f)) - 0.7f;
             float num2 = 0f;
             float num3 = 0f;
             if (!base.m000191())
             {
                 base.f000029.m00038a(out num3, out num2, base.m00014b());
             }
             else
             {
                 num2 = base.f000029.f000038.m000179() + base.f000029.f000035;
                 num3 = base.f000029.f000038.m000178() + base.f000029.f000033;
             }
             float num4 = num3 - num;
             int num5 = (int) (((double) num4) / 1.5);
             if (((num4 >= 0f) && (num5 < c.f00018a.Count)) && c.f00018a[num5].m000008())
             {
                 c.f00018a[num5].m00021e(c, this);
                 return;
             }
         }
         this.m0003d1(c, this.f000056 && (c000072.m000062().m00022a(Keys.LeftShift) || c000072.m000062().m00022a(Keys.RightShift)));
     }
 }
示例#21
0
 public static void m0000a6(c000068 p0)
 {
     f000092.AddLast(p0);
     if (f00002b.Contains(p0))
     {
         f00002b.Remove(p0);
     }
 }
示例#22
0
 private void m0000a8(c000068 p0)
 {
     Type type = this.f000026.f00000e as Type;
     object objectToAdd = Activator.CreateInstance(type);
     this.m00009d()(objectToAdd);
     this.m0000c0(false);
 }
示例#23
0
 public static void m0000a8(c000068 p0)
 {
     p0.m000143((m00009f().m000162() + m00006b().m000024()) + p0.m00008e());
     p0.m000254((m00009f().m000163() - m00006b().m000028()) + p0.m00008f());
 }
示例#24
0
 private void m0003fd(c000068 p0)
 {
     if (((!this.m000391() || (this.f00089d.m000196() == "")) && (this.f000019.f000078.Count != 0)) && (this.f000019.f00005b.IndexOf(this.f000019.f000078[0]) < this.f000019.f00005b.Count))
     {
         this.m0003c5(p0);
     }
     else if (this.f00089d.m00018f() && (this.f00089d.m000196() != ""))
     {
         m000104(this);
     }
 }
示例#25
0
 public static void m0000b4(c000068 p0)
 {
     m0000b5(p0, false);
 }
示例#26
0
 private void m0003c3(c000068 p0)
 {
     c000112 c = this.m0003df(base.f000029.f000038.m000179() + base.f000029.f000035);
     if (c != null)
     {
         if (c != null)
         {
             float num = (((base.f0000a8 - this.m00008e()) + 1.2f) + (c.m00000f() * 0.7f)) - 0.7f;
             float num2 = base.f000029.f000038.m000178() + base.f000029.f000033;
             float num3 = num2 - num;
             int num4 = (int) (((double) num3) / 1.5);
         }
         if ((((base.f000029.f00086d != this.f000017) && (this.f000078.Count != 0)) && ((this.f000017 == null) || !this.f000017.m000379().Contains(base.f000029.f00086d))) && (this.f000208 != null))
         {
             this.f000208(this);
         }
     }
 }
示例#27
0
 private void m0000b3(c000068 p0)
 {
     float num = 0f;
     float num2 = 0f;
     if (!base.m000191())
     {
         base.f000029.m00038a(out num2, out num, base.m00014b());
     }
     else
     {
         num = base.f000029.f000038.m000179() + base.f000029.f000035;
     }
     if (num > ((base.f0000a9 - base.f000033) + 1f))
     {
         int num4;
         this.f0000f2 = base.f000029.m000028();
         float num3 = (base.f0000a9 + base.f000033) - (this.m000151() - 1f);
         if ((num3 - num) < 0f)
         {
             num4 = -1;
         }
         else
         {
             num4 = this.m0000f1() + ((int) ((num3 - num) / this.m000150()));
         }
         if ((num4 < (this.m0000f1() + this.m0000f0())) && (num4 > -1))
         {
             c000070.f000017 = this.m0003d9(num4);
         }
     }
 }
示例#28
0
 private void m0003fe(c000068 p0)
 {
     if (this.m0003a9())
     {
         this.f000264.m000392(null, null);
         if (this.f000028 != null)
         {
             this.f000028.m000065(this.f000264.m000064());
         }
     }
     if (this.f00089d.m000196() != "")
     {
         m000104(p0.m0000bd() as c00011c);
     }
     else if ((this.f000019.m0002d7() != -1) && (this.f000019.m0002d7() < this.f00000b))
     {
         this.f000007 = this.f000007 + this.f000019.m00008a()[0];
         this.f000007 = this.f000007 + "/";
         this.m000080(this.f000007);
     }
     else
     {
         this.m0003af();
         base.m0000b1();
     }
 }
示例#29
0
 private void m0000b3(c000068 p0)
 {
     this.m0000c0(false);
 }
示例#30
0
 private void m0000b4(c000068 p0)
 {
     c000072.m0000bf(this);
     string str = null;
     if (this.f00000f != -1)
     {
         c000112 item = c000070.f000017;
         struct0171 reorderValues = new struct0171();
         reorderValues.f000017 = item;
         reorderValues.f000110 = item.f000017;
         if (item.f000017 == null)
         {
             reorderValues.f00000b = this.f00005b.IndexOf(item);
         }
         else
         {
             reorderValues.f00000b = item.f000017.f00005b.IndexOf(item);
         }
         reorderValues.f000111 = reorderValues.f000110;
         if (reorderValues.f000110 != null)
         {
             int index = reorderValues.f000110.f00005b.IndexOf(reorderValues.f000017);
             c000112 c2 = this.m0003d0(Math.Max(this.f00000f, 0));
             bool flag = false;
             if (c2 == null)
             {
                 if ((this.f00000f != 0) && (this.f00005b.Count != 0))
                 {
                     int num2 = this.f00000f;
                     while ((num2 > 0) && (c2 == null))
                     {
                         num2--;
                         c2 = this.m0003d0(Math.Max(num2, 0));
                         flag = true;
                     }
                 }
                 else
                 {
                     c2 = reorderValues.f000017;
                 }
             }
             bool flag2 = false;
             while (c2.m00000f() > item.m00000f())
             {
                 c2 = c2.f000017;
                 flag2 = true;
             }
             if ((c2.m00000f() < item.m00000f()) && (c2 != item.f000017))
             {
                 c000112 c3 = this.m0003d0(this.f00000f - 1);
                 if ((c3 != null) && c3.m000202(reorderValues.f000110))
                 {
                     this.f00000f = item.f000017.f00005b.Count - 1;
                 }
                 else
                 {
                     str = "Could not reorder list.  The new parent is not at the same depth.";
                 }
             }
             else if ((c2 != reorderValues.f000110) && (c2.f000017 != reorderValues.f000110))
             {
                 str = "Cannot move item to a different list.";
             }
             else
             {
                 int num3 = 0;
                 if (c2.f000017 != null)
                 {
                     num3 = c2.f000017.f00005b.IndexOf(c2);
                 }
                 if (flag2)
                 {
                     num3++;
                 }
                 if (!((num3 <= reorderValues.f00000b) || flag))
                 {
                     num3--;
                 }
                 this.f00000f = num3;
             }
             if (str == null)
             {
                 reorderValues.f000110.f00005b.Remove(reorderValues.f000017);
                 reorderValues.f00000f = this.f00000f;
                 reorderValues.f00000f = Math.Max(0, reorderValues.f00000f);
                 reorderValues.f00000f = Math.Min(reorderValues.f000110.f00005b.Count, reorderValues.f00000f);
                 reorderValues.f000110.f00005b.Insert(reorderValues.f00000f, reorderValues.f000017);
             }
         }
         else
         {
             reorderValues.f00000f = this.f00000f;
             using (List<c000112>.Enumerator enumerator = this.f00005b.GetEnumerator())
             {
             Label_0365:
                 if (enumerator.MoveNext())
                 {
                     c000112 current = enumerator.Current;
                     if (this.m0003da(current) < this.f00000f)
                     {
                         goto Label_0365;
                     }
                     reorderValues.f00000f = this.f00005b.IndexOf(current);
                 }
             }
             if (reorderValues.f00000f > reorderValues.f00000b)
             {
                 reorderValues.f00000f--;
                 reorderValues.f00000f = Math.Min(reorderValues.f00000f, this.f00005b.Count - 1);
             }
             this.f00005b.Remove(reorderValues.f000017);
             this.f00005b.Insert(reorderValues.f00000f, reorderValues.f000017);
         }
         if (str != null)
         {
             c000070.m0000a9(str, "Error reordering");
         }
         if ((this.f00088c != null) && ((reorderValues.f000110 != reorderValues.f000111) || (reorderValues.f00000b != reorderValues.f00000f)))
         {
             this.f00088c(reorderValues);
         }
     }
 }