public void DrawButtons()
        {
            var menu = modEntry.GetValidButtonSmashMenu();

            if (menu == null)
            {
                return;
            }

            buttonHandler.UpdateBounds(menu);

            buttonHandler.DrawButtons();
        }
示例#2
0
        internal bool TryHover(float x, float y)
        {
            this.hoverTextColor   = "";
            this.hoverTextQuality = "";
            var menu = modEntry.GetValidButtonSmashMenu();

            if (menu != null)
            {
                buttonColor.tryHover((int)x, (int)y, 0.25f);
                if (buttonColor.containsPoint((int)x, (int)y))
                {
                    this.hoverTextColor = buttonColor.hoverText;
                    return(true);
                }

                buttonQuality.tryHover((int)x, (int)y, 0.25f);
                if (buttonQuality.containsPoint((int)x, (int)y))
                {
                    this.hoverTextQuality = buttonQuality.hoverText;
                    return(true);
                }
            }
            return(false);
        }