Workshop map listing button

This commit is contained in:
Anuken
2019-10-04 19:43:26 -04:00
parent edb0ece03b
commit 1b93da20f4
6 changed files with 22 additions and 11 deletions

View File

@@ -228,11 +228,11 @@ public class DesktopLauncher extends ClientLauncher{
@Override
public void viewMapListing(Map map){
viewMapListing(map.file.parent().name());
viewListing(map.file.parent().name());
}
@Override
public void viewMapListing(String mapid){
public void viewListing(String mapid){
SVars.net.friends.activateGameOverlayToWebPage("steam://url/CommunityFilePage/" + mapid);
}

View File

@@ -112,7 +112,7 @@ public class SWorkshop implements SteamUGCCallback{
dialog.addCloseButton();
dialog.buttons.addImageTextButton("$view.workshop", Icon.linkSmall, () -> {
platform.viewMapListing(id);
platform.viewListing(id);
dialog.hide();
}).size(210f, 64f);