Skip to content

Commit

Permalink
Update for WebGL
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmfinol committed Nov 8, 2023
1 parent eca78d7 commit fa50c64
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
6 changes: 6 additions & 0 deletions Assets/Scripts/Cgs/Menu/MainMenu.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
using UnityEngine.EventSystems;
using UnityEngine.SceneManagement;
using UnityEngine.UI;
#if !UNITY_WEBGL
using UnityExtensionMethods;
#endif

namespace Cgs.Menu
{
Expand Down Expand Up @@ -59,8 +61,10 @@ private static bool HasSeenWelcome
public Button joinButton;
public GameObject quitButton;

#if !UNITY_WEBGL
private GamesManagementMenu GamesManagement =>
_gamesManagement ??= Instantiate(gamesManagementMenuPrefab).GetOrAddComponent<GamesManagementMenu>();
#endif

private GamesManagementMenu _gamesManagement;

Expand All @@ -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
Expand Down
10 changes: 5 additions & 5 deletions docs/games/Arcmage/Arcmage.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion docs/games/grand_archive/grand_archive.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit fa50c64

Please sign in to comment.