diff --git a/Assets/Scripts/Cgs/Menu/MainMenu.cs b/Assets/Scripts/Cgs/Menu/MainMenu.cs index 469b67bf..d58faaa8 100644 --- a/Assets/Scripts/Cgs/Menu/MainMenu.cs +++ b/Assets/Scripts/Cgs/Menu/MainMenu.cs @@ -9,7 +9,9 @@ using UnityEngine.EventSystems; using UnityEngine.SceneManagement; using UnityEngine.UI; +#if !UNITY_WEBGL using UnityExtensionMethods; +#endif namespace Cgs.Menu { @@ -59,8 +61,10 @@ private static bool HasSeenWelcome public Button joinButton; public GameObject quitButton; +#if !UNITY_WEBGL private GamesManagementMenu GamesManagement => _gamesManagement ??= Instantiate(gamesManagementMenuPrefab).GetOrAddComponent(); +#endif private GamesManagementMenu _gamesManagement; @@ -81,6 +85,8 @@ private void Start() versionText.text = TitleScreen.VersionMessage; #if UNITY_WEBGL + previousCardImage.gameObject.SetActive(false); + nextCardImage.gameObject.SetActive(false); joinButton.interactable = false; #endif #if UNITY_STANDALONE || UNITY_WSA diff --git a/docs/games/Arcmage/Arcmage.json b/docs/games/Arcmage/Arcmage.json index 3169298e..29a6f929 100644 --- a/docs/games/Arcmage/Arcmage.json +++ b/docs/games/Arcmage/Arcmage.json @@ -1,21 +1,21 @@ { - "allCardsUrl": "https://aminduna.arcmage.org/api/CardSearch", + "allCardsUrl": "https://cgs.games/api/proxy/https://aminduna.arcmage.org/api/CardSearch", "allCardsUrlPageCountIdentifier": "totalItems", "allCardsUrlPageCountDivisor": 50, "allCardsUrlPageIdentifier": ",\"pageNumber\":", "allCardsUrlPostBodyContent": "\"ruleSet\":{\"guid\":\"208cbc77-4110-51b7-9afd-1c0c4e96f4ad\"},\"pageSize\":50", - "allDecksUrl": "https://aminduna.arcmage.org/api/DeckSearch", + "allDecksUrl": "https://cgs.games/api/proxy/https://aminduna.arcmage.org/api/DeckSearch", "allDecksUrlDataIdentifier": "items", "allDecksUrlPostBodyContent": "\"ruleSet\":{\"guid\":\"208cbc77-4110-51b7-9afd-1c0c4e96f4ad\"},\"pageSize\":50,\"pageNumber\":1", - "allDecksUrlTxtRoot": "https://aminduna.arcmage.org", - "allSetsUrl": "https://aminduna.arcmage.org/api/CardOptions", + "allDecksUrlTxtRoot": "https://cgs.games/api/proxy/https://aminduna.arcmage.org", + "allSetsUrl": "https://cgs.games/api/proxy/https://aminduna.arcmage.org/api/CardOptions", "autoUpdateUrl": "https://www.cardgamesimulator.com/games/Arcmage/Arcmage.json", "bannerImageUrl": "https://www.cardgamesimulator.com/games/Arcmage/Banner.png", "cardBackImageUrl": "https://www.cardgamesimulator.com/games/Arcmage/CardBack.png", "cardDataIdentifier": "items", "cardIdIdentifier": "guid", "cardImageFileType": "jpg", - "cardImageUrl": "https://aminduna.arcmage.org{jpeg}", + "cardImageUrl": "https://cgs.games/api/proxy/https://aminduna.arcmage.org{jpeg}", "cardSetIdentifier": "serie", "cardSetIsObject": true, "cardPrimaryProperty": "ruleText", diff --git a/docs/games/grand_archive/grand_archive.json b/docs/games/grand_archive/grand_archive.json index c2d45ad3..98008fb3 100644 --- a/docs/games/grand_archive/grand_archive.json +++ b/docs/games/grand_archive/grand_archive.json @@ -1,6 +1,6 @@ { "name": "Grand Archive TCG", - "allCardsUrl": "https://api.gatcg.com/cards/search", + "allCardsUrl": "https://cgs.games/api/proxy/https://api.gatcg.com/cards/search", "allCardsUrlPageCountIdentifier": "total_pages", "autoUpdateUrl": "https://www.cardgamesimulator.com/games/grand_archive/grand_archive.json", "bannerImageUrl": "https://www.cardgamesimulator.com/games/grand_archive/Banner.png",