コード例 #1
0
 public override void receiveLeftClick(int x, int y, bool playSound = true)
 {
     if (emojiMenuIcon.containsPoint(x, y))
     {
         choosingEmoji = !choosingEmoji;
         Game1.playSound("shwip");
         emojiMenuIcon.scale = 4f;
         return;
     }
     if (choosingEmoji && emojiMenu.isWithinBounds(x, y))
     {
         emojiMenu.leftClick(x, y, this);
         return;
     }
     chatBox.Update();
     if (choosingEmoji)
     {
         choosingEmoji       = false;
         emojiMenuIcon.scale = 4f;
     }
     if (isWithinBounds(x, y))
     {
         chatBox.Selected = true;
     }
 }