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

◆ Draw()

override void Terraria.Graphics.Capture.CaptureInterface.ModeChangeSettings.Draw ( SpriteBatch sb)
inline

Definition at line 832 of file CaptureInterface.cs.

833 {
834 if (!Selected)
835 {
836 return;
837 }
838 sb.End();
841 ((ModeDragBounds)Modes[1]).currentAim = -1;
842 ((ModeDragBounds)Modes[1]).DrawMarkedArea(sb);
843 sb.End();
847 Utils.DrawInvBG(sb, rect, new Color(63, 65, 151, 255) * 0.485f);
848 for (int i = 0; i < 7; i++)
849 {
850 string key = "";
851 string value = "";
854 if (i == hoveredButton)
855 {
857 }
858 ChatManager.DrawColorCodedStringWithShadow(sb, FontAssets.ItemStack.Value, key, rect.TopLeft() + new Vector2(20f, 20 + 20 * i), baseColor, 0f, Vector2.Zero, Vector2.One);
859 ChatManager.DrawColorCodedStringWithShadow(sb, FontAssets.ItemStack.Value, value, rect.TopRight() + new Vector2(-20f, 20 + 20 * i), baseColor, 0f, FontAssets.ItemStack.Value.MeasureString(value) * Vector2.UnitX, Vector2.One);
860 }
861 DrawWaterChoices(sb, (rect.TopLeft() + new Vector2(rect.Width / 2 - 84, 90f)).ToPoint(), Main.MouseScreen.ToPoint());
862 }
static readonly BlendState AlphaBlend
Definition BlendState.cs:36
static readonly RasterizerState CullCounterClockwise
static readonly SamplerState LinearClamp
static Asset< DynamicSpriteFont > ItemStack
Definition FontAssets.cs:8
void ButtonDraw(int button, ref string key, ref string value)
void DrawWaterChoices(SpriteBatch spritebatch, Point start, Point mouse)
static Dictionary< int, CaptureInterfaceMode > Modes
static Vector2 DrawColorCodedStringWithShadow(SpriteBatch spriteBatch, DynamicSpriteFont font, TextSnippet[] snippets, Vector2 position, float rotation, Vector2 origin, Vector2 baseScale, out int hoveredSnippet, float maxWidth=-1f, float spread=2f)

References Microsoft.Xna.Framework.Graphics.BlendState.AlphaBlend, Microsoft.Xna.Framework.Graphics.SpriteBatch.Begin(), Terraria.Graphics.Capture.CaptureInterface.ModeChangeSettings.ButtonDraw(), Microsoft.Xna.Framework.Graphics.Color, Microsoft.Xna.Framework.Graphics.RasterizerState.CullCounterClockwise, Terraria.Main.CurrentWantedZoomMatrix, Terraria.UI.Chat.ChatManager.DrawColorCodedStringWithShadow(), Terraria.Utils.DrawInvBG(), Terraria.Graphics.Capture.CaptureInterface.ModeChangeSettings.DrawWaterChoices(), Microsoft.Xna.Framework.Graphics.SpriteBatch.End(), Terraria.Graphics.Capture.CaptureInterface.ModeChangeSettings.GetRect(), Microsoft.Xna.Framework.Color.Gold, Terraria.Graphics.Capture.CaptureInterface.ModeChangeSettings.hoveredButton, Terraria.GameContent.FontAssets.ItemStack, System.key, Microsoft.Xna.Framework.Graphics.SamplerState.LinearClamp, Terraria.Graphics.Capture.CaptureInterface.Modes, Terraria.Main.MouseScreen, Microsoft.Xna.Framework.Graphics.DepthStencilState.None, Microsoft.Xna.Framework.Vector2.One, Terraria.Graphics.Capture.CaptureInterface.CaptureInterfaceMode.Selected, Terraria.GameInput.PlayerInput.SetZoom_Context(), Terraria.GameInput.PlayerInput.SetZoom_UI(), Terraria.Main.UIScaleMatrix, Microsoft.Xna.Framework.Vector2.UnitX, System.value, Microsoft.Xna.Framework.Color.White, and Microsoft.Xna.Framework.Vector2.Zero.