Example #1
0
        /* Update UI function */
        public override void Update(GameTime gameTime)
        {
            /* Set lvl and xp info */
            lvlNumText.SetText(Main.LocalPlayer.GetModPlayer <StandoPlayer>().GetStandLevel());
            xpNumText.SetText(Main.LocalPlayer.GetModPlayer <StandoPlayer>().GetStandXP());
            xpProgressBar.SetProgress(Main.LocalPlayer.GetModPlayer <StandoPlayer>().GetStandXPProgress());

            /* Block left click if mouse on button */
            if (hideUiButton.IsMouseHovering)
            {
                Main.blockMouse = true;
            }

            /* Hide animation */
            HideAnimation();

            base.Update(gameTime);
        }