Added UI elements for global options.
Bigger minimal size for main window.
This commit is contained in:
parent
508d23da5f
commit
76f2d45f45
@ -264,6 +264,26 @@ namespace GoldbergGUI.Core.ViewModels
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public class GlobalHelp
|
||||||
|
{
|
||||||
|
public static string Header =>
|
||||||
|
"Information\n";
|
||||||
|
|
||||||
|
public static string TextPreLink =>
|
||||||
|
"Usually these settings are saved under";
|
||||||
|
|
||||||
|
public static string Link => "%APPDATA%\\Goldberg SteamEmu Saves\\settings";
|
||||||
|
|
||||||
|
public static string TextPostLink =>
|
||||||
|
", which makes these " +
|
||||||
|
"available for every game that uses the Goldberg Emulator. However, if you want to set specific settings " +
|
||||||
|
"for certain games (e.g. different language), you can remove the \"Global\" checkmark next to the option " +
|
||||||
|
"and then change it. If you want to remove that setting, just empty the field while \"Global\" is " +
|
||||||
|
"unchecked. (Not implemented yet!)";
|
||||||
|
}
|
||||||
|
|
||||||
|
public static GlobalHelp G => new GlobalHelp();
|
||||||
|
|
||||||
// COMMANDS //
|
// COMMANDS //
|
||||||
|
|
||||||
public IMvxCommand OpenFileCommand => new MvxAsyncCommand(OpenFile);
|
public IMvxCommand OpenFileCommand => new MvxAsyncCommand(OpenFile);
|
||||||
@ -503,6 +523,22 @@ namespace GoldbergGUI.Core.ViewModels
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
public IMvxCommand OpenGlobalSettingsFolderCommand => new MvxCommand(OpenGlobalSettingsFolder);
|
||||||
|
|
||||||
|
private void OpenGlobalSettingsFolder()
|
||||||
|
{
|
||||||
|
if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
|
||||||
|
{
|
||||||
|
StatusText = "Can't open folder (Windows only)! Ready.";
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
var path = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData),
|
||||||
|
"Goldberg SteamEmu Saves", "settings");
|
||||||
|
var start = Process.Start("explorer.exe", path);
|
||||||
|
start?.Dispose();
|
||||||
|
}
|
||||||
|
|
||||||
// OTHER METHODS //
|
// OTHER METHODS //
|
||||||
|
|
||||||
private void ResetForm()
|
private void ResetForm()
|
||||||
|
@ -20,4 +20,20 @@
|
|||||||
<ProjectReference Include="..\GoldbergGUI.Core\GoldbergGUI.Core.csproj" />
|
<ProjectReference Include="..\GoldbergGUI.Core\GoldbergGUI.Core.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<Compile Remove="publish\**" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<EmbeddedResource Remove="publish\**" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<None Remove="publish\**" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<Page Remove="publish\**" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
@ -5,6 +5,6 @@
|
|||||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
mc:Ignorable="d"
|
mc:Ignorable="d"
|
||||||
Title="GoldbergGUI" MinHeight="500" MinWidth="600" Background="#FFF0F0F0">
|
Title="GoldbergGUI" MinHeight="600" MinWidth="800" Background="#FFF0F0F0">
|
||||||
<Grid />
|
<Grid />
|
||||||
</views:MvxWindow>
|
</views:MvxWindow>
|
@ -96,20 +96,48 @@
|
|||||||
<Grid.ColumnDefinitions>
|
<Grid.ColumnDefinitions>
|
||||||
<ColumnDefinition Width="Auto"/>
|
<ColumnDefinition Width="Auto"/>
|
||||||
<ColumnDefinition Width="*"/>
|
<ColumnDefinition Width="*"/>
|
||||||
|
<ColumnDefinition Width="Auto"/>
|
||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
<Grid.RowDefinitions>
|
<Grid.RowDefinitions>
|
||||||
<RowDefinition/>
|
<RowDefinition/>
|
||||||
<RowDefinition/>
|
<RowDefinition/>
|
||||||
<RowDefinition/>
|
<RowDefinition/>
|
||||||
|
<RowDefinition/>
|
||||||
|
<RowDefinition/>
|
||||||
</Grid.RowDefinitions>
|
</Grid.RowDefinitions>
|
||||||
<Label Content="Account name" HorizontalAlignment="Left" Margin="0,0,10,0" />
|
<Label Content="Account name" HorizontalAlignment="Left" Margin="0,0,10,0" />
|
||||||
<TextBox Text="{Binding AccountName, Mode=TwoWay}" Height="20" Grid.Row="0" Grid.Column="1"/>
|
<TextBox Text="{Binding AccountName, Mode=TwoWay}" Height="20" Grid.Row="0" Grid.Column="1"/>
|
||||||
|
<CheckBox Content="Global" Grid.Row="0" Grid.Column="2" HorizontalAlignment="Right"
|
||||||
|
Margin="10,0,0,0" VerticalAlignment="Center" IsChecked="True"
|
||||||
|
IsEnabled="False"/>
|
||||||
|
<!--
|
||||||
|
IsEnabled="{Binding DllSelected, UpdateSourceTrigger=PropertyChanged}"/>
|
||||||
|
-->
|
||||||
<Label Content="Steam64ID" HorizontalAlignment="Left" Grid.Row="1"
|
<Label Content="Steam64ID" HorizontalAlignment="Left" Grid.Row="1"
|
||||||
Grid.Column="0" Margin="0,0,10,0" />
|
Grid.Column="0" Margin="0,0,10,0" />
|
||||||
<TextBox Text="{Binding SteamId, Mode=TwoWay}" Grid.Column="1" Height="20" Grid.Row="1"/>
|
<TextBox Text="{Binding SteamId, Mode=TwoWay}" Grid.Column="1" Height="20" Grid.Row="1"/>
|
||||||
|
<CheckBox Content="Global" Grid.Row="1" Grid.Column="2" HorizontalAlignment="Right"
|
||||||
|
Margin="10,0,0,0" VerticalAlignment="Center" IsChecked="True"
|
||||||
|
IsEnabled="False"/>
|
||||||
|
<!--
|
||||||
|
IsEnabled="{Binding DllSelected, UpdateSourceTrigger=PropertyChanged}"/>
|
||||||
|
-->
|
||||||
<Label Content="Language" HorizontalAlignment="Left" Grid.Row="2"
|
<Label Content="Language" HorizontalAlignment="Left" Grid.Row="2"
|
||||||
Grid.Column="0" Margin="0,0,10,0" />
|
Grid.Column="0" Margin="0,0,10,0" />
|
||||||
<ComboBox Grid.Row="2" Grid.Column="1" ItemsSource="{Binding SteamLanguages}" SelectedItem="{Binding SelectedLanguage}"/>
|
<ComboBox Grid.Row="2" Grid.Column="1" ItemsSource="{Binding SteamLanguages}" SelectedItem="{Binding SelectedLanguage}" VerticalAlignment="Center"/>
|
||||||
|
<CheckBox Content="Global" Grid.Row="2" Grid.Column="2" HorizontalAlignment="Right"
|
||||||
|
Margin="10,0,0,0" VerticalAlignment="Center" IsChecked="True"
|
||||||
|
IsEnabled="False"/>
|
||||||
|
<!--
|
||||||
|
IsEnabled="{Binding DllSelected, UpdateSourceTrigger=PropertyChanged}"/>
|
||||||
|
-->
|
||||||
|
<TextBlock TextWrapping="Wrap" Grid.ColumnSpan="3" Grid.Column="0" Grid.Row="3" Margin="5,10,5,5">
|
||||||
|
<Run Text="{Binding G.Header, Mode=OneTime}" FontWeight="Bold"/><!--
|
||||||
|
--><Run Text="{Binding G.TextPreLink, Mode=OneTime}"/>
|
||||||
|
<Hyperlink Command="{Binding OpenGlobalSettingsFolderCommand}"><Run
|
||||||
|
Text="{Binding G.Link, Mode=OneTime}"/></Hyperlink><!--
|
||||||
|
--><Run Text="{Binding G.TextPostLink, Mode=OneTime}"/>
|
||||||
|
</TextBlock>
|
||||||
</Grid>
|
</Grid>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</TabItem>
|
</TabItem>
|
||||||
|
Loading…
Reference in New Issue
Block a user