// Token: 0x060012B1 RID: 4785 RVA: 0x0008FCBC File Offset: 0x0008E0BC public override void PostDraw() { base.PostDraw(); GenDraw.FillableBarRequest r = default(GenDraw.FillableBarRequest); r.center = this.parent.DrawPos + Vector3.up * 0.1f; r.center.x += 0.45f; r.size = CompPowerPlantSolarCell.BarSize; r.fillPercent = this.DesiredPowerOutput / this.Props.solarEnergyMax; r.filledMat = CompPowerPlantSolarCell.PowerPlantSolarBarFilledMat; r.unfilledMat = CompPowerPlantSolarCell.PowerPlantSolarBarUnfilledMat; r.margin = 0.07f; Rot4 rotation = this.parent.Rotation; rotation.Rotate(RotationDirection.Clockwise); r.rotation = rotation; GenDraw.DrawFillableBar(r); GenDraw.FillableBarRequest r2 = default(GenDraw.FillableBarRequest); r2.center = this.parent.DrawPos + Vector3.up * 0.1f; r2.center.x -= 0.45f; r2.size = CompPowerPlantSolarCell.BarSize; r2.fillPercent = StoredEnergyPct; r2.filledMat = CompPowerPlantSolarCell.BatterySolarBarFilledMat; r2.unfilledMat = CompPowerPlantSolarCell.BatterySolarBarUnfilledMat; r2.margin = 0.07f; Rot4 rotation2 = this.parent.Rotation; rotation2.Rotate(RotationDirection.Clockwise); r2.rotation = rotation2; GenDraw.DrawFillableBar(r2); }
public override void PostDraw() { Chamber chamber = parent.Linked <Chamber>(); if (chamber == null) { return; } updateValues(); if (unfilledMat == null) { unfilledMat = SolidColorMaterials.SimpleSolidColorMaterial(new Color(107 / 255f, 107 / 255f, 107 / 255f), false); filledMat = new Material[] { SolidColorMaterials.SimpleSolidColorMaterial(new Color(255 / 255f, 110 / 255f, 26 / 255f), false), SolidColorMaterials.SimpleSolidColorMaterial(new Color(29 / 255f, 179 / 255f, 139 / 255f), false), SolidColorMaterials.SimpleSolidColorMaterial(new Color(169 / 255f, 58 / 255f, 255 / 255f), false), }; } for (int i = 0; i < 3; i++) { GenDraw.FillableBarRequest r = default(GenDraw.FillableBarRequest); r.center = parent.DrawPos + new Vector3((-8f + 14 * i) / 64, 0.1f, -4f / 64); r.size = barSize; r.fillPercent = values[i]; r.filledMat = filledMat[i]; r.unfilledMat = unfilledMat; r.margin = 0; r.rotation = Rot4.West; GenDraw.DrawFillableBar(r); } }
public override void PostDraw() { base.PostDraw(); GenDraw.FillableBarRequest r = new GenDraw.FillableBarRequest(); r.center = this.parent.DrawPos + Vector3.up * 0.1f; r.size = BarSize; r.fillPercent = gas.totalPressure / MaxPressure; //if() if (BarType == 1) { r.filledMat = PowerPlantSolarBarFilledMatDispersing; } else if (BarType == 2) { r.filledMat = PowerPlantSolarBarFilledMatIonizingGasPressure; r.fillPercent = gas.totalPressure / (MaxPressure * 0.005f); } else if (BarType == 3) { r.filledMat = PowerPlantSolarBarFilledMatCo2Hazard; } else { r.filledMat = PowerPlantSolarBarFilledMat; } r.unfilledMat = PowerPlantSolarBarUnfilledMat; r.margin = 0.15f; Rot4 rotation = this.parent.Rotation; rotation.Rotate(RotationDirection.Clockwise); r.rotation = rotation; GenDraw.DrawFillableBar(r); }
public override void Draw() { base.Draw(); GenDraw.FillableBarRequest r = default; Vector3 currPos = DrawPos; currPos.y += 0.1f; currPos.z += 0.3f; r.center = currPos + Vector3.up * 0.1f; r.size = BarSize; if (Working) { r.fillPercent = GetFeedstockPercent(); r.filledMat = BatteryBarFilledMat; r.unfilledMat = BatteryBarUnfilledMat; } else { r.fillPercent = 0; r.filledMat = BatteryBarFilledMat; r.unfilledMat = BatteryBarNoPowerMat; } r.margin = 0.15f; Rot4 rotation = Rotation; r.rotation = rotation; GenDraw.DrawFillableBar(r); }
public override void PostDraw() { base.PostDraw(); if (this.parent.Rotation == Rot4.North || this.parent.Rotation == Rot4.South) { GenDraw.FillableBarRequest fillableBarRequest = default(GenDraw.FillableBarRequest); fillableBarRequest.center = this.parent.DrawPos + Vector3.forward * 0.1f + Vector3.left * 1.49f; fillableBarRequest.size = new Vector2(1.6f, 0.2f); fillableBarRequest.fillPercent = this.progress; fillableBarRequest.filledMat = barFilledMat; fillableBarRequest.unfilledMat = barUnfilledMat; fillableBarRequest.margin = 0.15f; fillableBarRequest.rotation = this.parent.Rotation.Rotated(RotationDirection.Clockwise); GenDraw.DrawFillableBar(fillableBarRequest); fillableBarRequest.center = this.parent.DrawPos + Vector3.forward * 0.1f + Vector3.right * 1.49f; GenDraw.DrawFillableBar(fillableBarRequest); } else { GenDraw.FillableBarRequest fillableBarRequest = default(GenDraw.FillableBarRequest); fillableBarRequest.center = this.parent.DrawPos + Vector3.forward * -1.36f; fillableBarRequest.size = new Vector2(1.6f, 0.2f); fillableBarRequest.fillPercent = this.progress; fillableBarRequest.filledMat = barFilledMat; fillableBarRequest.unfilledMat = barUnfilledMat; fillableBarRequest.margin = 0.15f; fillableBarRequest.rotation = this.parent.Rotation.Rotated(RotationDirection.Clockwise); GenDraw.DrawFillableBar(fillableBarRequest); } }
// Token: 0x06000017 RID: 23 RVA: 0x000027B8 File Offset: 0x000009B8 public override void Draw() { base.Draw(); float temperature = this.GetRoom(RegionType.Set_Passable).Temperature; GenDraw.FillableBarRequest r = default(GenDraw.FillableBarRequest); r.center = this.DrawPos + Vector3.up * 0.05f; r.size = new Vector2(0.7f, 0.1f); r.margin = 0.05f; r.fillPercent = ((this.compFlickable == null || this.compFlickable.SwitchIsOn) ? (Mathf.Clamp(Mathf.Abs(temperature), 1f, 50f) / 50f) : 0f); r.unfilledMat = Building_TemperatureSwitch.GaugeUnfilledMat; bool flag = temperature > 0f; if (flag) { r.filledMat = Building_TemperatureSwitch.GaugeFillHotMat; } else { r.filledMat = Building_TemperatureSwitch.GaugeFillColdMat; } Rot4 rotation = base.Rotation; rotation.Rotate(RotationDirection.Clockwise); r.rotation = rotation; GenDraw.DrawFillableBar(r); }
public override void Draw() { base.Draw(); if (compWaterTank == null) { compWaterTank = base.GetComp <CompWaterTank>(); } GenDraw.FillableBarRequest r = default(GenDraw.FillableBarRequest); r.center = (this.DrawPos + Vector3.up * 0.1f) + compWaterTank.Props.indicatorOffset; r.size = new Vector2 (Building_Boiler.WaterBarSize.x * compWaterTank.Props.indicatorDrawSize.x, Building_Boiler.WaterBarSize.y * compWaterTank.Props.indicatorDrawSize.y); r.fillPercent = compWaterTank.StoredWater / compWaterTank.Props.storedWaterMax; r.filledMat = Building_Boiler.WaterFilledMat; r.unfilledMat = Building_Boiler.WaterUnfilledMat; r.margin = 0.15f; Rot4 rotation = base.Rotation; rotation.Rotate(RotationDirection.Clockwise); r.rotation = rotation; GenDraw.DrawFillableBar(r); if (this.ticksToExplode > 0 && base.Spawned) { base.Map.overlayDrawer.DrawOverlay(this, OverlayTypes.BurningWick); } }
public override void PostDraw() { base.PostDraw(); if (!allowAutoRefuel) { parent.Map.overlayDrawer.DrawOverlay(parent, OverlayTypes.ForbiddenRefuel); } else if (!HasFuel && Props.drawOutOfFuelOverlay) { parent.Map.overlayDrawer.DrawOverlay(parent, OverlayTypes.OutOfFuel); } if (Props.drawFuelGaugeInMap) { GenDraw.FillableBarRequest r = default(GenDraw.FillableBarRequest); r.center = parent.DrawPos + Vector3.up * 0.1f; r.size = FuelBarSize; r.fillPercent = FuelPercentOfMax; r.filledMat = FuelBarFilledMat; r.unfilledMat = FuelBarUnfilledMat; r.margin = 0.15f; Rot4 rotation = parent.Rotation; rotation.Rotate(RotationDirection.Clockwise); r.rotation = rotation; GenDraw.DrawFillableBar(r); } }
// Token: 0x0600000A RID: 10 RVA: 0x000023C0 File Offset: 0x000005C0 public override void Draw() { base.Draw(); var currentRotation = this.Rotation.AsInt; var room = (this.Position + this.Rotation.FacingCell).GetRoom(this.Map); //Log.Message($"Temperature Guage: temp {room.Temperature.ToString()}); float temperature = room.Temperature; GenDraw.FillableBarRequest r = default(GenDraw.FillableBarRequest); r.center = this.DrawPos; var offsetFromCenter = 0.4f; if (currentRotation == 0 || currentRotation == 2) { if (currentRotation == 0) // North { r.center.z = r.center.z + offsetFromCenter; } else // South { r.center.z = r.center.z - offsetFromCenter; } } else { if (currentRotation == 1) // East { r.center.x = r.center.x + offsetFromCenter; } else // West { r.center.x = r.center.x - offsetFromCenter; } } r.rotation = base.Rotation; r.size = new Vector2(0.45f, 0.1f); r.margin = 0.01f; r.fillPercent = Mathf.Clamp(Mathf.Abs(temperature), 1f, 50f) / 50f; r.unfilledMat = Building_TemperatureGaugeWall.GaugeUnfilledMat; bool flag = temperature > 0f; if (flag) { r.filledMat = Building_TemperatureGaugeWall.GaugeFillHotMat; } else { r.filledMat = Building_TemperatureGaugeWall.GaugeFillColdMat; } GenDraw.DrawFillableBar(r); }
public virtual void LiquidDraw(Color color, float fillPct) { GenDraw.FillableBarRequest r = default(GenDraw.FillableBarRequest); r.center = DrawPos + waterDrawCenter; r.size = waterDrawOffset; r.fillPercent = fillPct; r.filledMat = SolidColorMaterials.SimpleSolidColorMaterial(color, false); r.unfilledMat = SolidColorMaterials.SimpleSolidColorMaterial(new Color(0, 0, 0, 0), false); r.margin = 0f; Rot4 rotation = Rotation; rotation.Rotate(RotationDirection.Clockwise); r.rotation = rotation; GenDraw.DrawFillableBar(r); }
public override void PostDraw() { base.PostDraw(); var barRequest = new GenDraw.FillableBarRequest { center = parent.DrawPos + Vector3.up * .2f + Vector3.forward * .25f, size = BarSize, fillPercent = stored / Props.maxBuffer, filledMat = Resources.GasBarFilledMaterial, unfilledMat = Resources.GasBarUnfilledMaterial, margin = .1f, rotation = parent.Rotation.Rotated(RotationDirection.Clockwise) }; GenDraw.DrawFillableBar(barRequest); }
// Token: 0x0600123A RID: 4666 RVA: 0x0009E660 File Offset: 0x0009CA60 public override void PostDraw() { base.PostDraw(); GenDraw.FillableBarRequest r = default(GenDraw.FillableBarRequest); r.center = this.parent.DrawPos + Vector3.up * 0.1f; r.fillPercent = base.PowerOutput / 400f; r.margin = 0.15f; Rot4 rotation = this.parent.Rotation; rotation.Rotate(RotationDirection.Clockwise); r.rotation = rotation; GenDraw.DrawFillableBar(r); }
public override void PostDraw() { GenDraw.FillableBarRequest r = default; r.center = this.parent.DrawPos + Vector3.up * 0.1f; r.size = sd_adv_powergen_BarSize; r.fillPercent = this.PowerOutput / this.MaxPowerOutput; r.filledMat = BarFilledMat; r.unfilledMat = BarUnfilledMat; r.margin = 0.15f; Rot4 rotation = this.parent.Rotation; rotation.Rotate(RotationDirection.Clockwise); r.rotation = rotation; GenDraw.DrawFillableBar(r); }
public override void PostDraw() { base.PostDraw(); GenDraw.FillableBarRequest r = new GenDraw.FillableBarRequest(); r.center = this.parent.DrawPos + Vector3.up * 0.1f; r.size = BarSize; r.fillPercent = gas.totalPressure / MaxPressure; r.filledMat = PowerPlantSolarBarFilledMat; r.unfilledMat = PowerPlantSolarBarUnfilledMat; r.margin = 0.15f; Rot4 rotation = this.parent.Rotation; rotation.Rotate(RotationDirection.Clockwise); r.rotation = rotation; GenDraw.DrawFillableBar(r); }
public override void PostDraw() { base.PostDraw(); GenDraw.FillableBarRequest r = default(GenDraw.FillableBarRequest); r.center = this.parent.DrawPos + Vector3.up * 0.1f; r.size = new Vector2((float)(base.parent.def.graphic.drawSize.x * 0.8), (float)(base.parent.def.graphic.drawSize.y * 0.07)); r.fillPercent = base.PowerOutput / getFullSunPower(); r.filledMat = CompPowerPlantSolar.PowerPlantSolarBarFilledMat; r.unfilledMat = CompPowerPlantSolar.PowerPlantSolarBarUnfilledMat; r.margin = 0.15f; Rot4 rotation = this.parent.Rotation; rotation.Rotate(RotationDirection.Clockwise); r.rotation = rotation; GenDraw.DrawFillableBar(r); }
public override void PostDraw() { base.PostDraw(); GenDraw.FillableBarRequest r = default(GenDraw.FillableBarRequest); r.center = this.parent.DrawPos + Vector3.up * 0.1f; r.size = BarSize; r.fillPercent = base.PowerOutput / FullSunPower; r.filledMat = PowerPlantSolarBarFilledMat; r.unfilledMat = PowerPlantSolarBarUnfilledMat; r.margin = 0.15f; Rot4 rotation = this.parent.Rotation; rotation.Rotate(RotationDirection.Clockwise); r.rotation = rotation; GenDraw.DrawFillableBar(r); }
public override void Draw() { base.UpdatePositionAndRotation(); if (Find.CameraDriver.CurrentZoom == CameraZoomRange.Closest) { GenDraw.FillableBarRequest r = default(GenDraw.FillableBarRequest); r.center = this.exactPosition; r.center.z = r.center.z + this.offsetZ; r.size = new Vector2(this.exactScale.x, this.exactScale.z); r.fillPercent = this.progress; r.filledMat = MoteProgressBar.FilledMat; r.unfilledMat = MoteProgressBar.UnfilledMat; r.margin = 0.12f; GenDraw.DrawFillableBar(r); } }
public override void Draw() { base.Draw(); if (progress != -1) { GenDraw.FillableBarRequest fillableBarRequest = default(GenDraw.FillableBarRequest); fillableBarRequest.center = this.DrawPos + Vector3.forward * 0.8f + Vector3.right * 0.025f; fillableBarRequest.size = new Vector2(2.3f, 0.2f); fillableBarRequest.fillPercent = this.progress; fillableBarRequest.filledMat = GraphicsCache.barFilledMat; fillableBarRequest.unfilledMat = GraphicsCache.barUnfilledMat; fillableBarRequest.margin = 0.15f; fillableBarRequest.rotation = this.Rotation.Rotated(RotationDirection.Clockwise); GenDraw.DrawFillableBar(fillableBarRequest); } }
public override void PostDraw() { base.PostDraw(); GenDraw.FillableBarRequest r = default(GenDraw.FillableBarRequest); r.center = this.parent.DrawPos + Vector3.up * 0.1f; r.size = this._barSize; r.fillPercent = this.StoredMareepPower / this.MaxStoredMareepPower; r.filledMat = this._powerPlantSolarBarFilledMat; r.unfilledMat = this._powerPlantSolarBarUnfilledMat; r.margin = 0.15f; var rotation = this.parent.Rotation; rotation.Rotate(RotationDirection.Clockwise); r.rotation = rotation; GenDraw.DrawFillableBar(r); }
/// <summary> /// 绘制方法 /// </summary> public override void Draw() { base.Draw(); GenDraw.FillableBarRequest fbr = default(GenDraw.FillableBarRequest); //初始化一个填充条 fbr.center = DrawPos + Vector3.up * 0.1f; //绘制中心 fbr.size = new Vector2(2.3f, 0.14f); //尺寸 fbr.fillPercent = realPower / fullSunPower; //填充比例 fbr.filledMat = SolidColorMaterials.SimpleSolidColorMaterial(new Color(0.5f, 0.475f, 0.1f), false); //填充部分的颜色 fbr.unfilledMat = SolidColorMaterials.SimpleSolidColorMaterial(new Color(0.15f, 0.15f, 0.15f), false); //未填充部分的颜色 fbr.margin = 0.15f; //间距 Rot4 rot4 = Rotation; //旋转 rot4.Rotate(RotationDirection.Clockwise); //调整一下素材旋转度 fbr.rotation = rot4; GenDraw.DrawFillableBar(fbr); //出来吧电量条! }
public override void Draw() { base.Draw(); GenDraw.FillableBarRequest r = default(GenDraw.FillableBarRequest); r.center = this.DrawPos + Vector3.up * 0.1f; r.size = Building_SmallPowerPlantSolar.BarSize; r.fillPercent = this.powerComp.powerOutput / 900f; r.filledMat = Building_SmallPowerPlantSolar.BarFilledMat; r.unfilledMat = Building_SmallPowerPlantSolar.BarUnfilledMat; r.margin = 0.15f; IntRot rotation = this.Rotation; rotation.Rotate(RotationDirection.Clockwise); r.rotation = rotation; GenDraw.DrawFillableBar(r); }
public override void DrawEnergyBar() { CompSpeedChargeBattery comp = base.GetComp <CompSpeedChargeBattery>(); GenDraw.FillableBarRequest r = default(GenDraw.FillableBarRequest); r.center = this.DrawPos + Vector3.up * 0.1f; r.size = Building_SpeedChargeBattery.BarSize; r.fillPercent = comp.StoredEnergy / comp.Props.storedEnergyMax; r.filledMat = SolidColorMaterials.SimpleSolidColorMaterial(new Color(0.25f + comp.StoredEnergyPct, 1.2f - comp.StoredEnergyPct * 1.2f, 1f - comp.StoredEnergyPct), false); r.unfilledMat = BatteryBarUnfilledMat; r.margin = 0.15f; Rot4 rotation = base.Rotation; rotation.Rotate(RotationDirection.Clockwise); r.rotation = rotation; GenDraw.DrawFillableBar(r); }
public override void Draw() { base.Draw(); GenDraw.FillableBarRequest fillableBarRequest = default(GenDraw.FillableBarRequest); fillableBarRequest.center = this.DrawPos + Vector3.up; fillableBarRequest.size = new Vector2(1.6f, 0.2f); fillableBarRequest.fillPercent = this.progress; fillableBarRequest.filledMat = barFilledMat; fillableBarRequest.unfilledMat = barUnfilledMat; fillableBarRequest.margin = 0.15f; fillableBarRequest.rotation = this.Rotation.Rotated(RotationDirection.Clockwise); GenDraw.DrawFillableBar(fillableBarRequest); }
public override void PostDraw() { base.PostDraw(); if (this.ShowBar) { GenDraw.FillableBarRequest r = new GenDraw.FillableBarRequest(); r.center = this.parent.DrawPos + Vector3.up * 0.1f + Vector3.back * this.parent.def.size.z / 4.0f; r.size = new Vector2(this.parent.RotatedSize.x, BarThick); //r.center = new Vector3(this.parent.DrawPos.x, 0.1f, 1.0f - r.size.y / 2.0f); //Log.Message(this.parent.DrawPos.ToString()); r.fillPercent = this.StoredWaterVolume / this.MaxWaterVolume; r.filledMat = BarFilledMat; r.unfilledMat = BarUnfilledMat; r.margin = 0.15f; GenDraw.DrawFillableBar(r); } }
public override void Draw() { base.Draw(); if (!this.Empty) { Vector3 drawPos = this.DrawPos; drawPos.y += 0.046875f; drawPos.z += 0.25f; GenDraw.FillableBarRequest r = default(GenDraw.FillableBarRequest); r.center = drawPos; r.size = Building_FermentingBarrel.BarSize; r.fillPercent = (float)((float)this.wortCount / 25.0); r.filledMat = this.BarFilledMat; r.unfilledMat = Building_FermentingBarrel.BarUnfilledMat; r.margin = 0.1f; r.rotation = Rot4.North; GenDraw.DrawFillableBar(r); } }
// Token: 0x06000016 RID: 22 RVA: 0x00002488 File Offset: 0x00000688 public override void PostDraw() { base.PostDraw(); if (!this.Empty) { Vector3 drawPos = this.parent.DrawPos; drawPos.y += 0.0483870953f; drawPos.z += 0.25f; GenDraw.FillableBarRequest fillableBarRequest = default(GenDraw.FillableBarRequest); fillableBarRequest.center = drawPos; fillableBarRequest.size = Static_Bar.Size; fillableBarRequest.fillPercent = (float)(this.ingredientCount / this.Product.maxCapacity); fillableBarRequest.filledMat = this.BarFilledMat; fillableBarRequest.unfilledMat = Static_Bar.UnfilledMat; fillableBarRequest.margin = 0.1f; fillableBarRequest.rotation = Rot4.North; GenDraw.DrawFillableBar(fillableBarRequest); } }
public override void Draw() { base.Draw(); if (!Empty) { Vector3 drawPos = DrawPos; drawPos.y += 3f / 70f; drawPos.z += 0.25f; GenDraw.FillableBarRequest r = default(GenDraw.FillableBarRequest); r.center = drawPos; r.size = BarSize; r.fillPercent = (float)wortCount / 25f; r.filledMat = BarFilledMat; r.unfilledMat = BarUnfilledMat; r.margin = 0.1f; r.rotation = Rot4.North; GenDraw.DrawFillableBar(r); } }
/// <summary> /// Posts the draw. /// </summary> public void PreDraw() { if (!_filling && !_full) { return; } float fillP = _full ? 1 : PercentFilled; GenDraw.FillableBarRequest req = new GenDraw.FillableBarRequest() { center = parent.DrawPos + Props.barOffset, size = Props.barSize, fillPercent = fillP, rotation = parent.Rotation.Rotated(RotationDirection.Clockwise), filledMat = SolidColorMaterials.SimpleSolidColorMaterial(Props.barColor), unfilledMat = SolidColorMaterials.SimpleSolidColorMaterial(Color.clear) }; GenDraw.DrawFillableBar(req); }
public override void Draw() { base.Draw(); CompPowerBattery comp = GetComp <CompPowerBattery>(); GenDraw.FillableBarRequest r = default(GenDraw.FillableBarRequest); r.center = DrawPos + Vector3.up * 0.1f + Vector3.forward * 0.25f; r.size = BarSize; r.fillPercent = comp.StoredEnergy / comp.Props.storedEnergyMax; r.filledMat = BatteryBarFilledMat; r.unfilledMat = BatteryBarUnfilledMat; r.margin = 0.15f; r.rotation = Rotation; GenDraw.DrawFillableBar(r); if (ticksToExplode > 0 && Spawned) { Map.overlayDrawer.DrawOverlay(this, OverlayTypes.BurningWick); } }
/// <summary> /// Draw power display /// </summary> public override void Draw() { base.Draw(); GenDraw.FillableBarRequest fillableBarRequest = new GenDraw.FillableBarRequest() { center = DrawPos + (Vector3.up * 0.1f), size = BarSize, fillPercent = powerComp.PowerOutput / (-powerComp.Props.basePowerConsumption * maxWindIntensity), filledMat = BarFilledMat, unfilledMat = BarUnfilledMat, margin = 0.15f }; Rot4 rotation = base.Rotation; rotation.Rotate(RotationDirection.Clockwise); fillableBarRequest.rotation = rotation; GenDraw.DrawFillableBar(fillableBarRequest); }
public override void Draw() { base.Draw(); GenDraw.FillableBarRequest req = new GenDraw.FillableBarRequest(); req.center = DrawPos + Vector3.up*0.1f; req.size = BarSize; req.fillPercent = powerComp.powerOutput / FullSunPower; //if(req.FillPercent > 0.01f ) // req.FillPercent += Mathf.Sin((Find.TickManager.tickCount+thingIDNumber) * BarWobbleFreq) * BarWobbleAmp; req.filledMat = BarFilledMat; req.unfilledMat = BarUnfilledMat; req.margin = 0.15f; IntRot rot = rotation; rot.Rotate(RotationDirection.Clockwise); req.rotation = rot; GenDraw.DrawFillableBar(req); }