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

◆ InfoDisplayPageHandler()

static void Terraria.Main.InfoDisplayPageHandler ( int startX,
ref string mouseText,
out int startingDisplay,
out int endingDisplay )
inlinestatic

Definition at line 83558 of file Main.cs.

83559 {
83560 //IL_0084: Unknown result type (might be due to invalid IL or missing references)
83561 //IL_0177: Unknown result type (might be due to invalid IL or missing references)
83562 //IL_0187: Unknown result type (might be due to invalid IL or missing references)
83563 //IL_0191: Unknown result type (might be due to invalid IL or missing references)
83564 //IL_019d: Unknown result type (might be due to invalid IL or missing references)
83565 //IL_01a3: Unknown result type (might be due to invalid IL or missing references)
83566 //IL_0096: Unknown result type (might be due to invalid IL or missing references)
83567 //IL_022f: Unknown result type (might be due to invalid IL or missing references)
83568 //IL_01ca: Unknown result type (might be due to invalid IL or missing references)
83569 //IL_01cc: Unknown result type (might be due to invalid IL or missing references)
83570 //IL_01d6: Unknown result type (might be due to invalid IL or missing references)
83571 //IL_01db: Unknown result type (might be due to invalid IL or missing references)
83572 //IL_01ea: Unknown result type (might be due to invalid IL or missing references)
83573 //IL_01f6: Unknown result type (might be due to invalid IL or missing references)
83574 //IL_01fc: Unknown result type (might be due to invalid IL or missing references)
83575 //IL_00a8: Unknown result type (might be due to invalid IL or missing references)
83576 //IL_031a: Unknown result type (might be due to invalid IL or missing references)
83577 //IL_032a: Unknown result type (might be due to invalid IL or missing references)
83578 //IL_0334: Unknown result type (might be due to invalid IL or missing references)
83579 //IL_0340: Unknown result type (might be due to invalid IL or missing references)
83580 //IL_0346: Unknown result type (might be due to invalid IL or missing references)
83581 //IL_0241: Unknown result type (might be due to invalid IL or missing references)
83582 //IL_00c2: Unknown result type (might be due to invalid IL or missing references)
83583 //IL_036d: Unknown result type (might be due to invalid IL or missing references)
83584 //IL_036f: Unknown result type (might be due to invalid IL or missing references)
83585 //IL_0379: Unknown result type (might be due to invalid IL or missing references)
83586 //IL_037e: Unknown result type (might be due to invalid IL or missing references)
83587 //IL_038d: Unknown result type (might be due to invalid IL or missing references)
83588 //IL_0399: Unknown result type (might be due to invalid IL or missing references)
83589 //IL_039f: Unknown result type (might be due to invalid IL or missing references)
83590 //IL_0253: Unknown result type (might be due to invalid IL or missing references)
83591 //IL_026d: Unknown result type (might be due to invalid IL or missing references)
83592 startingDisplay = 0;
83595 {
83596 return;
83597 }
83600 {
83602 }
83603 else
83604 {
83606 }
83607 if (startingDisplay >= 8)
83608 {
83610 }
83611 endingDisplay++;
83613 bool hovering = false;
83615 Vector2 buttonPosition = default(Vector2);
83616 ((Vector2)(ref buttonPosition))._002Ector((float)X, (float)(Y + 20));
83617 if ((float)mouseX >= buttonPosition.X && (float)mouseY >= buttonPosition.Y && (float)mouseX <= buttonPosition.X + (float)buttonTexture.Width && (float)mouseY <= buttonPosition.Y + (float)buttonTexture.Height && !PlayerInput.IgnoreMouseInterface)
83618 {
83619 hovering = true;
83620 player[myPlayer].mouseInterface = true;
83622 {
83624 mouseLeftRelease = false;
83625 if (InfoDisplayLoader.ActivePages() != InfoDisplayLoader.InfoDisplayPage + 1)
83626 {
83628 }
83629 else
83630 {
83631 InfoDisplayLoader.InfoDisplayPage = 0;
83632 }
83633 }
83634 if (!Main.mouseText)
83635 {
83636 mouseText = ((InfoDisplayLoader.ActivePages() != InfoDisplayLoader.InfoDisplayPage + 1) ? Language.GetTextValue("tModLoader.NextInfoAccPage") : Language.GetTextValue("tModLoader.FirstInfoAccPage"));
83637 Main.mouseText = true;
83638 }
83639 }
83640 spriteBatch.Draw(buttonTexture, buttonPosition, (Rectangle?)new Rectangle(0, 0, buttonTexture.Width, buttonTexture.Height), Color.White, 0f, default(Vector2), 1f, (SpriteEffects)0, 0f);
83641 if (hovering)
83642 {
83643 spriteBatch.Draw(TextureAssets.InfoIcon[13].Value, buttonPosition - Vector2.One * 2f, (Rectangle?)null, OurFavoriteColor, 0f, default(Vector2), 1f, (SpriteEffects)0, 0f);
83644 }
83645 hovering = false;
83647 ((Vector2)(ref buttonPosition))._002Ector((float)X, (float)(Y + 20));
83648 if ((float)mouseX >= buttonPosition.X && (float)mouseY >= buttonPosition.Y && (float)mouseX <= buttonPosition.X + (float)buttonTexture.Width && (float)mouseY <= buttonPosition.Y + (float)buttonTexture.Height && !PlayerInput.IgnoreMouseInterface)
83649 {
83650 hovering = true;
83651 player[myPlayer].mouseInterface = true;
83653 {
83655 mouseLeftRelease = false;
83657 {
83659 }
83660 else
83661 {
83662 InfoDisplayLoader.InfoDisplayPage = InfoDisplayLoader.ActivePages() - 1;
83663 }
83664 }
83665 if (!Main.mouseText)
83666 {
83667 mouseText = ((InfoDisplayLoader.InfoDisplayPage != 0) ? Language.GetTextValue("tModLoader.PreviousInfoAccPage") : Language.GetTextValue("tModLoader.LastInfoAccPage"));
83668 Main.mouseText = true;
83669 }
83670 }
83671 spriteBatch.Draw(buttonTexture, buttonPosition, (Rectangle?)new Rectangle(0, 0, buttonTexture.Width, buttonTexture.Height), Color.White, 0f, default(Vector2), 1f, (SpriteEffects)1, 0f);
83672 if (hovering)
83673 {
83674 spriteBatch.Draw(TextureAssets.InfoIcon[13].Value, buttonPosition - Vector2.One * 2f, (Rectangle?)null, OurFavoriteColor, 0f, default(Vector2), 1f, (SpriteEffects)0, 0f);
83675 }
83676 }
static SlotId PlaySound(in SoundStyle? style, Vector2? position=null, SoundUpdateCallback? updateCallback=null)
Attempts to play a sound style with the provided sound style (if it's not null), and returns a valid ...
static Asset< Texture2D >[] InfoIcon
static string GetTextValue(string key)
Retrieves the text value for a specified localization key. The text returned will be for the currentl...
Definition Language.cs:35
Contains methods to access or retrieve localization values. The Localization Guideteaches more about ...
Definition Language.cs:12
static SpriteBatch spriteBatch
Definition Main.cs:1043
static int myPlayer
The index in F:Terraria.Main.player of this client's Player. If this is 255, this client is the ser...
Definition Main.cs:1958
static bool mouseLeftRelease
Definition Main.cs:1908
static bool mouseText
Definition Main.cs:2536
static Color OurFavoriteColor
Definition Main.cs:971
static bool playerInventory
Definition Main.cs:1912
static int mouseY
Definition Main.cs:634
static void GetInfoAccIconPosition(int drawnCount, int StartX, out int X, out int Y)
Definition Main.cs:61221
static Player[] player
Definition Main.cs:1960
static int mouseX
Definition Main.cs:632
static bool mouseLeft
Definition Main.cs:642
static Asset< Texture2D > InfoDisplayPageArrowTexture
Definition UICommon.cs:64

References Terraria.ModLoader.InfoDisplayLoader.ActiveDisplays(), Terraria.ModLoader.InfoDisplayLoader.ActivePages(), Terraria.Main.GetInfoAccIconPosition(), Terraria.Localization.Language.GetTextValue(), Terraria.GameInput.PlayerInput.IgnoreMouseInterface, Terraria.ModLoader.InfoDisplayLoader.InfoDisplayCount, Terraria.ModLoader.InfoDisplayLoader.InfoDisplayPage, Terraria.ModLoader.UI.UICommon.InfoDisplayPageArrowTexture, Terraria.GameContent.TextureAssets.InfoIcon, Terraria.Main.mouseLeft, Terraria.Main.mouseLeftRelease, Terraria.Main.mouseText, Terraria.Main.mouseX, Terraria.Main.mouseY, Terraria.Main.myPlayer, Terraria.Main.OurFavoriteColor, Terraria.Main.player, Terraria.Main.playerInventory, Terraria.Audio.SoundEngine.PlaySound(), and Terraria.Main.spriteBatch.

Referenced by Terraria.Main.DrawInfoAccs().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: