Add server description to config uI and adjusted the mod blocks to fit (#268)
This commit is contained in:
@@ -90,6 +90,8 @@ namespace Torch.Server.ViewModels
|
||||
|
||||
public string ServerName { get => _config.ServerName; set => SetValue(x => _config.ServerName = x, value); }
|
||||
|
||||
public string ServerDescription { get => _config.ServerDescription; set => SetValue(x => _config.ServerDescription = x, value); }
|
||||
|
||||
public bool PauseGameWhenEmpty { get => _config.PauseGameWhenEmpty; set => SetValue(x => _config.PauseGameWhenEmpty = x, value); }
|
||||
|
||||
public string PremadeCheckpointPath { get => _config.PremadeCheckpointPath; set => SetValue(x => _config.PremadeCheckpointPath = x, value); }
|
||||
|
@@ -67,6 +67,9 @@
|
||||
<TextBox Text="{Binding ServerName}" Margin="3,0,3,3" Width="160" />
|
||||
<Label Content="World Name" />
|
||||
<TextBox Text="{Binding WorldName}" Margin="3,0,3,3" Width="160" />
|
||||
<Label Content="Server Description" />
|
||||
<TextBox Text="{Binding ServerDescription}" Margin="3,0,3,3" Width="160" Height="100"
|
||||
AcceptsReturn="true" VerticalScrollBarVisibility="Auto"/>
|
||||
<Label Content="Whitelist Group ID" />
|
||||
<TextBox Margin="3,0,3,3" Width="160" Style="{StaticResource ValidatedTextBox}">
|
||||
<TextBox.Text>
|
||||
@@ -90,7 +93,7 @@
|
||||
</StackPanel>
|
||||
<StackPanel Grid.Column="1" Margin="3">
|
||||
<Label Content="Mods" />
|
||||
<TextBox Margin="3" Height="100" AcceptsReturn="true" VerticalScrollBarVisibility="Auto"
|
||||
<TextBox Margin="3" Height="60" AcceptsReturn="true" VerticalScrollBarVisibility="Auto"
|
||||
Style="{StaticResource ValidatedTextBox}">
|
||||
<TextBox.Text>
|
||||
<Binding Path="Mods" UpdateSourceTrigger="PropertyChanged"
|
||||
|
Reference in New Issue
Block a user