replicate changes from the old branch

This commit is contained in:
vddCore 2024-03-28 18:28:19 +01:00
parent 806e831a18
commit 6a41444fac
6 changed files with 9 additions and 22 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 632 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 40 KiB

View file

@ -43,13 +43,6 @@
<ProjectReference Include="..\Glitonea\Glitonea.csproj" />
</ItemGroup>
<ItemGroup>
<AvaloniaResource Include="Resources\Fonts\runescape_uf.ttf" />
<AvaloniaResource Include="Resources\Images\previewbg.png" />
<AvaloniaResource Include="Resources\Images\club.png" />
<AvaloniaResource Include="Resources\Fonts\runescape_plain.ttf" />
</ItemGroup>
<ItemGroup>
<Compile Update="Views\Windows\MainWindow.axaml.cs">
<DependentUpon>MainWindow.axaml</DependentUpon>

View file

@ -75,6 +75,15 @@ namespace Saradomin.ViewModel.Controls
Message.Subscribe<MainViewLoadedMessage>(this, OnMainViewLoaded);
}
public void LaunchScapeWebsite()
=> CrossPlatform.LaunchURL("https://2009scape.org");
public void OpenPluginTutorial()
=> CrossPlatform.LaunchURL("https://gitlab.com/2009scape/tools/client-plugins");
public void LaunchProjectWebsite()
=> CrossPlatform.LaunchURL("https://gitlab.com/2009scape/Saradomin-Launcher");
public async Task BrowseForJavaExecutable()
{
var window = Application.Current!.GetMainWindow();
@ -95,21 +104,6 @@ namespace Saradomin.ViewModel.Controls
}
}
private void LaunchScapeWebsite()
{
CrossPlatform.LaunchURL("https://2009scape.org");
}
private void OpenPluginTutorial()
{
CrossPlatform.LaunchURL("https://gitlab.com/2009scape/tools/client-plugins");
}
private void LaunchProjectWebsite()
{
CrossPlatform.LaunchURL("https://gitlab.com/2009scape/Saradomin-Launcher");
}
private void OnMainViewLoaded(MainViewLoadedMessage _)
{
Message.Subscribe<SettingsModifiedMessage>(this, OnSettingsModified);