public static void updateSize() { Y_SOCIAL_FRAME = Y_SOCIAL_FRAME_DEFAULT * Mideas.getDisplayYFactor(); X_SOCIAL_FRAME = X_SOCIAL_FRAME_DEFAULT * Mideas.getDisplayXFactor(); friendButtonMenu.update( X_SOCIAL_FRAME + 20 * Mideas.getDisplayXFactor(), Y_SOCIAL_FRAME + BUTTON_MENU_Y * Mideas.getDisplayYFactor(), 54 * Mideas.getDisplayXFactor(), BUTTON_MENU_Y_SIZE * Mideas.getDisplayYFactor()); whoButtonMenu.update( X_SOCIAL_FRAME + 80 * Mideas.getDisplayXFactor(), Y_SOCIAL_FRAME + BUTTON_MENU_Y * Mideas.getDisplayYFactor(), 44 * Mideas.getDisplayXFactor(), BUTTON_MENU_Y_SIZE * Mideas.getDisplayYFactor()); guildButtonMenu.update( X_SOCIAL_FRAME + 130 * Mideas.getDisplayXFactor(), Y_SOCIAL_FRAME + BUTTON_MENU_Y * Mideas.getDisplayYFactor(), 60 * Mideas.getDisplayXFactor(), BUTTON_MENU_Y_SIZE * Mideas.getDisplayYFactor()); discussionButtonMenu.update( X_SOCIAL_FRAME + 194 * Mideas.getDisplayXFactor(), Y_SOCIAL_FRAME + BUTTON_MENU_Y * Mideas.getDisplayYFactor(), 85 * Mideas.getDisplayXFactor(), BUTTON_MENU_Y_SIZE * Mideas.getDisplayYFactor()); raidButtonMenu.update( X_SOCIAL_FRAME + 285 * Mideas.getDisplayXFactor(), Y_SOCIAL_FRAME + BUTTON_MENU_Y * Mideas.getDisplayYFactor(), 49 * Mideas.getDisplayXFactor(), BUTTON_MENU_Y_SIZE * Mideas.getDisplayYFactor()); closeFrame.update( X_SOCIAL_FRAME + 370 * Mideas.getDisplayXFactor(), Y_SOCIAL_FRAME + 14 * Mideas.getDisplayYFactor()); }
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; }
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(); } }