// Token: 0x06003442 RID: 13378 // RVA: 0x00026717 File Offset: 0x00024917 internal Class542(Class731 class731_1, Vector2 vector2_9, float float_8, Color color_2, float float_9) : base(class731_1, vector2_9, float_8, true, color_2) { this.float_7 = float_9; }
// Token: 0x0600240B RID: 9227 // RVA: 0x000D8ED4 File Offset: 0x000D70D4 internal Class531(Class731 class731_1, Enum115 enum115_1, Origins origins_1, Enum114 enum114_1, Vector2 vector2_9) : this(class731_1, enum115_1, origins_1, enum114_1, vector2_9, 1f, false, Color.get_White(), null) { }
// Token: 0x06002D58 RID: 11608 // RVA: 0x001263EC File Offset: 0x001245EC internal static Class731 smethod_5(string string_0, float float_2, Vector2 vector2_0, Color color_0, Enum73 enum73_0, bool bool_0, bool bool_1, Enum72 enum72_0, bool bool_2, ref Vector2 vector2_1, ref RectangleF[] rectangleF_0, Color color_1, Color color_2, int int_0, bool bool_3, bool bool_4, string string_1, Vector4 vector4_0, Vector2 vector2_2, Class731 class731_0, int int_1, int int_2) { Class731 result; lock (Class747.object_0) { rectangleF_0 = null; try { using (Graphics graphics = Graphics.FromHwnd(IntPtr.Zero)) { using (StringFormat stringFormat = new StringFormat()) { if (Class747.float_0 == 0f) { Class747.float_0 = 96f / graphics.DpiX; } float_2 *= Class747.float_0; if (string_0 == null) { vector2_1 = Vector2.get_Zero(); result = null; } else { graphics.TextRenderingHint = TextRenderingHint.AntiAlias; if (string_1.StartsWith("Aller")) { string text = Class747.smethod_9(string_0); if (text != null) { string_1 = text; } } if (int_1 == 0 && int_2 <= 0) { if (int_2 == -1) { int_2 = string_0.Length; } } else { string_0 = string_0.Substring(int_1, int_2); } if (float_2 < 20f && string_1.EndsWith(" Light")) { string_1 = string_1.Replace(" Light", string.Empty); } FontStyle fontStyle = FontStyle.Regular; if (bool_0) { if (string_1.EndsWith(" Light")) { string_1 = string_1.Replace(" Light", string.Empty); } fontStyle |= FontStyle.Bold; } if (bool_1) { fontStyle |= FontStyle.Underline; } switch (enum72_0) { case Enum72.const_0: case Enum72.const_1: stringFormat.Alignment = StringAlignment.Near; break; case Enum72.const_2: stringFormat.Alignment = StringAlignment.Center; break; case Enum72.const_3: stringFormat.Alignment = StringAlignment.Far; break; } if (!Class905.smethod_16() && string_1.StartsWith("Aller")) { for (char c = '0'; c <= '9'; c += '\u0001') { string_0 = string_0.Replace(c, c + ''); } } Font font = Class747.smethod_11(string_1, float_2 * Class747.float_1, fontStyle); if (Class747.float_1 != 1f) { vector2_0 *= Class747.float_1; } SizeF sizeF; try { if (string_0.Length == 0) { string_0 = " "; } sizeF = ((vector2_0 != Vector2.get_Zero()) ? graphics.MeasureString(string_0, font, new SizeF(vector2_0.X, vector2_0.Y), stringFormat) : graphics.MeasureString(string_0, font)); } catch (InvalidOperationException) { vector2_1 = Vector2.get_Zero(); result = null; return result; } int num = (int)(sizeF.Width + 1f); int num2 = (int)(sizeF.Height + 1f); if (vector2_0.Y != 0f) { num2 = (int)vector2_0.Y; } if (vector2_0.X != 0f && (enum72_0 != Enum72.const_0 || color_1.get_A() > 0)) { num = (int)vector2_0.X; } if (vector2_2 != Vector2.get_Zero() && vector2_0 == Vector2.get_Zero()) { num += (int)(vector2_2.X * 2f); num2 += (int)(vector2_2.Y * 2f); } vector2_1 = new Vector2((float)num, (float)num2); float num3 = Math.Max(0.5f, Math.Min(1f, float_2 * Class747.float_1 / 14f)); if (bool_4) { rectangleF_0 = new RectangleF[string_0.Length]; int num4 = string_0.Length / 32 + 1; for (int i = 0; i < num4; i++) { int num5 = i * 32; int num6 = Math.Min(string_0.Length - num5, 32); CharacterRange[] array = new CharacterRange[num6]; for (int j = 0; j < num6; j++) { array[j] = new CharacterRange(j + num5, 1); } stringFormat.SetMeasurableCharacterRanges(array); Region[] array2 = graphics.MeasureCharacterRanges(string_0, font, new RectangleF(vector2_2.X, vector2_2.Y, (vector2_0.X == 0f) ? float.PositiveInfinity : vector2_0.X, (vector2_0.Y == 0f) ? float.PositiveInfinity : vector2_0.Y), stringFormat); for (int k = 0; k < num6; k++) { Region region = array2[k]; rectangleF_0[k + num5] = region.GetBounds(graphics); } } } int num8; if (bool_3) { int num7 = 0; num8 = 0; int l = 0; while (l < string_0.Length) { if (string_0[l++] != ' ') { break; } num7++; } int m = string_0.Length - 1; while (m >= l) { if (string_0[m--] != ' ') { break; } num8++; } if (num7 == string_0.Length) { num8 += num7; } } else { using (Bitmap bitmap = new Bitmap(num, num2, PixelFormat.Format32bppArgb)) { using (Graphics graphics2 = Graphics.FromImage(bitmap)) { graphics2.TextRenderingHint = graphics.TextRenderingHint; graphics2.SmoothingMode = SmoothingMode.HighQuality; graphics2.InterpolationMode = InterpolationMode.HighQualityBicubic; if (color_1.get_A() > 0) { if (vector4_0 != Vector4.get_Zero()) { Class747.smethod_6(graphics2, new Rectangle(0, 0, num, num2), new SolidBrush(Class778.smethod_6(color_1)), vector4_0); if (int_0 > 0) { Class747.smethod_7(graphics2, new Rectangle(0, 0, num - (int)Math.Ceiling((double)((float)int_0 / 2f)), num2 - (int)Math.Ceiling((double)((float)int_0 / 2f))), new Pen(Class778.smethod_6(color_2), (float)int_0), vector4_0); } } else { graphics2.Clear(Class778.smethod_6(color_1)); if (int_0 > 0) { graphics2.DrawRectangle(new Pen(Class778.smethod_6(color_2), (float)int_0), new Rectangle(int_0 / 2, int_0 / 2, num - int_0, num2 - int_0)); } } } else { graphics2.Clear(Color.FromArgb(1, (int)color_0.get_R(), (int)color_0.get_G(), (int)color_0.get_B())); } using (Brush brush = new SolidBrush(Class778.smethod_6(color_0))) { if (vector2_0 != Vector2.get_Zero()) { vector2_0.X -= vector2_2.X * 2f; vector2_0.Y -= vector2_2.Y * 2f; switch (enum73_0) { case Enum73.const_1: graphics2.DrawString(string_0, font, Class747.brush_0, new RectangleF(vector2_2.X - num3, num3 + vector2_2.Y, vector2_0.X, vector2_0.Y), stringFormat); graphics2.DrawString(string_0, font, Class747.brush_0, new RectangleF(vector2_2.X + num3, num3 + vector2_2.Y, vector2_0.X, vector2_0.Y), stringFormat); break; case Enum73.const_2: { Brush brush2 = Class747.brush_1; if (color_1.get_A() == 0 && int_0 == 1 && color_2.get_A() > 0) { brush2 = new SolidBrush(Class778.smethod_6(color_2)); } graphics2.DrawString(string_0, font, brush2, new RectangleF(vector2_2.X + num3, vector2_2.Y + num3, vector2_0.X, vector2_0.Y), stringFormat); graphics2.DrawString(string_0, font, brush2, new RectangleF(vector2_2.X + num3, vector2_2.Y - num3, vector2_0.X, vector2_0.Y), stringFormat); graphics2.DrawString(string_0, font, brush2, new RectangleF(vector2_2.X - num3, vector2_2.Y + num3, vector2_0.X, vector2_0.Y), stringFormat); graphics2.DrawString(string_0, font, brush2, new RectangleF(vector2_2.X - num3, vector2_2.Y - num3, vector2_0.X, vector2_0.Y), stringFormat); break; } } graphics2.DrawString(string_0, font, brush, new RectangleF(vector2_2.X, vector2_2.Y, vector2_0.X, vector2_0.Y), stringFormat); } else { switch (enum73_0) { case Enum73.const_1: graphics2.DrawString(string_0, font, Class747.brush_0, vector2_2.X - num3, vector2_2.Y + num3); graphics2.DrawString(string_0, font, Class747.brush_0, vector2_2.X + num3, vector2_2.Y + num3); break; case Enum73.const_2: { Brush brush3 = Class747.brush_1; if (color_1.get_A() == 0 && int_0 == 1 && color_2.get_A() > 0) { brush3 = new SolidBrush(Class778.smethod_6(color_2)); } graphics2.DrawString(string_0, font, brush3, vector2_2.X + num3, vector2_2.Y + num3); graphics2.DrawString(string_0, font, brush3, vector2_2.X - num3, vector2_2.Y + num3); graphics2.DrawString(string_0, font, brush3, vector2_2.X + num3, vector2_2.Y - num3); graphics2.DrawString(string_0, font, brush3, vector2_2.X - num3, vector2_2.Y - num3); break; } } graphics2.DrawString(string_0, font, brush, vector2_2.X, vector2_2.Y); } } BitmapData bitmapData = bitmap.LockBits(new Rectangle(0, 0, num, num2), ImageLockMode.ReadOnly, bitmap.PixelFormat); if (class731_0 != null && !class731_0.bool_2 && class731_0.method_0() == num) { if (class731_0.method_1() == num2) { class731_0.method_7(bitmapData.Scan0, num, num2, string_0); goto IL_936; } } class731_0 = Class731.smethod_7(bitmapData.Scan0, num, num2, true, string_0); IL_936: bitmap.UnlockBits(bitmapData); result = class731_0; return result; } } } vector2_1 = new Vector2((float)num + (float)num8 * 5.145f * float_2 / 12f, (float)num2); result = null; } } } } catch (Exception) { vector2_1 = Vector2.get_Zero(); result = null; } } return result; }
// Token: 0x0600200D RID: 8205 // RVA: 0x000B64B4 File Offset: 0x000B46B4 internal Class68(Class114 class114_1) { EventHandler eventHandler = null; EventHandler eventHandler2 = null; EventHandler eventHandler3 = null; this.enum113_0 = Enum113.const_2; this.list_0 = new List<Class531>(); this.int_2 = -1; this.int_4 = -1; this.list_1 = new List<Class531>(); this.bool_12 = true; base..ctor(class114_1); Class695.smethod_1(); this.smartThreadPool_0 = new SmartThreadPool(new STPStartInfo { MaxWorkerThreads = 1, AreThreadsBackground = true, IdleTimeout = 1000, ThreadPriority = ThreadPriority.BelowNormal }); this.class296_1 = Class466.Current; this.bool_5 = (Class115.osuModes_1 == OsuModes.SelectPlay); this.bool_4 = (Class115.osuModes_1 == OsuModes.SelectMulti); if (!this.bool_4 && this.bool_5) { Class62.Mode = Class68.class605_0; } Class908.smethod_1(); Class476.smethod_3(); if (Class466.Current != null) { Class466.Current.list_0.Clear(); } Class62.class512_0 = null; lock (Class858.object_0) { Class802.smethod_1(false); Class802.bool_16 = false; } this.method_23(); if ((Class466.Current == null || string.IsNullOrEmpty(Class466.Current.string_4) || !Class466.Current.bool_4) && (Class115.osuModes_1 == OsuModes.SelectPlay || Class115.osuModes_1 == OsuModes.SelectMulti || Class115.osuModes_1 == OsuModes.SelectEdit)) { Class109.smethod_3(true, true); } Class570.smethod_4(new Class570.Delegate45(this.method_39)); Class570.smethod_2(new Class570.Delegate44(this.method_38)); Class569.smethod_0(new Class569.Delegate43(this.method_19)); Class809.smethod_8(new VoidDelegate(this.method_21)); Class876.smethod_0(new Class876.Delegate53(this.method_9)); this.class86_0 = new Class86(class114_1); this.class86_0.method_16(new Class86.Delegate56(this.method_10)); this.class86_0.method_18(new Class86.Delegate56(this.method_11)); this.class86_0.method_20(new Class86.Delegate56(this.method_12)); this.class86_0.method_22(new Class86.Delegate56(this.method_13)); this.class86_0.method_24(new Class86.Delegate56(this.method_14)); this.class86_0.method_26(new Class86.Delegate56(this.method_15)); this.class86_0.method_28(new VoidDelegate(this.method_44)); this.class86_0.method_30(new VoidDelegate(this.method_45)); Class466.smethod_19(new Class466.Delegate33(this.method_32)); if (Class62.class911_1 != null) { this.class911_3 = Class62.class911_1; } else { this.class911_3 = new Class911(true); } this.class110_0 = new Class110(new Rectangle(-5, 92, 290, 267), Vector2.get_Zero(), true, 0f, Enum98.const_2) { bool_2 = true, bool_8 = true }; this.class911_2 = new Class911(true); this.class911_4 = new Class911(true); this.class911_1 = new Class911(true); this.class533_0 = new Class533(" ", 18f, new Vector2(21f, -3f), Vector2.get_Zero(), 0.79f, true, Color.get_White(), false); this.class533_0.vmethod_11(); this.class911_1.Add(this.class533_0); this.class533_1 = new Class533(string.Empty, 12f, new Vector2(23f, 12f), Vector2.get_Zero(), 0.79f, true, Color.get_White(), false); this.class911_1.Add(this.class533_1); this.class533_2 = new Class533(string.Empty, 12f, new Vector2(1f, 24f), Vector2.get_Zero(), 0.79f, true, Color.get_White(), false); this.class911_1.Add(this.class533_2); this.class533_3 = new Class533(string.Empty, 12f, new Vector2(1f, 36f), Vector2.get_Zero(), 0.79f, true, Color.get_White(), false); this.class911_1.Add(this.class533_3); this.class533_4 = new Class533(string.Empty, 8f, new Vector2(1f, 48f), Vector2.get_Zero(), 1f, true, Color.get_White(), false); this.class911_1.Add(this.class533_4); this.class533_6 = new Class533(string.Empty, 20f, new Vector2(5f, -1f), 1f, true, new Color(255, 255, 255, 128)) { enum115_0 = Enum115.const_7, origins_0 = Origins.TopRight, object_0 = 0.0 }; this.class911_1.Add(this.class533_6); this.class731_2 = Class885.Load("selection-ranked", Enum112.flag_1); this.class731_3 = Class885.Load("selection-question", Enum112.flag_1); this.class731_1 = Class885.Load("selection-approved", Enum112.flag_1); this.class531_12 = new Class531(this.class731_2, Enum115.const_5, Origins.Centre, Enum114.const_0, new Vector2(12f, 12f), 0.78f, true, Color.get_TransparentWhite(), null); this.class911_1.Add(this.class531_12); this.class531_13 = new Class531(Class115.class731_0, Enum115.const_5, Origins.TopLeft, Enum114.const_0, Vector2.get_Zero(), 1f, true, Color.get_TransparentWhite(), null); this.class531_13.bool_13 = false; this.class531_13.bool_7 = true; this.class531_13.vector2_2 = new Vector2((float)Class115.int_22, (float)Class115.int_23); this.class911_1.Add(this.class531_13); this.class531_9 = new Class531(Class115.class731_0, Enum115.const_7, Origins.TopLeft, Enum114.const_0, new Vector2(3f, 73f), 0.88f, true, new Color(0, 0, 0, 128), null); this.class531_9.float_2 = 1.6f; this.class531_9.vector2_2 = new Vector2(3f, 330f); this.class531_10 = new Class531(Class115.class731_0, Enum115.const_7, Origins.TopLeft, Enum114.const_0, new Vector2(3f, 73f), 0.89f, true, new Color(255, 255, 255, 255), null); this.class531_10.float_2 = 1.6f; this.class531_10.vector2_2 = new Vector2(3f, 20f); this.class911_1.Add(this.class531_9); this.class911_1.Add(this.class531_10); if (!this.bool_5 && !this.bool_4) { Class876.class623_0 = Mods.None; Class531 class530_ = new Class531(Class885.Load("selection-drop", Enum112.flag_1), new Vector2(5f, 110f), 0.5f, true, Color.get_White()); this.class911_1.Add(class530_); } else { bool flag; Enum115 enum115_ = (flag = (Class885.smethod_25() || Class885.Load("selection-mods", Enum112.flag_6).enum112_0 == Enum112.flag_1)) ? Enum115.const_11 : Enum115.const_5; Origins origins_ = flag ? Origins.BottomLeft : Origins.TopLeft; float num = (float)(flag ? 0 : 426); float num2 = (float)(Class115.bool_21 ? 140 : 120); if (Class68.bool_11) { this.class531_17 = new Class531(Class885.Load("selection-mode", Enum112.flag_6), enum115_, origins_, Enum114.const_0, new Vector2(num2, num), 0.95f, true, Color.get_White(), null); this.class911_1.Add(this.class531_17); this.class531_17 = new Class531(Class885.Load("selection-mode-over", Enum112.flag_6), enum115_, origins_, Enum114.const_0, new Vector2(num2, num), 0.96f, true, Color.get_White(), null); this.class531_17.float_3 = 0.01f; this.class531_17.class746_1 = new Class746(TransformationType.Fade, 0.01f, 1f, 0, 100, Enum70.const_0); this.class531_17.bool_1 = true; Class531 arg_831_0 = this.class531_17; if (Class68.eventHandler_4 == null) { Class68.eventHandler_4 = new EventHandler(Class68.smethod_5); } arg_831_0.method_35(Class68.eventHandler_4); Class530 arg_850_0 = this.class531_17; if (eventHandler == null) { eventHandler = new EventHandler(this.method_64); } arg_850_0.method_2(eventHandler); this.class911_1.Add(this.class531_17); this.class597_0 = new Class597(this.class911_1); float num3 = 80f; Vector2 vector; vector..ctor(num2, 344f); for (int i = 0; i < 4; i++) { Class68.Class449 class = new Class68.Class449();
// Token: 0x0600299C RID: 10652 // RVA: 0x0001FF96 File Offset: 0x0001E196 internal Class679(Class731[] class731_1, int[] int_1, double double_1) { this.class731_0 = class731_1; this.int_0 = int_1; this.double_0 = double_1; }
// Token: 0x06002362 RID: 9058 // RVA: 0x0001C097 File Offset: 0x0001A297 internal void method_7(Enum50 enum50_1, Class83.Delegate35 delegate35_1) { this.class731_0 = null; this.bool_3 = true; this.int_2++; this.method_8(enum50_1, delegate35_1, null); }
// Token: 0x06002438 RID: 9272 // RVA: 0x0001C65D File Offset: 0x0001A85D internal Class532(Class731 class731_1, Vector2 vector2_9, float float_7, bool bool_15, Color color_2) : base(class731_1, vector2_9, float_7, bool_15, color_2) { }
// Token: 0x06002D19 RID: 11545 // RVA: 0x00022208 File Offset: 0x00020408 internal override void vmethod_7(Class731 class731_1) { base.vmethod_7(class731_1); }
// Token: 0x06001DEB RID: 7659 // RVA: 0x000A3198 File Offset: 0x000A1398 internal virtual void vmethod_5() { if (Class62.bool_6) { this.class538_0.int_4 = 0; } if (!this.bool_0 || this.int_0 > 0) { if (this.bool_2 && Class62.Mode == PlayModes.Osu) { if (this.method_0() < 40.0) { this.class531_1.color_0 = (this.class538_0.color_0 = Class610.smethod_3(Color.get_Black(), Color.get_Red(), Math.Max(0f, (float)((40.0 - this.method_0()) / 40.0)))); this.class531_1.method_8(true); } else if (this.method_0() < 100.0) { this.class531_1.color_0 = (this.class538_0.color_0 = Class610.smethod_3(Color.get_White(), Color.get_Black(), Math.Max(0f, (float)((100.0 - this.method_0()) / 100.0)))); this.class531_1.bool_7 = false; this.class531_1.method_8(false); } else { this.class538_0.color_0 = Color.get_White(); this.class531_1.color_0 = Color.get_White(); this.class531_1.bool_7 = true; this.class531_1.method_8(false); } } if (this.method_0() < 40.0) { if (this.class531_1.class731_0 != this.class731_1) { this.class531_1.class731_0 = this.class731_1; } } else if (this.method_0() < 100.0) { if (this.class531_1.class731_0 != this.class731_0) { this.class531_1.class731_0 = this.class731_0; } } else if (this.class531_1.class731_0 != this.class731_2) { this.class531_1.class731_0 = this.class731_2; } } if (this.method_0() < this.method_2()) { if (this.bool_0) { if (this.int_0 < Class331.int_7 && (Class62.bool_13 || Class331.enum100_0 == Enum100.const_1)) { this.method_1(Math.Min(200.0, this.method_0() + this.double_0 * (Class62.bool_13 ? Class115.double_9 : Class331.double_3))); if (this.class531_1.class26_0.Count == 0) { this.class531_1.class26_0.Add(new Class746(TransformationType.Scale, 1.2f, 0.8f, Class115.int_1, Class115.int_1 + 150, Enum70.const_0)); } } } else { this.method_1(Math.Min(200.0, this.method_0() + Math.Abs(this.method_2() - this.method_0()) / 4.0 * Class115.double_0)); } } else if (this.method_0() > this.method_2()) { this.bool_0 = false; this.method_1(Math.Max(0.0, this.method_0() - Math.Abs(this.method_0() - this.method_2()) / 6.0 * Class115.double_0)); } this.class538_0.int_4 = (int)Math.Min((double)this.class538_0.int_6, Math.Max(0.0, (double)this.class538_0.int_6 * (this.method_0() / 200.0))); this.vmethod_6(); }
// Token: 0x06002437 RID: 9271 // RVA: 0x0001C64E File Offset: 0x0001A84E internal Class532(Class731 class731_1, Enum115 enum115_1, Origins origins_1, Enum114 enum114_1, Vector2 vector2_9) : base(class731_1, enum115_1, origins_1, enum114_1, vector2_9) { }
// Token: 0x06001DE6 RID: 7654 // RVA: 0x000A2D5C File Offset: 0x000A0F5C internal Class410(Class911 class911_1) { this.class911_0 = class911_1; Class731[] array = this.vmethod_1("scorebar-colour"); Class731[] array2 = this.vmethod_1("scorebar-marker"); this.bool_2 = (array[0].enum112_0 == Enum112.flag_1 || array2[0].enum112_0 == Enum112.flag_2); if (this.bool_2) { if (array[0].string_0 == "scorebar-colour-0" && array[0].enum112_0 == Enum112.flag_1) { array = new Class731[] { this.vmethod_2("scorebar-colour") }; } this.class731_2 = array2[0]; this.class731_0 = array2[0]; this.class731_1 = array2[0]; this.class538_0 = new Class538(array, Enum115.const_5, Origins.TopLeft, Enum114.const_0, new Vector2(7.5f, 7.8f), 0.965f, true, Color.get_White(), null); this.class531_1 = new Class531(this.class731_2, Enum115.const_15, Origins.Centre, Enum114.const_0, new Vector2(this.method_8(), 10.625f * Class115.float_4), 0.97f, true, Color.get_White(), null); this.class531_1.bool_7 = true; } else { this.class731_2 = this.vmethod_2("scorebar-ki"); this.class731_0 = this.vmethod_2("scorebar-kidanger"); this.class731_1 = this.vmethod_2("scorebar-kidanger2"); this.class538_0 = new Class538(array, Enum115.const_5, Origins.TopLeft, Enum114.const_0, new Vector2(3f, 10f), 0.965f, true, Color.get_White(), null); this.class531_1 = new Class531(this.class731_2, Enum115.const_15, Origins.Centre, Enum114.const_0, new Vector2(0f, 10f * Class115.float_4), 0.97f, true, Color.get_White(), null); } this.class538_0.int_4 = 0; this.class538_0.method_61(); this.class538_0.bool_15 = true; this.class531_0 = new Class531(this.vmethod_2("scorebar-bg"), Enum115.const_5, Origins.TopLeft, Enum114.const_0, Vector2.get_Zero(), 0.96f, true, Color.get_White(), null); this.list_0.Add(this.class531_0); this.list_0.Add(this.class538_0); this.list_0.Add(this.class531_1); if (!Class62.bool_15 && !Class62.bool_16) { if (class911_1 != null) { class911_1.Add<Class531>(this.list_0); } } else { this.method_7(false); } this.vmethod_5(); }
// Token: 0x06002363 RID: 9059 // RVA: 0x000D5E24 File Offset: 0x000D4024 private void method_8(Enum50 enum50_1, Class83.Delegate35 delegate35_1, Class731 class731_1) { VoidDelegate voidDelegate = null; Class83.Class517 class = new Class83.Class517();
// Token: 0x06002365 RID: 9061 // RVA: 0x000D60EC File Offset: 0x000D42EC private Class531 method_10(Enum50 enum50_1) { if (this.class731_0 == null || this.class731_0.bool_2) { this.class731_0 = Class885.Load("menu-background", Enum112.flag_1); } Enum115 enum115_ = ((enum50_1 & Enum50.flag_1) != (Enum50)0) ? Enum115.const_3 : Enum115.const_9; return new Class531(this.class731_0, enum115_, Origins.Centre, Enum114.const_0, Vector2.get_Zero(), Class911.smethod_4((float)Class115.int_1), true, Color.get_White(), null); }
// Token: 0x0600240C RID: 9228 // RVA: 0x000D8EFC File Offset: 0x000D70FC internal Class531(Class731 class731_1, Origins origins_1, Vector2 vector2_9, float float_7, bool bool_15, Color color_2) : this(class731_1, Enum115.const_5, origins_1, Enum114.const_0, vector2_9, float_7, bool_15, color_2, null) { }
// Token: 0x06002439 RID: 9273 // RVA: 0x000DBB9C File Offset: 0x000D9D9C internal Class532(Class731 class731_1, Enum115 enum115_1, Origins origins_1, Enum114 enum114_1, Vector2 vector2_9, float float_7, bool bool_15, Color color_2) : base(class731_1, enum115_1, origins_1, enum114_1, vector2_9, float_7, bool_15, color_2, null) { }
// Token: 0x0600240E RID: 9230 // RVA: 0x000D8F3C File Offset: 0x000D713C internal Class531(Class731 class731_1, Enum115 enum115_1, Origins origins_1, Enum114 enum114_1, Vector2 vector2_9, float float_7, bool bool_15, Color color_2, object object_1) : base(bool_15) { this.class731_0 = class731_1; this.origins_0 = origins_1; this.vmethod_8(); this.vmethod_9(); this.enum114_0 = enum114_1; this.vector2_1 = vector2_9; this.vector2_0 = this.vector2_1; this.float_2 = 1f; this.float_0 = float_7; this.float_4 = -this.float_0; this.enum115_0 = enum115_1; this.float_3 = (float)color_2.get_A() / 255f; this.color_0 = color_2; this.object_0 = object_1; }
// Token: 0x06002D3C RID: 11580 // RVA: 0x00125E40 File Offset: 0x00124040 public Class539(Class731 class731_1, Vector2 vector2_9, float float_7, bool bool_15, Color color_2, int int_8) : base(class731_1, Enum115.const_5, Origins.Centre, Enum114.const_0, vector2_9, float_7, bool_15, color_2, null) { this.int_7 = int_8; }
// Token: 0x06002B24 RID: 11044 // RVA: 0x00117628 File Offset: 0x00115828 internal override bool Load() { if (this.bool_0) { return false; } this.bool_0 = true; Class731[] array = null; if (this.bool_3) { array = Class885.smethod_27(Path.GetFileNameWithoutExtension(this.string_0), Enum112.flag_6, true); } if (!this.bool_3 || array == null) { array = new Class731[this.int_3]; if (this.string_1 != null) { for (int i = 0; i < this.int_3; i++) { array[i] = Class885.Load(this.string_1[i], Enum112.flag_3); } } } this.class538_0.method_55(array); return true; }
// Token: 0x0600346C RID: 13420 // RVA: 0x000267DD File Offset: 0x000249DD public static void smethod_35(Class731 class731_1) { Class885.list_1.Add(class731_1); }
// Token: 0x06002CE7 RID: 11495 // RVA: 0x00122E18 File Offset: 0x00121018 internal bool Initialize() { if (!Class115.bool_27) { bool result; try { this.graphicsDevice_0 = Class115.class125_0.GraphicsDevice; this.class731_0 = Class885.Load("FireBase", Enum112.flag_1); this.class731_1 = Class885.Load("FireBase2", Enum112.flag_1); this.effect_0 = Class115.contentManager_0.Load<Effect>("Fire").Clone(this.graphicsDevice_0); this.effect_0.set_CurrentTechnique(this.effect_0.get_Techniques().get_Item("Fire")); this.class731_0 = Class885.Load("FireBase", Enum112.flag_1); this.class731_1 = Class885.Load("FireBase2", Enum112.flag_1); this.effect_0.get_Parameters().get_Item("fire_base_Tex").SetValue(Class885.Load("FireBase", Enum112.flag_1).method_2()); this.effect_0.get_Parameters().get_Item("fire_distortion_Tex").SetValue(Class885.Load("FireDistortion", Enum112.flag_1).method_2()); this.effect_0.get_Parameters().get_Item("fire_opacity_Tex").SetValue(Class885.Load("FireOpacity", Enum112.flag_1).method_2()); this.effectParameter_1 = this.effect_0.get_Parameters().get_Item("Fire_Effects_Fire_Single_Pass_Vertex_Shader_time_0_X"); this.effectParameter_0 = this.effect_0.get_Parameters().get_Item("height"); this.effect_0.CommitChanges(); float num = Math.Max(0f, ((float)Class341.class607_1 - 5f) / 10f); Class734.Struct50[] data = new Class734.Struct50[] { new Class734.Struct50(new Vector4(-1f, -1f, 0f, 1f), Vector3.get_Zero()), new Class734.Struct50(new Vector4(1f, -1f, 0f, 1f), Vector3.get_Zero()), new Class734.Struct50(new Vector4(1f, num, 1f, 1f), Vector3.get_Zero()), new Class734.Struct50(new Vector4(-1f, -1f, 0f, 1f), Vector3.get_Zero()), new Class734.Struct50(new Vector4(-1f, num, 0f, 1f), Vector3.get_Zero()), new Class734.Struct50(new Vector4(1f, num, 0f, 1f), Vector3.get_Zero()) }; this.vertexBuffer_0 = new VertexBuffer(Class115.class125_0.GraphicsDevice, 168, 8); this.vertexBuffer_0.SetData<Class734.Struct50>(data); return true; } catch (Exception) { if (!Class341.class606_13) { return true; } Class341.class606_13.Value = false; this.Dispose(); Class723.smethod_4("Rendering of fire effect failed - automatically disabling."); result = false; } return result; } if (Class341.class606_13) { Class341.class606_13.Value = false; Class723.smethod_4("Combo fire is not supported when running in OpenGl mode!"); return false; } return false; }
// Token: 0x06002AE5 RID: 10981 // RVA: 0x001162FC File Offset: 0x001144FC public static void smethod_1() { Class695.color_9 = Class885.dictionary_7["SongSelectActiveText"]; Class695.color_10 = Class885.dictionary_7["SongSelectInactiveText"]; Class695.color_11 = Class610.smethod_7(Class695.color_10, 50); Class695.class731_0 = Class885.Load("menu-button-background", Enum112.flag_6); Class695.class731_1 = Class885.Load("star", Enum112.flag_6); }