Skip to content

Commit

Permalink
System Truck tab Use image array for Vehicle integrity [update]
Browse files Browse the repository at this point in the history
  • Loading branch information
LIPtoH committed Nov 24, 2023
1 parent c8c6cf7 commit 78f9d47
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions TS SE Tool/Forms/MainTabs/FormMethodsTruckTab.cs
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,7 @@ private void UpdateTruckPanelProgressBar(byte _number)

int pnlWidthFixable = (int)(pbPanel.Width * _wear);

using (TextureBrush brush = new TextureBrush(Bitmap.FromFile(@"img\UI\wrench-pattern.png"), WrapMode.Tile))
using (TextureBrush brush = new TextureBrush(VehicleIntegrityPBImg[0], WrapMode.Tile))
{
SolidBrush wearPen = new SolidBrush(Color.Yellow);
g.FillRectangle(wearPen, pnlWidth, 0, pnlWidthFixable, pbPanel.Height);
Expand All @@ -635,7 +635,7 @@ private void UpdateTruckPanelProgressBar(byte _number)

int pnlWidthUnfixable = (int)(pbPanel.Width * _unfixableWear);

using (TextureBrush brush = new TextureBrush(Bitmap.FromFile(@"img\UI\swap-pattern.png"), WrapMode.Tile))
using (TextureBrush brush = new TextureBrush(VehicleIntegrityPBImg[1], WrapMode.Tile))
{
SolidBrush wearPen = new SolidBrush(Color.Orange);
g.FillRectangle(wearPen, pnlWidth + pnlWidthFixable, 0, pnlWidthUnfixable, pbPanel.Height);
Expand All @@ -647,7 +647,7 @@ private void UpdateTruckPanelProgressBar(byte _number)

int pnlWidthPermanent = (int)(pbPanel.Width * _permanentWear);

using (TextureBrush brush = new TextureBrush(Bitmap.FromFile(@"img\UI\skull-pattern.png"), WrapMode.Tile))
using (TextureBrush brush = new TextureBrush(VehicleIntegrityPBImg[2], WrapMode.Tile))
{
SolidBrush wearPen = new SolidBrush(Color.Red);
g.FillRectangle(wearPen, pnlWidth + pnlWidthFixable + pnlWidthUnfixable, 0, pnlWidthPermanent, pbPanel.Height);
Expand Down

0 comments on commit 78f9d47

Please sign in to comment.