mirror of
https://github.com/RoyalnetworkTR/simple-launcher.git
synced 2026-09-25 05:50:19 +03:00
- Add Services/ServersDat.cs (self-contained big-endian NBT codec) to write/ merge .AthenaStudios/servers.dat so the Athena server auto-appears in the in-game Multiplayer list. Existing entries preserved, deduped by IP. - Write servers.dat on every launch (independent of auto-connect). - Add an auto-connect-on-launch user setting (LocalSettings.AutoConnectOnLaunch + Settings checkbox); effective server-join = backend AutoConnect AND the user setting, so players can opt out of auto-join. - Remove the account delete button from AccountsView: users keep their name slots; only admins delete via the web panel (backend now 403s the self-delete endpoint).
46 lines
2.3 KiB
XML
46 lines
2.3 KiB
XML
<UserControl xmlns="https://github.com/avaloniaui"
|
||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||
x:Class="OfflineMinecraftLauncher.Views.SettingsView">
|
||
<ScrollViewer>
|
||
<StackPanel Spacing="16" MaxWidth="640">
|
||
<TextBlock Text="Ayarlar" Classes="title" />
|
||
|
||
<Border Classes="card">
|
||
<StackPanel Spacing="10">
|
||
<TextBlock Text="Bellek (RAM)" FontWeight="SemiBold" />
|
||
<TextBlock x:Name="MaxLabel" Classes="muted" />
|
||
<Slider x:Name="MaxSlider" Minimum="1024" Maximum="32768" />
|
||
<TextBlock x:Name="MinLabel" Classes="muted" />
|
||
<Slider x:Name="MinSlider" Minimum="512" Maximum="16384" />
|
||
</StackPanel>
|
||
</Border>
|
||
|
||
<Border Classes="card">
|
||
<StackPanel Spacing="10">
|
||
<TextBlock Text="Java" FontWeight="SemiBold" />
|
||
<Grid ColumnDefinitions="*,Auto">
|
||
<TextBox x:Name="JavaBox" Watermark="(boş bırakılırsa otomatik bulunur)" />
|
||
<Button Grid.Column="1" Classes="ghost" Content="Gözat" Margin="8,0,0,0" Click="OnBrowseJava" />
|
||
</Grid>
|
||
<TextBlock Text="JVM Argümanları" FontWeight="SemiBold" />
|
||
<TextBox x:Name="JvmBox" />
|
||
<Button Classes="ghost" Content="Performans Önayarı" Click="OnPreset" HorizontalAlignment="Left" />
|
||
</StackPanel>
|
||
</Border>
|
||
|
||
<Border Classes="card">
|
||
<StackPanel Spacing="10">
|
||
<TextBlock Text="Sunucu" FontWeight="SemiBold" />
|
||
<CheckBox x:Name="AutoConnectBox" Content="Başlatınca sunucuya otomatik bağlan" />
|
||
<TextBlock Classes="muted" Text="Kapatırsanız oyun ana menüde açılır; sunucu yine çoklu oyuncu listesinde görünür." />
|
||
</StackPanel>
|
||
</Border>
|
||
|
||
<StackPanel Orientation="Horizontal" Spacing="12">
|
||
<Button Classes="accent" Content="Kaydet" Click="OnSave" />
|
||
<TextBlock x:Name="SaveStatus" Classes="muted" VerticalAlignment="Center" />
|
||
</StackPanel>
|
||
</StackPanel>
|
||
</ScrollViewer>
|
||
</UserControl>
|