AboutWindow social references

This commit is contained in:
reggie 2024-10-03 02:29:06 -05:00
parent 93c850fd52
commit 503d69cf01
2 changed files with 11 additions and 28 deletions

View File

@ -14,29 +14,6 @@ namespace Ryujinx.UI.Windows
{ {
Icon = new Gdk.Pixbuf(Assembly.GetAssembly(typeof(OpenHelper)), "Ryujinx.UI.Common.Resources.Logo_Ryujinx.png"); Icon = new Gdk.Pixbuf(Assembly.GetAssembly(typeof(OpenHelper)), "Ryujinx.UI.Common.Resources.Logo_Ryujinx.png");
InitializeComponent(); InitializeComponent();
_ = DownloadPatronsJson();
}
private async Task DownloadPatronsJson()
{
if (!NetworkInterface.GetIsNetworkAvailable())
{
_patreonNamesText.Buffer.Text = "Connection Error.";
}
HttpClient httpClient = new();
try
{
string patreonJsonString = await httpClient.GetStringAsync("https://example.com/");
_patreonNamesText.Buffer.Text = string.Join(", ", JsonHelper.Deserialize(patreonJsonString, CommonJsonContext.Default.StringArray));
}
catch
{
_patreonNamesText.Buffer.Text = "API Error.";
}
} }
// //
@ -44,7 +21,7 @@ namespace Ryujinx.UI.Windows
// //
private void RyujinxButton_Pressed(object sender, ButtonPressEventArgs args) private void RyujinxButton_Pressed(object sender, ButtonPressEventArgs args)
{ {
OpenHelper.OpenUrl("https://ryujinx.org"); OpenHelper.OpenUrl("https://example.com/");
} }
private void AmiiboApiButton_Pressed(object sender, ButtonPressEventArgs args) private void AmiiboApiButton_Pressed(object sender, ButtonPressEventArgs args)
@ -64,12 +41,12 @@ namespace Ryujinx.UI.Windows
private void DiscordButton_Pressed(object sender, ButtonPressEventArgs args) private void DiscordButton_Pressed(object sender, ButtonPressEventArgs args)
{ {
OpenHelper.OpenUrl("https://discordapp.com/invite/N2FmfVc"); OpenHelper.OpenUrl("https://example.com/");
} }
private void TwitterButton_Pressed(object sender, ButtonPressEventArgs args) private void TwitterButton_Pressed(object sender, ButtonPressEventArgs args)
{ {
OpenHelper.OpenUrl("https://twitter.com/RyujinxEmu"); OpenHelper.OpenUrl("https://example.com/");
} }
private void ContributorsButton_Pressed(object sender, ButtonPressEventArgs args) private void ContributorsButton_Pressed(object sender, ButtonPressEventArgs args)

View File

@ -123,6 +123,7 @@
HorizontalAlignment="Center" HorizontalAlignment="Center"
Orientation="Horizontal" Orientation="Horizontal"
Spacing="10"> Spacing="10">
<!--
<Button <Button
MinWidth="30" MinWidth="30"
MinHeight="30" MinHeight="30"
@ -136,6 +137,7 @@
ToolTip.Tip="{locale:Locale AboutPatreonUrlTooltipMessage}"> ToolTip.Tip="{locale:Locale AboutPatreonUrlTooltipMessage}">
<Image Source="{Binding PatreonLogo}" /> <Image Source="{Binding PatreonLogo}" />
</Button> </Button>
-->
<Button <Button
MinWidth="30" MinWidth="30"
MinHeight="30" MinHeight="30"
@ -149,6 +151,7 @@
ToolTip.Tip="{locale:Locale AboutGithubUrlTooltipMessage}"> ToolTip.Tip="{locale:Locale AboutGithubUrlTooltipMessage}">
<Image Source="{Binding GithubLogo}" /> <Image Source="{Binding GithubLogo}" />
</Button> </Button>
<!--
<Button <Button
MinWidth="30" MinWidth="30"
MinHeight="30" MinHeight="30"
@ -188,6 +191,7 @@
ToolTip.Tip="{locale:Locale AboutUrlTooltipMessage}"> ToolTip.Tip="{locale:Locale AboutUrlTooltipMessage}">
<ui:SymbolIcon Foreground="{DynamicResource ThemeForegroundColor}" Symbol="Link" /> <ui:SymbolIcon Foreground="{DynamicResource ThemeForegroundColor}" Symbol="Link" />
</Button> </Button>
-->
</StackPanel> </StackPanel>
</StackPanel> </StackPanel>
</Grid> </Grid>
@ -217,7 +221,7 @@
Text="{locale:Locale AboutRyujinxAboutTitle}" /> Text="{locale:Locale AboutRyujinxAboutTitle}" />
<TextBlock <TextBlock
FontSize="10" FontSize="10"
Text="{locale:Locale AboutRyujinxAboutContent}" Text="Ryujinx is an emulator for the Nintendo Switch™."
TextWrapping="Wrap" /> TextWrapping="Wrap" />
</StackPanel> </StackPanel>
<StackPanel <StackPanel
@ -227,7 +231,7 @@
<TextBlock <TextBlock
FontSize="15" FontSize="15"
FontWeight="Bold" FontWeight="Bold"
Text="{locale:Locale AboutRyujinxMaintainersTitle}" /> Text="Created By:" />
<TextBlock <TextBlock
FontSize="10" FontSize="10"
Text="{Binding Developers}" Text="{Binding Developers}"
@ -245,6 +249,7 @@
ToolTip.Tip="{locale:Locale AboutRyujinxMaintainersContentTooltipMessage}" /> ToolTip.Tip="{locale:Locale AboutRyujinxMaintainersContentTooltipMessage}" />
</Button> </Button>
</StackPanel> </StackPanel>
<!--
<StackPanel <StackPanel
Grid.Row="2" Grid.Row="2"
Margin="0,10,0,0" Margin="0,10,0,0"
@ -265,6 +270,7 @@
TextWrapping="Wrap" /> TextWrapping="Wrap" />
</ScrollViewer> </ScrollViewer>
</StackPanel> </StackPanel>
-->
</Grid> </Grid>
</Grid> </Grid>
</UserControl> </UserControl>