use "gamepanes"; use "font"; use "gameoverscreendata"; ///////////////////////////////////////////////////////////////////////////// // // Game Over Screen // ///////////////////////////////////////////////////////////////////////////// // // Normal buttons // backButtonPane = ButtonPane(ImportImage("btngamelobbybmp", true), ButtonNormal, false); // // player stats pane // statsColumns = [28, 119, 198, 251, 323, 371, 434, 482, 538, 570]; statsHeaderColumns = [28, 135, 195, 245, 316, 365, 428, 476, 532, 570]; statsListHeader = ButtonBarPane(ImportImage(headerName, false), Button3State, statsHeaderColumns, false); statsScrollBar = ScrollBarPane(Point(16, 169)); statsListPane = ListWithScrollBarPane(Point(570, 168), statsScrollBar); // // team / squad stats pane // statsSideColumns = [53, 207, 262, 329, 386, 461, 508, 571]; statsSideListHeader = ButtonBarPane( SwitchImage( SquadGame, ImportImage("headerendteambmp", false), [ (1 , ImportImage("headerendsquadbmp", false)) ] ), Button3State, statsSideColumns, false); // statsSideListHeader = ButtonBarPane(ImportImage("headerendteambmp", false), Button3State, statsSideColumns, false); statsSideListPane = ListPane(Point(571, 86)); // // chat pane // chatEditPane = EditPane(Point(530, 23), largeFont); sendButtonPane = ButtonPane(ImportImage("btnsend2bmp", false), ButtonNormal, false); chatText = ChatListPane(Point(591, 78)); chatPane = ImagePane( ImportImage("gameoverchatbmp", true), [ (sendButtonPane, Point(565, 113)), (chatText, Point( 3, 28)), (chatEditPane, Point( 16, 108)) ] ); // // Title text // TextColor = Color(1, 1, 1); yellowText = Color(0.878, 0.573, 0); textTitle = StringPane("", yellowText, Point(600, 30), JustifyCenter, titleFont); textReason = StringPane("", TextColor, Point(600, 30), JustifyCenter, promptFont); textCountdown = StringPane("", TextColor, Point(90, 30), JustifyRight, promptFont); textGameCounted = StringPane("", TextColor, Point(100, 30), JustifyLeft, promptFont); // // Mouseover Text // hoverSite = HoverSite(0); hoverString = SwitchString( HoverSiteGetID(hoverSite), "", [ ( 1, "Shows where the player is ranked by the current sort order."), ( 2, "Shows the name of the player."), ( 3, "Shows the player's rank at the end of the game."), ( 4, "Shows the number of stations the player destroyed during the game."), ( 5, "Shows the number of stations the player captured during the game."), ( 6, "Shows the number of points the player earned during the game."), ( 7, "Shows the number of kills where the player inflicted the more damage than all but one of the other attackers."), ( 8, "Shows the number of kills where the player inflicted the more damage than any of the other attackers."), ( 9, "Shows the number of times the player's ship was destroyed."), (10, "Shows the amount of time that the player played, in hours and minutes (red if the win/loss didn't count)."), (11, "Shows the ranking of the team by the current sort order."), (12, "Shows the name of the team."), (13, "Shows the number of stations the team destroyed during the game."), (14, "Shows the number of stations the team captured during the game."), (15, "Shows the number of flags the team captured during the game."), (16, "Shows the number of artifacts team recovered during the game."), (17, "Shows the number of kills the team scored during the game."), (18, "Shows the number of times team member's ships were destroyed during the game."), (19, "Return to the game lobby") ] ); hoverImage = StringImage(JustifyLeft, 200, medVerdana, white, hoverString); hoverPane = AnimatedImagePaneRect(hoverImage, Rect(0, -40, 200, 0)); // // The background and control positions // screen = ScreenPane( ImportImage("gameoverscreenbmp", false), [ (textTitle, Point(100, 0)), (textCountdown, Point(700, 28)), (textReason, Point(100, 28)), (textGameCounted, Point( 0, 28)), (HoverPaneColumns(hoverSite, 1, statsListHeader, statsHeaderColumns), Point( 99, 55)), (HoverPaneColumns(hoverSite, 1, statsListPane, statsColumns), Point( 91, 83)), (statsScrollBar, Point(673, 82)), (HoverPaneColumns(hoverSite, 11, statsSideListHeader, statsSideColumns), Point( 99, 288)), (HoverPaneColumns(hoverSite, 11, statsSideListPane, statsSideColumns), Point( 91, 316)), (chatPane, Point( 88, 415)), (HoverPane(hoverSite, 19, backButtonPane), Point( 20, 560)), (hoverPane, Point(550, 560)) ] );