Added status bar.
This commit is contained in:
parent
fcf966f434
commit
32c48b01b9
@ -64,6 +64,7 @@ namespace GoldbergGUI.Core.ViewModels
|
|||||||
{
|
{
|
||||||
//var errorDuringInit = false;
|
//var errorDuringInit = false;
|
||||||
MainWindowEnabled = false;
|
MainWindowEnabled = false;
|
||||||
|
StatusText = "Initializing! Please wait...";
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
SteamLanguages = new ObservableCollection<string>(_goldberg.Languages());
|
SteamLanguages = new ObservableCollection<string>(_goldberg.Languages());
|
||||||
@ -78,11 +79,12 @@ namespace GoldbergGUI.Core.ViewModels
|
|||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
Console.WriteLine(e);
|
Console.WriteLine(e);
|
||||||
|
_log.Error(e.Message);
|
||||||
throw;
|
throw;
|
||||||
//errorDuringInit = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
MainWindowEnabled = true;
|
MainWindowEnabled = true;
|
||||||
|
StatusText = "Ready.";
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -100,6 +102,8 @@ namespace GoldbergGUI.Core.ViewModels
|
|||||||
{
|
{
|
||||||
_dllPath = value;
|
_dllPath = value;
|
||||||
RaisePropertyChanged(() => DllPath);
|
RaisePropertyChanged(() => DllPath);
|
||||||
|
RaisePropertyChanged(() => DllSelected);
|
||||||
|
RaisePropertyChanged(() => SteamInterfacesTxtExists);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -132,8 +136,8 @@ namespace GoldbergGUI.Core.ViewModels
|
|||||||
{
|
{
|
||||||
_dlcs = value;
|
_dlcs = value;
|
||||||
RaisePropertyChanged(() => DLCs);
|
RaisePropertyChanged(() => DLCs);
|
||||||
RaisePropertyChanged(() => DllSelected);
|
/*RaisePropertyChanged(() => DllSelected);
|
||||||
RaisePropertyChanged(() => SteamInterfacesTxtExists);
|
RaisePropertyChanged(() => SteamInterfacesTxtExists);*/
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -258,6 +262,8 @@ namespace GoldbergGUI.Core.ViewModels
|
|||||||
|
|
||||||
private async Task OpenFile()
|
private async Task OpenFile()
|
||||||
{
|
{
|
||||||
|
MainWindowEnabled = false;
|
||||||
|
StatusText = "Please choose a file...";
|
||||||
var dialog = new OpenFileDialog
|
var dialog = new OpenFileDialog
|
||||||
{
|
{
|
||||||
Filter = "SteamAPI DLL|steam_api.dll;steam_api64.dll|" +
|
Filter = "SteamAPI DLL|steam_api.dll;steam_api64.dll|" +
|
||||||
@ -267,12 +273,16 @@ namespace GoldbergGUI.Core.ViewModels
|
|||||||
};
|
};
|
||||||
if (dialog.ShowDialog() != true)
|
if (dialog.ShowDialog() != true)
|
||||||
{
|
{
|
||||||
|
MainWindowEnabled = true;
|
||||||
_log.Warn("File selection canceled.");
|
_log.Warn("File selection canceled.");
|
||||||
|
StatusText = "No file selected! Ready.";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
DllPath = dialog.FileName;
|
DllPath = dialog.FileName;
|
||||||
await ReadConfig().ConfigureAwait(false);
|
await ReadConfig().ConfigureAwait(false);
|
||||||
|
MainWindowEnabled = true;
|
||||||
|
StatusText = "Ready.";
|
||||||
}
|
}
|
||||||
|
|
||||||
public IMvxCommand FindIdCommand => new MvxAsyncCommand(FindId);
|
public IMvxCommand FindIdCommand => new MvxAsyncCommand(FindId);
|
||||||
@ -298,6 +308,7 @@ namespace GoldbergGUI.Core.ViewModels
|
|||||||
}
|
}
|
||||||
|
|
||||||
MainWindowEnabled = false;
|
MainWindowEnabled = false;
|
||||||
|
StatusText = "Trying to find AppID...";
|
||||||
var appByName = _steam.GetAppByName(_gameName);
|
var appByName = _steam.GetAppByName(_gameName);
|
||||||
if (appByName != null)
|
if (appByName != null)
|
||||||
{
|
{
|
||||||
@ -328,6 +339,7 @@ namespace GoldbergGUI.Core.ViewModels
|
|||||||
}
|
}
|
||||||
|
|
||||||
MainWindowEnabled = true;
|
MainWindowEnabled = true;
|
||||||
|
StatusText = "Ready.";
|
||||||
}
|
}
|
||||||
|
|
||||||
//public IMvxCommand GetNameByIdCommand => new MvxAsyncCommand(GetNameById);
|
//public IMvxCommand GetNameByIdCommand => new MvxAsyncCommand(GetNameById);
|
||||||
@ -355,10 +367,20 @@ namespace GoldbergGUI.Core.ViewModels
|
|||||||
}
|
}
|
||||||
|
|
||||||
MainWindowEnabled = false;
|
MainWindowEnabled = false;
|
||||||
|
StatusText = "Trying to get list of DLCs...";
|
||||||
var listOfDlc = await _steam.GetListOfDlc(new SteamApp {AppId = AppId, Name = GameName}, true)
|
var listOfDlc = await _steam.GetListOfDlc(new SteamApp {AppId = AppId, Name = GameName}, true)
|
||||||
.ConfigureAwait(false);
|
.ConfigureAwait(false);
|
||||||
DLCs = new MvxObservableCollection<SteamApp>(listOfDlc);
|
DLCs = new MvxObservableCollection<SteamApp>(listOfDlc);
|
||||||
MainWindowEnabled = true;
|
MainWindowEnabled = true;
|
||||||
|
if (DLCs.Count > 0)
|
||||||
|
{
|
||||||
|
var empty = DLCs.Count == 1 ? "" : "s";
|
||||||
|
StatusText = $"Successfully got {DLCs.Count} DLC{empty}! Ready.";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
StatusText = "No DLC found! Ready.";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public IMvxCommand SaveConfigCommand => new MvxAsyncCommand(SaveConfig);
|
public IMvxCommand SaveConfigCommand => new MvxAsyncCommand(SaveConfig);
|
||||||
@ -376,6 +398,7 @@ namespace GoldbergGUI.Core.ViewModels
|
|||||||
_log.Info("Saving Goldberg settings...");
|
_log.Info("Saving Goldberg settings...");
|
||||||
if (!GetDllPathDir(out var dirPath)) return;
|
if (!GetDllPathDir(out var dirPath)) return;
|
||||||
MainWindowEnabled = false;
|
MainWindowEnabled = false;
|
||||||
|
StatusText = "Saving...";
|
||||||
await _goldberg.Save(dirPath, new GoldbergConfiguration
|
await _goldberg.Save(dirPath, new GoldbergConfiguration
|
||||||
{
|
{
|
||||||
AppId = AppId,
|
AppId = AppId,
|
||||||
@ -387,6 +410,7 @@ namespace GoldbergGUI.Core.ViewModels
|
|||||||
).ConfigureAwait(false);
|
).ConfigureAwait(false);
|
||||||
GoldbergApplied = _goldberg.GoldbergApplied(dirPath);
|
GoldbergApplied = _goldberg.GoldbergApplied(dirPath);
|
||||||
MainWindowEnabled = true;
|
MainWindowEnabled = true;
|
||||||
|
StatusText = "Ready.";
|
||||||
}
|
}
|
||||||
|
|
||||||
public IMvxCommand ResetConfigCommand => new MvxAsyncCommand(ResetConfig);
|
public IMvxCommand ResetConfigCommand => new MvxAsyncCommand(ResetConfig);
|
||||||
@ -402,8 +426,10 @@ namespace GoldbergGUI.Core.ViewModels
|
|||||||
|
|
||||||
_log.Info("Reset form...");
|
_log.Info("Reset form...");
|
||||||
MainWindowEnabled = false;
|
MainWindowEnabled = false;
|
||||||
|
StatusText = "Resetting...";
|
||||||
await ReadConfig().ConfigureAwait(false);
|
await ReadConfig().ConfigureAwait(false);
|
||||||
MainWindowEnabled = true;
|
MainWindowEnabled = true;
|
||||||
|
StatusText = "Ready.";
|
||||||
}
|
}
|
||||||
|
|
||||||
public IMvxCommand GenerateSteamInterfacesCommand => new MvxAsyncCommand(GenerateSteamInterfaces);
|
public IMvxCommand GenerateSteamInterfacesCommand => new MvxAsyncCommand(GenerateSteamInterfaces);
|
||||||
@ -418,6 +444,7 @@ namespace GoldbergGUI.Core.ViewModels
|
|||||||
|
|
||||||
_log.Info("Generate steam_interfaces.txt...");
|
_log.Info("Generate steam_interfaces.txt...");
|
||||||
MainWindowEnabled = false;
|
MainWindowEnabled = false;
|
||||||
|
StatusText = @"Generating ""steam_interfaces.txt"".";
|
||||||
GetDllPathDir(out var dirPath);
|
GetDllPathDir(out var dirPath);
|
||||||
if (File.Exists(Path.Combine(dirPath, "steam_api_o.dll")))
|
if (File.Exists(Path.Combine(dirPath, "steam_api_o.dll")))
|
||||||
await _goldberg.GenerateInterfacesFile(Path.Combine(dirPath, "steam_api_o.dll")).ConfigureAwait(false);
|
await _goldberg.GenerateInterfacesFile(Path.Combine(dirPath, "steam_api_o.dll")).ConfigureAwait(false);
|
||||||
@ -427,6 +454,7 @@ namespace GoldbergGUI.Core.ViewModels
|
|||||||
else await _goldberg.GenerateInterfacesFile(DllPath).ConfigureAwait(false);
|
else await _goldberg.GenerateInterfacesFile(DllPath).ConfigureAwait(false);
|
||||||
await RaisePropertyChanged(() => SteamInterfacesTxtExists).ConfigureAwait(false);
|
await RaisePropertyChanged(() => SteamInterfacesTxtExists).ConfigureAwait(false);
|
||||||
MainWindowEnabled = true;
|
MainWindowEnabled = true;
|
||||||
|
StatusText = "Ready.";
|
||||||
}
|
}
|
||||||
|
|
||||||
public IMvxCommand PasteDlcCommand => new MvxCommand(() =>
|
public IMvxCommand PasteDlcCommand => new MvxCommand(() =>
|
||||||
@ -439,7 +467,7 @@ namespace GoldbergGUI.Core.ViewModels
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
DLCs.Clear();
|
var pastedDlc = new List<SteamApp>();
|
||||||
var result = Clipboard.GetText();
|
var result = Clipboard.GetText();
|
||||||
var expression = new Regex(@"(?<id>.*) *= *(?<name>.*)");
|
var expression = new Regex(@"(?<id>.*) *= *(?<name>.*)");
|
||||||
foreach (var line in result.Split(new[]
|
foreach (var line in result.Split(new[]
|
||||||
@ -450,12 +478,23 @@ namespace GoldbergGUI.Core.ViewModels
|
|||||||
{
|
{
|
||||||
var match = expression.Match(line);
|
var match = expression.Match(line);
|
||||||
if (match.Success)
|
if (match.Success)
|
||||||
DLCs.Add(new SteamApp
|
pastedDlc.Add(new SteamApp
|
||||||
{
|
{
|
||||||
AppId = Convert.ToInt32(match.Groups["id"].Value),
|
AppId = Convert.ToInt32(match.Groups["id"].Value),
|
||||||
Name = match.Groups["name"].Value
|
Name = match.Groups["name"].Value
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
if (pastedDlc.Count > 0)
|
||||||
|
{
|
||||||
|
DLCs.Clear();
|
||||||
|
DLCs = new ObservableCollection<SteamApp>(pastedDlc);
|
||||||
|
var empty = DLCs.Count == 1 ? "" : "s";
|
||||||
|
StatusText = $"Successfully got {DLCs.Count} DLC{empty} from clipboard! Ready.";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
StatusText = "No DLC found in clipboard! Ready.";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -477,12 +516,10 @@ namespace GoldbergGUI.Core.ViewModels
|
|||||||
private async Task ReadConfig()
|
private async Task ReadConfig()
|
||||||
{
|
{
|
||||||
if (!GetDllPathDir(out var dirPath)) return;
|
if (!GetDllPathDir(out var dirPath)) return;
|
||||||
MainWindowEnabled = false;
|
|
||||||
var config = await _goldberg.Read(dirPath).ConfigureAwait(false);
|
var config = await _goldberg.Read(dirPath).ConfigureAwait(false);
|
||||||
SetFormFromConfig(config);
|
SetFormFromConfig(config);
|
||||||
GoldbergApplied = _goldberg.GoldbergApplied(dirPath);
|
GoldbergApplied = _goldberg.GoldbergApplied(dirPath);
|
||||||
await RaisePropertyChanged(() => SteamInterfacesTxtExists).ConfigureAwait(false);
|
await RaisePropertyChanged(() => SteamInterfacesTxtExists).ConfigureAwait(false);
|
||||||
MainWindowEnabled = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void SetFormFromConfig(GoldbergConfiguration config)
|
private void SetFormFromConfig(GoldbergConfiguration config)
|
||||||
|
@ -7,138 +7,147 @@
|
|||||||
xmlns:viewmodel="clr-namespace:GoldbergGUI.Core.ViewModels;assembly=GoldbergGUI.Core"
|
xmlns:viewmodel="clr-namespace:GoldbergGUI.Core.ViewModels;assembly=GoldbergGUI.Core"
|
||||||
mc:Ignorable="d"
|
mc:Ignorable="d"
|
||||||
d:DesignHeight="500" d:DesignWidth="400" d:DataContext="{d:DesignInstance Type=viewmodel:MainViewModel }">
|
d:DesignHeight="500" d:DesignWidth="400" d:DataContext="{d:DesignInstance Type=viewmodel:MainViewModel }">
|
||||||
<Grid Margin="5,5,5,5" IsEnabled="{Binding MainWindowEnabled}">
|
<Grid Margin="0,0,0,0">
|
||||||
<Grid.RowDefinitions>
|
<Grid.RowDefinitions>
|
||||||
<RowDefinition Height="*"/>
|
<RowDefinition Height="*"/>
|
||||||
<RowDefinition Height="Auto" />
|
<RowDefinition Height="Auto" />
|
||||||
</Grid.RowDefinitions>
|
</Grid.RowDefinitions>
|
||||||
<TabControl Margin="5,5,5,5">
|
<Grid IsEnabled="{Binding MainWindowEnabled}" Margin="5,5,5,5">
|
||||||
<!-- General -->
|
<Grid.RowDefinitions>
|
||||||
<TabItem Header="General">
|
<RowDefinition Height="*"/>
|
||||||
<!--
|
<RowDefinition Height="Auto" />
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
<TabControl Margin="5,5,5,5">
|
||||||
|
<!-- General -->
|
||||||
|
<TabItem Header="General">
|
||||||
|
<!--
|
||||||
<TabItem.InputBindings>
|
<TabItem.InputBindings>
|
||||||
<KeyBinding Key="V" Modifiers="Control"
|
<KeyBinding Key="V" Modifiers="Control"
|
||||||
Command="{Binding PasteDlcCommand}"/>
|
Command="{Binding PasteDlcCommand}"/>
|
||||||
</TabItem.InputBindings>
|
</TabItem.InputBindings>
|
||||||
-->
|
-->
|
||||||
<Grid Margin="10,20,10,10">
|
<Grid Margin="10,20,10,10">
|
||||||
<Grid.RowDefinitions>
|
|
||||||
<RowDefinition Height="Auto"/>
|
|
||||||
<RowDefinition Height="Auto"/>
|
|
||||||
<RowDefinition Height="Auto"/>
|
|
||||||
<RowDefinition/>
|
|
||||||
</Grid.RowDefinitions>
|
|
||||||
<TextBox Text="{Binding DllPath, Mode=OneWay}" TextWrapping="Wrap" Margin="0,0,85,5" VerticalAlignment="Center" Padding="1,0,0,0" Height="20" IsEnabled="False"/>
|
|
||||||
<Button Content="Select..." Command="{Binding OpenFileCommand}" HorizontalAlignment="Right" Width="80" Height="20" Grid.Row="0" Margin="0,0,0,5"/>
|
|
||||||
<Button Content="Generate steam_interfaces.txt" IsEnabled="{Binding SteamInterfacesTxtExists, UpdateSourceTrigger=PropertyChanged}" Command="{Binding GenerateSteamInterfacesCommand}" Height="20" Grid.Row="1" Margin="0,5,0,5" />
|
|
||||||
<TextBox Text="{Binding GameName, Mode=TwoWay}" TextWrapping="Wrap" VerticalAlignment="Center" Padding="1,0,0,0" Grid.Row="2" Margin="0,5,215,5" Height="20"/>
|
|
||||||
<Button Content="Find ID..." Command="{Binding FindIdCommand}" Width="80" Grid.Row="2" Margin="0,5,130,5" HorizontalAlignment="Right" Height="20"/>
|
|
||||||
<TextBox Text="{Binding AppId, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" TextWrapping="Wrap" HorizontalAlignment="Right" VerticalAlignment="Center" Padding="1,0,0,0" Grid.Row="2" Width="125" Margin="0,5,0,5" Height="20"/>
|
|
||||||
<GroupBox Header="DLC" Grid.Row="3" Padding="0,0,0,0" Margin="0,5,0,0">
|
|
||||||
<GroupBox.InputBindings>
|
|
||||||
<KeyBinding Key="V" Modifiers="Control"
|
|
||||||
Command="{Binding PasteDlcCommand}"/>
|
|
||||||
</GroupBox.InputBindings>
|
|
||||||
<Grid Margin="10,10,10,10">
|
|
||||||
<Grid.RowDefinitions>
|
|
||||||
<RowDefinition/>
|
|
||||||
<RowDefinition Height="Auto"/>
|
|
||||||
</Grid.RowDefinitions>
|
|
||||||
<DataGrid Margin="0,0,0,5" ItemsSource="{Binding DLCs, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" SelectionMode="Extended" SelectionUnit="FullRow" HeadersVisibility="Column" AutoGenerateColumns="False" CanUserResizeColumns="False">
|
|
||||||
<DataGrid.Columns>
|
|
||||||
<DataGridTextColumn Header="App ID" Binding="{Binding AppId}" Width="80" />
|
|
||||||
<DataGridTextColumn Header="Name" Binding="{Binding Name}" Width="*" />
|
|
||||||
</DataGrid.Columns>
|
|
||||||
</DataGrid>
|
|
||||||
<Button Content="Get list of DLCs..." Command="{Binding GetListOfDlcCommand}" Grid.Row="1" Width="120" HorizontalAlignment="Right" Margin="0,5,125,0" Height="20"/>
|
|
||||||
<Button Content="Advanced Settings..." Grid.Row="1" Width="120" HorizontalAlignment="Right" Margin="0,5,0,0" Height="20" IsEnabled="False" ToolTip="Work in progress..."/>
|
|
||||||
</Grid>
|
|
||||||
</GroupBox>
|
|
||||||
</Grid>
|
|
||||||
</TabItem>
|
|
||||||
<!-- Advanced -->
|
|
||||||
<TabItem Header="Advanced" IsEnabled="{Binding DllSelected, UpdateSourceTrigger=PropertyChanged}">
|
|
||||||
<Grid HorizontalAlignment="Stretch" Margin="10,20,10,10" >
|
|
||||||
<Grid.RowDefinitions>
|
|
||||||
<RowDefinition Height="Auto"/>
|
|
||||||
<RowDefinition Height="*"/>
|
|
||||||
</Grid.RowDefinitions>
|
|
||||||
<StackPanel IsEnabled="False" HorizontalAlignment="Left" Orientation="Horizontal" Grid.Row="0" VerticalAlignment="Top" Margin="0,0,0,0">
|
|
||||||
<StackPanel Margin="0,0,5,0">
|
|
||||||
<Button Content="Subscribed Groups" Width="120" Height="20" Margin="0,0,0,5"/>
|
|
||||||
<Button Content="Mods" Width="120" Height="20" Margin="0,5,0,5"/>
|
|
||||||
<Button Content="Items, Inventory" Width="120" Height="20" Margin="0,5,0,5"/>
|
|
||||||
</StackPanel>
|
|
||||||
<StackPanel Margin="5,0,0,0">
|
|
||||||
<Button Content="Achievements" Width="120" Height="20" Margin="0,0,0,5"/>
|
|
||||||
<Button Content="Stats, Leaderboards" Width="120" Height="20" Margin="0,5,0,5"/>
|
|
||||||
<Button Content="Controller" Width="120" Height="20" Margin="0,5,0,5"/>
|
|
||||||
</StackPanel>
|
|
||||||
</StackPanel>
|
|
||||||
<GroupBox Header="Miscellaneous" Grid.Row="1" Margin="0,5,0,0">
|
|
||||||
<StackPanel Margin="5,5,5,5">
|
|
||||||
<CheckBox Content="Offline" IsChecked="{Binding Offline, Mode=TwoWay}" Height="20" VerticalAlignment="Stretch" VerticalContentAlignment="Center"/>
|
|
||||||
<CheckBox Content="Disable Networking" IsChecked="{Binding DisableNetworking, Mode=TwoWay}" Height="20" VerticalContentAlignment="Center"/>
|
|
||||||
<CheckBox Content="Disable Overlay" IsChecked="{Binding DisableOverlay, Mode=TwoWay}" Height="20" VerticalContentAlignment="Center"/>
|
|
||||||
</StackPanel>
|
|
||||||
</GroupBox>
|
|
||||||
</Grid>
|
|
||||||
</TabItem>
|
|
||||||
<!-- Settings -->
|
|
||||||
<TabItem Header="Global Settings">
|
|
||||||
<StackPanel Margin="10,20,10,10">
|
|
||||||
<Grid Margin="0,0,0,5">
|
|
||||||
<Grid.ColumnDefinitions>
|
|
||||||
<ColumnDefinition Width="Auto"/>
|
|
||||||
<ColumnDefinition Width="*"/>
|
|
||||||
</Grid.ColumnDefinitions>
|
|
||||||
<Grid.RowDefinitions>
|
<Grid.RowDefinitions>
|
||||||
<RowDefinition/>
|
<RowDefinition Height="Auto"/>
|
||||||
<RowDefinition/>
|
<RowDefinition Height="Auto"/>
|
||||||
|
<RowDefinition Height="Auto"/>
|
||||||
<RowDefinition/>
|
<RowDefinition/>
|
||||||
</Grid.RowDefinitions>
|
</Grid.RowDefinitions>
|
||||||
<Label Content="Account name" HorizontalAlignment="Left" Margin="0,0,10,0" />
|
<TextBox Text="{Binding DllPath, Mode=OneWay}" TextWrapping="Wrap" Margin="0,0,85,5" VerticalAlignment="Center" Padding="1,0,0,0" Height="20" IsEnabled="False"/>
|
||||||
<TextBox Text="{Binding AccountName, Mode=TwoWay}" Height="20" Grid.Row="0" Grid.Column="1"/>
|
<Button Content="Select..." Command="{Binding OpenFileCommand}" HorizontalAlignment="Right" Width="80" Height="20" Grid.Row="0" Margin="0,0,0,5"/>
|
||||||
<Label Content="Steam64ID" HorizontalAlignment="Left" Grid.Row="1"
|
<Button Content="Generate steam_interfaces.txt" IsEnabled="{Binding SteamInterfacesTxtExists, UpdateSourceTrigger=PropertyChanged}" Command="{Binding GenerateSteamInterfacesCommand}" Height="20" Grid.Row="1" Margin="0,5,0,5" />
|
||||||
Grid.Column="0" Margin="0,0,10,0" />
|
<TextBox Text="{Binding GameName, Mode=TwoWay}" TextWrapping="Wrap" VerticalAlignment="Center" Padding="1,0,0,0" Grid.Row="2" Margin="0,5,215,5" Height="20"/>
|
||||||
<TextBox Text="{Binding SteamId, Mode=TwoWay}" Grid.Column="1" Height="20" Grid.Row="1"/>
|
<Button Content="Find ID..." Command="{Binding FindIdCommand}" Width="80" Grid.Row="2" Margin="0,5,130,5" HorizontalAlignment="Right" Height="20"/>
|
||||||
<Label Content="Language" HorizontalAlignment="Left" Grid.Row="2"
|
<TextBox Text="{Binding AppId, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" TextWrapping="Wrap" HorizontalAlignment="Right" VerticalAlignment="Center" Padding="1,0,0,0" Grid.Row="2" Width="125" Margin="0,5,0,5" Height="20"/>
|
||||||
Grid.Column="0" Margin="0,0,10,0" />
|
<GroupBox Header="DLC" Grid.Row="3" Padding="0,0,0,0" Margin="0,5,0,0">
|
||||||
<ComboBox Grid.Row="2" Grid.Column="1" ItemsSource="{Binding SteamLanguages}" SelectedItem="{Binding SelectedLanguage}"></ComboBox>
|
<GroupBox.InputBindings>
|
||||||
|
<KeyBinding Key="V" Modifiers="Control"
|
||||||
|
Command="{Binding PasteDlcCommand}"/>
|
||||||
|
</GroupBox.InputBindings>
|
||||||
|
<Grid Margin="10,10,10,10">
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition/>
|
||||||
|
<RowDefinition Height="Auto"/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
<DataGrid Margin="0,0,0,5" ItemsSource="{Binding DLCs, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" SelectionMode="Extended" SelectionUnit="FullRow" HeadersVisibility="Column" AutoGenerateColumns="False" CanUserResizeColumns="False">
|
||||||
|
<DataGrid.Columns>
|
||||||
|
<DataGridTextColumn Header="App ID" Binding="{Binding AppId}" Width="80" />
|
||||||
|
<DataGridTextColumn Header="Name" Binding="{Binding Name}" Width="*" />
|
||||||
|
</DataGrid.Columns>
|
||||||
|
</DataGrid>
|
||||||
|
<Button Content="Get list of DLCs..." Command="{Binding GetListOfDlcCommand}" Grid.Row="1" Width="120" HorizontalAlignment="Right" Margin="0,5,125,0" Height="20"/>
|
||||||
|
<Button Content="Advanced Settings..." Grid.Row="1" Width="120" HorizontalAlignment="Right" Margin="0,5,0,0" Height="20" IsEnabled="False" ToolTip="Work in progress..."/>
|
||||||
|
</Grid>
|
||||||
|
</GroupBox>
|
||||||
</Grid>
|
</Grid>
|
||||||
</StackPanel>
|
</TabItem>
|
||||||
</TabItem>
|
<!-- Advanced -->
|
||||||
<TabItem Header="About" HorizontalAlignment="Center" Height="20" VerticalAlignment="Center" Width="54">
|
<TabItem Header="Advanced" IsEnabled="{Binding DllSelected, UpdateSourceTrigger=PropertyChanged}">
|
||||||
<StackPanel Margin="10,20,10,10">
|
<Grid HorizontalAlignment="Stretch" Margin="10,20,10,10" >
|
||||||
<Label VerticalAlignment="Stretch" Content="{Binding AboutVersionText}">
|
<Grid.RowDefinitions>
|
||||||
<Label.ContentTemplate>
|
<RowDefinition Height="Auto"/>
|
||||||
<DataTemplate>
|
<RowDefinition Height="*"/>
|
||||||
<StackPanel>
|
</Grid.RowDefinitions>
|
||||||
<StackPanel Orientation="Horizontal" Margin="0,0,0,10">
|
<StackPanel IsEnabled="False" HorizontalAlignment="Left" Orientation="Horizontal" Grid.Row="0" VerticalAlignment="Top" Margin="0,0,0,0">
|
||||||
<TextBlock Text="GoldbergGUI" FontWeight="Bold" FontSize="16" Padding="0,0,10,0"/>
|
<StackPanel Margin="0,0,5,0">
|
||||||
<TextBlock Text="{Binding}" VerticalAlignment="Bottom" />
|
<Button Content="Subscribed Groups" Width="120" Height="20" Margin="0,0,0,5"/>
|
||||||
|
<Button Content="Mods" Width="120" Height="20" Margin="0,5,0,5"/>
|
||||||
|
<Button Content="Items, Inventory" Width="120" Height="20" Margin="0,5,0,5"/>
|
||||||
|
</StackPanel>
|
||||||
|
<StackPanel Margin="5,0,0,0">
|
||||||
|
<Button Content="Achievements" Width="120" Height="20" Margin="0,0,0,5"/>
|
||||||
|
<Button Content="Stats, Leaderboards" Width="120" Height="20" Margin="0,5,0,5"/>
|
||||||
|
<Button Content="Controller" Width="120" Height="20" Margin="0,5,0,5"/>
|
||||||
|
</StackPanel>
|
||||||
|
</StackPanel>
|
||||||
|
<GroupBox Header="Miscellaneous" Grid.Row="1" Margin="0,5,0,0">
|
||||||
|
<StackPanel Margin="5,5,5,5">
|
||||||
|
<CheckBox Content="Offline" IsChecked="{Binding Offline, Mode=TwoWay}" Height="20" VerticalAlignment="Stretch" VerticalContentAlignment="Center"/>
|
||||||
|
<CheckBox Content="Disable Networking" IsChecked="{Binding DisableNetworking, Mode=TwoWay}" Height="20" VerticalContentAlignment="Center"/>
|
||||||
|
<CheckBox Content="Disable Overlay" IsChecked="{Binding DisableOverlay, Mode=TwoWay}" Height="20" VerticalContentAlignment="Center"/>
|
||||||
|
</StackPanel>
|
||||||
|
</GroupBox>
|
||||||
|
</Grid>
|
||||||
|
</TabItem>
|
||||||
|
<!-- Settings -->
|
||||||
|
<TabItem Header="Global Settings">
|
||||||
|
<StackPanel Margin="10,20,10,10">
|
||||||
|
<Grid Margin="0,0,0,5">
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="Auto"/>
|
||||||
|
<ColumnDefinition Width="*"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition/>
|
||||||
|
<RowDefinition/>
|
||||||
|
<RowDefinition/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
<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"/>
|
||||||
|
<Label Content="Steam64ID" HorizontalAlignment="Left" Grid.Row="1"
|
||||||
|
Grid.Column="0" Margin="0,0,10,0" />
|
||||||
|
<TextBox Text="{Binding SteamId, Mode=TwoWay}" Grid.Column="1" Height="20" Grid.Row="1"/>
|
||||||
|
<Label Content="Language" HorizontalAlignment="Left" Grid.Row="2"
|
||||||
|
Grid.Column="0" Margin="0,0,10,0" />
|
||||||
|
<ComboBox Grid.Row="2" Grid.Column="1" ItemsSource="{Binding SteamLanguages}" SelectedItem="{Binding SelectedLanguage}"/>
|
||||||
|
</Grid>
|
||||||
|
</StackPanel>
|
||||||
|
</TabItem>
|
||||||
|
<TabItem Header="About" HorizontalAlignment="Center" Height="20" VerticalAlignment="Center" Width="54">
|
||||||
|
<StackPanel Margin="10,20,10,10">
|
||||||
|
<Label VerticalAlignment="Stretch" Content="{Binding AboutVersionText}">
|
||||||
|
<Label.ContentTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
<StackPanel>
|
||||||
|
<StackPanel Orientation="Horizontal" Margin="0,0,0,10">
|
||||||
|
<TextBlock Text="GoldbergGUI" FontWeight="Bold" FontSize="16" Padding="0,0,10,0"/>
|
||||||
|
<TextBlock Text="{Binding}" VerticalAlignment="Bottom" />
|
||||||
|
</StackPanel>
|
||||||
|
<TextBlock Text="Developed by Jeddunk" />
|
||||||
|
<TextBlock Text="Licensed under GNU GPLv3" />
|
||||||
|
<TextBlock Text="Goldberg Emulator is owned by Mr. Goldberg and licensed under GNU LGPLv3" Margin="0,10,0,0"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
<TextBlock Text="Developed by Jeddunk" />
|
</DataTemplate>
|
||||||
<TextBlock Text="Licensed under GNU GPLv3" />
|
</Label.ContentTemplate>
|
||||||
<TextBlock Text="Goldberg Emulator is owned by Mr. Goldberg and licensed under GNU LGPLv3" Margin="0,10,0,0"/>
|
</Label>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</DataTemplate>
|
</TabItem>
|
||||||
</Label.ContentTemplate>
|
</TabControl>
|
||||||
</Label>
|
<!-- Bottom Row -->
|
||||||
</StackPanel>
|
<Grid Grid.Row="1" Margin="5,5,5,5">
|
||||||
</TabItem>
|
<Grid.ColumnDefinitions>
|
||||||
</TabControl>
|
<ColumnDefinition Width="*"/>
|
||||||
<!-- Bottom Row -->
|
<ColumnDefinition Width="Auto"/>
|
||||||
<Grid Grid.Row="1" Margin="5,5,5,5">
|
<ColumnDefinition Width="Auto"/>
|
||||||
<Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
<ColumnDefinition Width="*"/>
|
<CheckBox Content="Goldberg applied" IsChecked="{Binding GoldbergApplied}" IsEnabled="False" Height="20" />
|
||||||
<ColumnDefinition Width="Auto"/>
|
<Button Content="Save" Command="{Binding SaveConfigCommand}" Width="80" Grid.Column="1" Height="20" Margin="0,0,5,0"/>
|
||||||
<ColumnDefinition Width="Auto"/>
|
<Button Content="Reset" Command="{Binding ResetConfigCommand}" Width="80" Grid.Column="2" Height="20"/>
|
||||||
</Grid.ColumnDefinitions>
|
</Grid>
|
||||||
<CheckBox Content="Goldberg applied" IsChecked="{Binding GoldbergApplied}" IsEnabled="False" Height="20" />
|
|
||||||
<Button Content="Save" Command="{Binding SaveConfigCommand}" Width="80" Grid.Column="1" Height="20" Margin="0,0,5,0"/>
|
|
||||||
<Button Content="Reset" Command="{Binding ResetConfigCommand}" Width="80" Grid.Column="2" Height="20"/>
|
|
||||||
</Grid>
|
</Grid>
|
||||||
<!-- Status Bar -->
|
<!-- Status Bar -->
|
||||||
|
<StatusBar Grid.Column="0" Grid.Row="1" Padding="2,2,2,2" BorderBrush="#33000000" BorderThickness="0,2,0,0">
|
||||||
|
<StatusBarItem Content="{Binding StatusText}"/>
|
||||||
|
</StatusBar>
|
||||||
</Grid>
|
</Grid>
|
||||||
</views:MvxWpfView>
|
</views:MvxWpfView>
|
Loading…
Reference in New Issue
Block a user