4 Months Ago
Mainmenu improvements (#1655) * Add GameModal that pops up when you click a Game instead of instantly launching it (Currently Empty) * Moved Vote Up, Vote Down, and Favourite buttons into PackageRatingButtons so it can be re-used * Finished initial version of Game Modal with options to launch into a game and see all active lobbies. * Remove scrolling on Game Modal, replace Lobby List with a button that opens the Lobby List modal layered above. * Close Game Modal when entering Lobby from Lobby List Modal * Give Lobby List Modal and other missed Modals the primary background * Fix time offset strings displaying incorrectly * Active Lobby buttons now open the Game Modal instead of loading you directly into the lobby * Remove Global Stats from Game Modal. Unnecessary information * Fix Maps menu opening the Walker Game Modal instead of launching directly into the map * Org Page is now replaced with an Org Modal that can be opened at any time. * Moved SettingsPage into a Settings Modal that pops up over everything * Added Settings Modal to the Pause Menu * Fix Package Modal not toggling when pressing F1 * Pad the bottom of GameGroups * Show Player Icons on Active Lobby Cards (shows lobby hosts) * Game Tiles are now all the same size instead of being randomly sized * Give Game List Columns a max-width * Lobby Heads on LobbyCards no longer block mouse inputs and are a bit larger. * Clicking the name of a game opens the Game Modal instead of the Generic Package Modal * GameTiles are now treated as one big button, clicking anywhere will open Game Modal. * Removed box around header on Game and Org Modals * Options on Game Modal are now "Create Game" and "Join Game" if multiplayer, with the Lobby List being moved elsewhere. Join Game is disabled if there are no active lobbies * Added `flex-shrink: 0` to entries of the ServerListModal * Added icons to Game Modal info, removed information that wasn't important and overall cleaned up readability. Also added Total Players and Playtime * MenuOverlay now uses Screen.DesktopScale (with 1080p minimum) * Added missing ToolTips to GameTile * Fixed outstanding issues where a page wouldnt load until you moved your mouse over it. * Adjusted font size on Game Modal * Enable Looping on Main Menu music and Loading music * Game Tile and Lobby Cards play sounds on click instead of `:active`, prevents clicking sound playing while dragging * Fixed LoadingOverlay not including Subtitle in BuildHash * Remove warning from LobbyCard since it doesn't need the async stuff anymore * Remove unused variables from Game and Org Modals * Remove refreshing variable from GameModal * Fix Home Page Categories. Uses ListResult instead of hardcoded categories from initial concept * LobbyCard UsersNow displays the total number of users across all lobbies instead of the number of lobbies * Fix max-width on HomePage columns * Add NRE check for when Package.Screenshots is null * Don't request partial package for GameModal * Added a way to select previous Jams on the Game Jam Page. Currently hardcoded with gamejam1 and gamejam2. * GameTiles all now enforce the same aspect-ratio (16:9) * Fix GameModal not loading its contents instantly. * Added Tooltips to LobbyCards * Fix Lists in 4:3 Screen Ratios * Settings Button no longer brings you back to the Home Page * Fix padding on PageHeader * Revert GameModal back to string ident and use Package.TryGetCached instead. * Order ServerListModal by Player Count * Fixed HeaderTab styling on Settings Modal * Fixed lobby heads being off by 1 pixel * Make all elements on the Social Bar match instead of looking completely different * Update the Map Select Modal to match where it doesn't already * PackageSelectionModal also follows same styles. * Add proper Volume Slider to VideoControls * Change default starting volume for VideoControls * Play button is greyed out and says VR Only if the game is only compatible with VR and the user is not currently loaded in VR. * Unify multiplayer check in Game Modal and MenuHelpers * Fix package reference in GameModal * Show package using cached version * Add Application.IsVr * Add Sessions to PackageUsage * Add TimeSpan.Humanize * Add MenuUtility.CloseAllModals * Break game modal up to managable components https://files.facepunch.com/garry/3419ba7b-7e50-4b5c-a727-3e315fb4dffe.png * Fix broken style * Lobby list cleanup, list view aspect * Fix ToolTips in GameModal * Engagement tooltips display on entire entry not just icon. * Games with LaunchMode "QuickPlay" will only display the one play button (since both would do the exact same thing) * Fixed Videos now having their icon styling on GameModal Media * Fix clicking on GameTiles still opening the Org Modal when on `/games` page * Add `GameModal.HasFullPackage`. Show skeletons until full package is loaded. * Broke GameModal down into a BasePackageModal that GameModal inherits. Added MapModal which inherits the same thing. * Fix Base PackageFilters not preserving tags * MapModal ActionBar has option to select game before launching map. Add Map Modal everywhere necessary. * MapModal ActionBar queries lobbies properly, getting lobbies across all games * Unify Game Close functions. Fixes Review Modal not appearing and mouse status not resetting all of the time * Lets order everything by upvotes by default, for now * Fix some GameTiles being massive when at the end of the list * Make the "no screenshots" view a bit nicer --------- Co-authored-by: Carson Kompon <carsokompo@gmail.com>