15 Rectangle destinationRectangle = rectangle;
16 destinationRectangle.
Inflate(2, 2);
19 Rectangle destinationRectangle2 = rectangle;
20 destinationRectangle2.Width = (int)((
float)destinationRectangle2.Width * lifePercent);
21 spriteBatch.
Draw(value, destinationRectangle, value2,
Color.
White * 0.6f);
31 int verticalFrames = 6;
32 Rectangle value2 = value.Frame(1, verticalFrames, 0, 3);
33 Color color = Color.White * 0.2f;
34 float num = lifeAmount / lifeMax;
35 int num2 = (int)((
float)p.X * num);
37 Rectangle value3 = value.Frame(1, verticalFrames, 0, 2);
42 Rectangle value4 = value.Frame(1, verticalFrames, 0, 1);
48 Vector2 vector = rectangle.TopLeft() - p2.ToVector2();
52 Rectangle value5 = value.Frame(1, verticalFrames);
55 spriteBatch.
Draw(barIconTexture, vector + vector2, barIconFrame,
Color.
White, 0f, barIconFrame.Size() / 2f, 1f,
SpriteEffects.None, 0f);
68 Vector2 vector2 = value.MeasureString(text);
70 text = ((int)current).ToString();
71 vector2 = value.MeasureString(text);
73 text = ((int)max).ToString();
74 vector2 = value.MeasureString(text);
83 int verticalFrames = 6;
84 Rectangle value2 = value.Frame(1, verticalFrames, 0, 3);
85 Color color = Color.White * 0.2f;
86 float num = lifeAmount / lifeMax;
87 int num2 = (int)((
float)p.X * num);
89 Rectangle value3 = value.Frame(1, verticalFrames, 0, 2);
94 Rectangle value4 = value.Frame(1, verticalFrames, 0, 1);
99 float num3 = shieldCurrent / shieldMax;
100 int num4 = (int)((
float)p.X * num3);
102 Rectangle value5 = value.Frame(1, verticalFrames, 0, 5);
107 Rectangle value6 = value.Frame(1, verticalFrames, 0, 4);
113 Vector2 vector = rectangle.TopLeft() - p2.ToVector2();
119 Rectangle value7 = value.Frame(1, verticalFrames);
121 Vector2 vector2 =
new Vector2(4f, 20f) + barIconFrame.Size() / 2f;
122 spriteBatch.
Draw(barIconTexture, vector + vector2, barIconFrame,
Color.
White, 0f, barIconFrame.Size() / 2f, 1f,
SpriteEffects.None, 0f);
125 if (shieldCurrent > 0f)