Skip to content

Commit

Permalink
BUG: fix credits menu links
Browse files Browse the repository at this point in the history
  • Loading branch information
pdcook committed Jun 13, 2022
1 parent 42bdbfb commit 1b51bec
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion UnboundLib/Unbound.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public class Unbound : BaseUnityPlugin
{
private const string ModId = "com.willis.rounds.unbound";
private const string ModName = "Rounds Unbound";
public const string Version = "3.1.0";
public const string Version = "3.1.1";

public static Unbound Instance { get; private set; }
public static readonly ConfigFile config = new ConfigFile(Path.Combine(Paths.ConfigPath, "UnboundLib.cfg"), true);
Expand Down
10 changes: 5 additions & 5 deletions UnboundLib/Utils/UI/Credits.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,11 @@ void fixMainMenuLayout()
creditsMenus[modName] = MenuHandler.CreateMenu(modName, null, CreditsMenu, 30);
}

// add _Links to modding discord
// add link to modding discord
MenuHandler.CreateText(" ", CreditsMenu, out TextMeshProUGUI _, 60);
MenuHandler.CreateText("<_Links=\"https://discord.gg/Fyr3YnWduJ\">" + "ROUNDS MODDING COMMUNITY" + "</_Links>", CreditsMenu, out TextMeshProUGUI _, 30, false).AddComponent<OpenHyperlinks>();
// add _Links to Thunderstore
MenuHandler.CreateText("<_Links=\"https://rounds.thunderstore.io/?ordering=most-downloaded\"> " + "THUNDERSTORE.IO" + "</_Links>", CreditsMenu, out TextMeshProUGUI _, 30, false).AddComponent<OpenHyperlinks>();
MenuHandler.CreateText("<link=\"https://discord.gg/Fyr3YnWduJ\">" + "ROUNDS MODDING COMMUNITY" + "</link>", CreditsMenu, out TextMeshProUGUI _, 30, false).AddComponent<OpenHyperlinks>();
// add link to Thunderstore
MenuHandler.CreateText("<link=\"https://rounds.thunderstore.io/?ordering=most-downloaded\"> " + "THUNDERSTORE.IO" + "</link>", CreditsMenu, out TextMeshProUGUI _, 30, false).AddComponent<OpenHyperlinks>();

// add credits for each mod

Expand Down Expand Up @@ -110,7 +110,7 @@ internal void AddModCredits(ModCredits credits, GameObject parentMenu)
if (i < credits.linkURLs.Length) { linkURL = credits.linkURLs[i]; }
if (linkText != "")
{
MenuHandler.CreateText("<_Links=\"" + linkURL + "\">" + linkText.ToUpper() + "</_Links>", parentMenu, out TextMeshProUGUI _, 30, false).AddComponent<OpenHyperlinks>();
MenuHandler.CreateText("<link=\"" + linkURL + "\">" + linkText.ToUpper() + "</link>", parentMenu, out TextMeshProUGUI _, 30, false).AddComponent<OpenHyperlinks>();
}
}

Expand Down

0 comments on commit 1b51bec

Please sign in to comment.