TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ DrawBorderStringFourWay()

static void Terraria.Utils.DrawBorderStringFourWay ( SpriteBatch sb,
DynamicSpriteFont font,
string text,
float x,
float y,
Color textColor,
Color borderColor,
Vector2 origin,
float scale = 1f )
inlinestatic

Definition at line 2377 of file Utils.cs.

2378 {
2379 //IL_0000: Unknown result type (might be due to invalid IL or missing references)
2380 //IL_0002: Unknown result type (might be due to invalid IL or missing references)
2381 //IL_0003: Unknown result type (might be due to invalid IL or missing references)
2382 //IL_0008: Unknown result type (might be due to invalid IL or missing references)
2383 //IL_00a3: Unknown result type (might be due to invalid IL or missing references)
2384 //IL_00a4: Unknown result type (might be due to invalid IL or missing references)
2385 //IL_00aa: Unknown result type (might be due to invalid IL or missing references)
2386 //IL_009d: Unknown result type (might be due to invalid IL or missing references)
2387 //IL_009f: Unknown result type (might be due to invalid IL or missing references)
2388 Color color = borderColor;
2389 Vector2 zero = Vector2.Zero;
2390 for (int i = 0; i < 5; i++)
2391 {
2392 switch (i)
2393 {
2394 case 0:
2395 zero.X = x - 2f;
2396 zero.Y = y;
2397 break;
2398 case 1:
2399 zero.X = x + 2f;
2400 zero.Y = y;
2401 break;
2402 case 2:
2403 zero.X = x;
2404 zero.Y = y - 2f;
2405 break;
2406 case 3:
2407 zero.X = x;
2408 zero.Y = y + 2f;
2409 break;
2410 default:
2411 zero.X = x;
2412 zero.Y = y;
2413 color = textColor;
2414 break;
2415 }
2416 sb.DrawString(font, text, zero, color, 0f, origin, scale, (SpriteEffects)0, 0f);
2417 }
2418 }

Referenced by Terraria.GameContent.UI.States.UIAchievementsMenu.Draw(), Terraria.GameContent.UI.States.UICharacterCreation.Draw(), Terraria.GameContent.UI.WorkshopPublishingIndicator.Draw(), Terraria.GameContent.UI.BigProgressBar.BigProgressBarHelper.DrawHealthText(), Terraria.GameContent.UI.BigProgressBar.BigProgressBarHelper.DrawHealthText(), Terraria.Main.DrawInventory(), Terraria.Main.DrawMenu(), Terraria.UI.ItemSlot.DrawMoney(), Terraria.Main.DrawMouseOver(), Terraria.GameContent.UI.CustomCurrencyManager.DrawSavings(), and Terraria.GameContent.UI.CustomCurrencySingleCoin.DrawSavingsMoney().

+ Here is the caller graph for this function: