Beispiel #1
0
 public override void m000001()
 {
     base.m00007f("GameInfo");
     base.m000080("Image");
     base.m000001();
     Vector2 vector = new Vector2(c000037.m000022().X + 20f, 600f);
     bool flag = false;
     try
     {
         string path = @"..\CustomRes";
         string str2 = "";
         if (Directory.Exists(path))
         {
             if (File.Exists(path + @"\ResInfo.xml"))
             {
                 DataSet set = new DataSet();
                 set.ReadXml(path + @"\ResInfo.xml");
                 if (set.Tables[0].Columns.Contains("LoadPath"))
                 {
                     str2 = set.Tables[0].Rows[0]["LoadPath"].ToString();
                 }
                 if (set.Tables[0].Columns.Contains("LoadBarPos"))
                 {
                     string[] strArray = set.Tables[0].Rows[0]["LoadBarPos"].ToString().Split(new char[] { ',' });
                     int num = Convert.ToInt32(strArray[0]);
                     int num2 = Convert.ToInt32(strArray[1]);
                     if ((num > 0) && (num2 > 0))
                     {
                         vector = new Vector2((float) num, (float) num2);
                     }
                 }
             }
             if ((str2 == null) || (str2.Length == 0))
             {
                 foreach (string str4 in Directory.GetFiles(path))
                 {
                     switch (Path.GetExtension(str4).ToLower())
                     {
                         case ".png":
                         case ".bmp":
                         case ".jpg":
                             str2 = str4;
                             goto Label_01E6;
                     }
                 }
             }
         }
     Label_01E6:
         if (str2.Length > 0)
         {
             str2 = c000037.m00006b().Content.RootDirectory + @"\..\" + path + @"\" + str2;
             if (File.Exists(str2))
             {
                 base.m000082(str2);
                 goto Label_0288;
             }
         }
     }
     catch
     {
         base.m000003();
         goto Label_0260;
     }
     if (flag)
     {
         goto Label_0288;
     }
     Label_0260:
     base.m000081(@"GameInfo\desktop");
     vector = new Vector2(c000037.m000022().X + 20f, 600f);
     Label_0288:
     base.m000081(@"GameInfo\loading").m000023(new Vector2(628f, 510f));
     c000035 c2 = base.m000081(@"GameInfo\bar");
     this.f000027 = base.m000081(@"GameInfo\progress");
     c2.m000023(vector);
     c2.m000069(enum034.f00004a);
     this.f000027.m000023(new Vector2((c2.m000022().X + 42f) - (c2.m000064().Width / 2), (c2.m000022().Y - (this.f000027.m000064().Height / 2)) + 5f));
     this.f0001e9 = base.m000081(@"GameInfo\light");
     this.f0001e9.m000023(this.f000027.m000022() + new Vector2(-40f, -25f));
     float num3 = c2.m000064().Width - 100;
     this.f000031 = (num3 / ((float) this.f000027.m000064().Width)) / ((float) base.f00000b);
     this.f000033 = num3 / ((float) base.f00000b);
 }
Beispiel #2
0
 public c000035 m000081(string p0)
 {
     c000035 item = new c000035();
     item.m000065(c000031.m000060(p0));
     this.f00003e.Add(item);
     return item;
 }
Beispiel #3
0
 public c000035 m000082(string p0)
 {
     c000035 item = new c000035();
     item.m000065(c000074.m0000e5<Texture2D>(p0));
     this.f00003e.Add(item);
     return item;
 }
Beispiel #4
0
 public c000035 m000081(string p0)
 {
     c000035 item = new c000035();
     item.m000065(c000031.LoadTextureByName2(p0));
     this.f00003e.Add(item);
     return item;
 }