Exemple #1
0
 public static boolean mouseEvent() {
   if (friendButtonMenu.event()) return true;
   if (whoButtonMenu.event()) return true;
   if (guildButtonMenu.event()) return true;
   if (discussionButtonMenu.event()) return true;
   if (raidButtonMenu.event()) return true;
   if (closeFrame.event()) return true;
   if (selectedMenu == SocialFrameMenu.FRIEND_FRAME) {
     return FriendsFrame.mouseEvent();
   } else if (selectedMenu == SocialFrameMenu.WHO_FRAME) {
     return mouseEventWhoFrame();
   } else if (selectedMenu == SocialFrameMenu.GUILD_FRAME) {
     return GuildFrame.mouseEvent();
   } else if (selectedMenu == SocialFrameMenu.DISCUSSION_FRAME) {
     return mouseEventDiscussionFrame();
   } else if (selectedMenu == SocialFrameMenu.RAID_FRAME) {
     return mouseEventRaidFrame();
   }
   return false;
 }
Exemple #2
0
 public static void draw() {
   if (selectedMenu == SocialFrameMenu.FRIEND_FRAME) {
     FriendsFrame.draw();
   } else if (selectedMenu == SocialFrameMenu.WHO_FRAME) {
     drawWhoFrame();
   } else if (selectedMenu == SocialFrameMenu.GUILD_FRAME) {
     GuildFrame.draw();
   } else if (selectedMenu == SocialFrameMenu.DISCUSSION_FRAME) {
     drawDiscussionFrame();
   } else if (selectedMenu == SocialFrameMenu.RAID_FRAME) {
     drawRaidFrame();
   }
   if (draw) {
     friendButtonMenu.draw();
     whoButtonMenu.draw();
     guildButtonMenu.draw();
     discussionButtonMenu.draw();
     raidButtonMenu.draw();
     closeFrame.draw();
   }
 }