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
src
Ryujinx.Gtk3/UI/Windows
Ryujinx/UI/Windows

@ -14,29 +14,6 @@ namespace Ryujinx.UI.Windows
{
Icon = new Gdk.Pixbuf(Assembly.GetAssembly(typeof(OpenHelper)), "Ryujinx.UI.Common.Resources.Logo_Ryujinx.png");
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)
{
OpenHelper.OpenUrl("https://ryujinx.org");
OpenHelper.OpenUrl("https://example.com/");
}
private void AmiiboApiButton_Pressed(object sender, ButtonPressEventArgs args)
@ -64,12 +41,12 @@ namespace Ryujinx.UI.Windows
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)
{
OpenHelper.OpenUrl("https://twitter.com/RyujinxEmu");
OpenHelper.OpenUrl("https://example.com/");
}
private void ContributorsButton_Pressed(object sender, ButtonPressEventArgs args)

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