// Token: 0x060028C5 RID: 10437 // RVA: 0x00100D14 File Offset: 0x000FEF14 internal Class658(Class911 class911_1, ProgressBarTypes progressBarTypes_0, float float_1) { this.class911_0 = class911_1; Enum115 enum115_; switch (progressBarTypes_0) { case ProgressBarTypes.Pie: return; case ProgressBarTypes.BottomRight: this.vector2_0 = new Vector2(118f, 460f); this.float_0 = 118f; enum115_ = Enum115.const_7; goto IL_9D; case ProgressBarTypes.Bottom: this.vector2_0 = new Vector2(0f, 477f); this.float_0 = (float)Class115.int_22 / Class115.float_4; enum115_ = Enum115.const_5; goto IL_9D; } this.vector2_0 = new Vector2(178f, float_1 - 2f); this.float_0 = 170f; enum115_ = Enum115.const_7; IL_9D: this.class531_0 = new Class531(Class115.class731_0, enum115_, Origins.TopLeft, Enum114.const_0, this.vector2_0, 0.938f, true, new Color(255, 255, 255, 20), null); this.class531_0.float_2 = 1.6f; this.class531_0.vector2_2 = new Vector2(this.float_0, 3f); this.class531_0.bool_7 = true; class911_1.Add(this.class531_0); this.class531_1 = new Class531(Class115.class731_0, enum115_, Origins.TopLeft, Enum114.const_0, this.vector2_0, 0.94f, true, new Color(255, 255, 128, 128), null); this.class531_1.float_2 = 1.6f; this.class531_1.vector2_2 = new Vector2(0f, 3f); this.class531_1.bool_7 = true; class911_1.Add(this.class531_1); }
internal ProgressBar(SpriteManager spriteManager, ProgressBarTypes type, float topRightVerticalOffset = 34) { this.spriteManager = spriteManager; Fields field; switch (type) { case ProgressBarTypes.Bottom: Position = new Vector2(0, 477); length = GameBase.WindowManager.Width / GameBase.WindowManager.Ratio; field = Fields.TopLeft; break; case ProgressBarTypes.TopRight: default: Position = new Vector2(178, topRightVerticalOffset - 2); length = 170; field = Fields.TopRight; break; case ProgressBarTypes.BottomRight: Position = new Vector2(118, 460); length = 118; field = Fields.TopRight; break; case ProgressBarTypes.Pie: return; //Extended class handles this fully. } progressBarBackground = new pSprite(GameBase.WhitePixel, field, Origins.TopLeft, Clocks.Game, Position, 0.938f, true, new Color(255, 255, 255, 20)); progressBarBackground.Scale = 1.6f; progressBarBackground.VectorScale = new Vector2(length, height); progressBarBackground.Additive = true; spriteManager.Add(progressBarBackground); progressBarForeground = new pSprite(GameBase.WhitePixel, field, Origins.TopLeft, Clocks.Game, Position, 0.94f, true, new Color(255, 255, 128, 128)); progressBarForeground.Scale = 1.6f; progressBarForeground.VectorScale = new Vector2(0, height); progressBarForeground.Additive = true; spriteManager.Add(progressBarForeground); }