diff --git a/FF1Blazorizer/Tabs/FileTab.razor b/FF1Blazorizer/Tabs/FileTab.razor index a75482aa4..5ec189f13 100644 --- a/FF1Blazorizer/Tabs/FileTab.razor +++ b/FF1Blazorizer/Tabs/FileTab.razor @@ -1,4 +1,4 @@ -@using System.ComponentModel; +@using System.ComponentModel; @using System.IO; @using System.Web; @using RomUtilities; @@ -44,6 +44,16 @@ Export

+ + @if (Flags.Archipelago) + { +

+ Archipelago Player Name: +
+ +

+ } +

@((MarkupString)StatusMessage)

 
Generate ROM @@ -221,6 +231,15 @@ } } + void OnPlayerNameChanged(ChangeEventArgs e) + { + string playername = (e.Value as string); + + Preferences.PlayerName = playername.Length > 16 ? playername.Substring(0, 16) : playername; + + UpdateAction?.Invoke("UpdateFlagstring",""); + } + async Task OnRandomize(MouseEventArgs e) { if (_fileData == null) diff --git a/FF1Blazorizer/Tabs/GoalTab.razor b/FF1Blazorizer/Tabs/GoalTab.razor index a775d4a8c..53dc43c63 100644 --- a/FF1Blazorizer/Tabs/GoalTab.razor +++ b/FF1Blazorizer/Tabs/GoalTab.razor @@ -1,4 +1,4 @@ -@using FF1Lib; +@using FF1Lib; @using static FF1Lib.FF1Rom; @@ -65,5 +65,9 @@ string playername = (e.Value as string); Preferences.PlayerName = playername.Length > 16 ? playername.Substring(0, 16) : playername; + + UpdateAction?.Invoke("UpdateFlagstring",""); } + + }