// Token: 0x0600007C RID: 124 RVA: 0x000057A8 File Offset: 0x000039A8 public static void smethod_3() { while (GClass1.bool_0) { int num = Math.Max(Math.Min((int)((double)GClass1.int_0 * GClass1.double_0 * 1.25), (int)((double)GClass1.size_0.Width * 0.9)), (int)((double)GClass1.size_0.Width * 0.6)); int num2 = Math.Min((int)((double)num / 1.22), (int)((double)GClass1.size_0.Height * 0.9)); int num3 = Math.Max((int)((double)GClass1.size_0.Width / 2.2) - num / 2, 0); int num4 = Math.Max((int)((double)GClass1.size_0.Height / 2.15) - num2 / 2, 0); Bitmap bitmap = new Bitmap(num, num2, PixelFormat.Format32bppArgb); Graphics graphics = Graphics.FromImage(bitmap); graphics.CopyFromScreen(num3, num4, 0, 0, new Size(num, num2), CopyPixelOperation.SourceCopy); ValueTuple <int, int> valueTuple = GClass16.smethod_3(); ValueTuple <GClass0, int, int> valueTuple2 = Class12.smethod_10(bitmap, valueTuple.Item1, valueTuple.Item2, num3, num4); graphics.Dispose(); bitmap.Dispose(); GClass1.ValueTuple_0 = valueTuple2; } }
// Token: 0x06002890 RID: 10384 RVA: 0x00011509 File Offset: 0x0000F709 public static bool smethod_5(GClass16 gclass16_0, GClass16 gclass16_1) { return(GClass16.smethod_3(gclass16_0, gclass16_1) || GClass16.smethod_0(gclass16_0, gclass16_1)); }
// Token: 0x0600289C RID: 10396 RVA: 0x0012F97C File Offset: 0x0012DB7C public static int smethod_15 <T>(T gparam_0, List <T> list_0) where T : GClass16 { int num = -1; if (list_0.Count > 0) { if (GClass16.smethod_2(list_0[list_0.Count - 1], gparam_0)) { num = list_0.Count; list_0.Insert(num, gparam_0); } else { num = GClass16.smethod_6 <T>(gparam_0, list_0.ToArray()); if (num != -1) { if (GClass16.smethod_0(list_0[num], gparam_0) && gparam_0.Int32_1 == list_0[num].Int32_1) { list_0[num] = gparam_0; } else { if (GClass16.smethod_3(gparam_0, list_0[num])) { num++; } list_0.Insert(num, gparam_0); } } } } if (num == -1) { list_0.Add(gparam_0); num = list_0.Count - 1; } if (gparam_0.Int32_1 == 4) { GClass19 gclass = list_0[num] as GClass19; GClass19 gclass2 = GClass16.smethod_12 <T>(typeof(GClass19), num, list_0) as GClass19; GClass19 gclass3 = GClass16.smethod_14 <T>(typeof(GClass19), num, list_0) as GClass19; gclass.gclass19_0 = gclass2; if (GClass16.smethod_1(gclass2, null)) { gclass2.gclass19_1 = gclass; } gclass.gclass19_1 = gclass3; if (GClass16.smethod_1(gclass3, null)) { gclass3.gclass19_0 = gclass; } GClass19.GEnum15 genum = gclass.genum15_0; gclass2 = gclass.gclass19_0; gclass3 = gclass.gclass19_1; GClass19 gclass16_ = null; bool flag = false; while (GClass16.smethod_1(gclass2, null)) { if (gclass2.uint_0 != gclass.uint_0) { break; } if (gclass2.genum13_0 == GClass19.GEnum13.OPEN) { gclass16_ = gclass2; } else { flag = true; } genum |= gclass2.genum15_0; gclass2 = gclass2.gclass19_0; } while (GClass16.smethod_1(gclass3, null)) { if (gclass3.uint_0 != gclass.uint_0) { break; } if (gclass3.genum13_0 == GClass19.GEnum13.OPEN) { gclass16_ = gclass3; } else { flag = true; } genum |= gclass3.genum15_0; gclass3 = gclass3.gclass19_1; } if ((gclass.genum13_0 == GClass19.GEnum13.OPEN || !GClass16.smethod_1(gclass16_, null)) && (gclass.genum13_0 != GClass19.GEnum13.OPEN || !flag)) { gclass.genum15_0 = genum; gclass2 = gclass.gclass19_0; gclass3 = gclass.gclass19_1; while (GClass16.smethod_1(gclass2, null)) { if (gclass2.uint_0 != gclass.uint_0) { break; } if (gclass2.genum15_0 != genum) { Debug.Log(string.Format("Not match flags previous {0} {1}", num, gparam_0.GetType())); } gclass2.genum15_0 = genum; gclass2 = gclass2.gclass19_0; } while (GClass16.smethod_1(gclass3, null)) { if (gclass3.uint_0 != gclass.uint_0) { break; } if (gclass3.genum15_0 != genum) { Debug.Log(string.Format("Not match flags next {0} {1}", num, gparam_0.GetType())); } gclass3.genum15_0 = genum; gclass3 = gclass3.gclass19_1; } } } return(num); }