示例#1
0
        public override void Click(UIMouseEvent evt)
        {
            CalculatedStyle dimensions = GetDimensions();
            Rectangle       hitbox     = new CalculatedStyle(dimensions.X, dimensions.Y, dimensions.Width, 20).ToRectangle();

            if (hitbox.Contains(evt.MousePosition))
            {
                Main.PlaySound(SoundID.MenuTick);

                Expand();
            }
        }