191 {
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213 int teamNamePlateDistance = Main.teamNamePlateDistance;
214 if (teamNamePlateDistance <= 0)
215 {
216 return;
217 }
220 SpriteBatch spriteBatch = Main.spriteBatch;
222 int screenWidth = Main.screenWidth;
223 int screenHeight = Main.screenHeight;
224 Vector2 screenPosition = Main.screenPosition;
226 int num = teamNamePlateDistance * 8;
227 Player[] player = Main.player;
228 int myPlayer = Main.myPlayer;
229 byte mouseTextColor = Main.mouseTextColor;
230 Color[] teamColor = Main.teamColor;
231 _ = Main.screenPosition;
233 float num2 = (float)(
int)mouseTextColor / 255
f;
235 {
236 return;
237 }
238 DynamicSpriteFont value = FontAssets.MouseText.Value;
239 Color color = default(Color);
240 for (int i = 0; i < 255; i++)
241 {
242 if (i == myPlayer)
243 {
244 continue;
245 }
248 {
249 continue;
250 }
253 ((Color)(
ref color)).
_002Ector((
int)(byte)((
float)(int)((Color)(
ref teamColor[
player3.team])).R *
num2), (
int)(byte)((
float)(int)((Color)(
ref teamColor[
player3.team])).G *
num2), (
int)(byte)((
float)(int)((Color)(
ref teamColor[
player3.team])).B *
num2), (
int)mouseTextColor);
255 {
258 {
261 num5 -= (measurement.X - 85
f) / 2
f;
264 npDistPos.X = namePlatePos.X -
num5;
265 npDistPos.Y = namePlatePos.Y + measurement.Y / 2
f - npDistPos.Y / 2
f -
num4;
267 }
268 }
269 else
270 {
272 }
273 }
274 spriteBatch.End();
277 {
279 }
281 {
283 }
285 {
287 }
288 spriteBatch.End();
291 {
293 }
294 spriteBatch.End();
297 {
299 }
300 }
List< PlayerOnScreenCache > _playerOnScreenCache
static void GetDistance(int testWidth, int testHeight, Vector2 testPosition, Player localPlayer, DynamicSpriteFont font, Player player, string nameToShow, out Vector2 namePlatePos, out float namePlateDist, out Vector2 measurement)
List< PlayerOffScreenCache > _playerOffScreenCache
static string GetTextValue(string key)
Retrieves the text value for a specified localization key. The text returned will be for the currentl...
Contains methods to access or retrieve localization values. The Localization Guideteaches more about ...