Added Configui

This commit is contained in:
NicoAICP 2020-03-01 17:15:54 +01:00
parent 50746ee108
commit 5d07c85e71
5 changed files with 55 additions and 15 deletions

View file

@ -14,11 +14,11 @@ namespace UWUVCI_AIO_WPF
public GameConsole Console { get; set; }
public GameBases BaseRom { get; set; }
public string GameName { get; set; }
public PNGTGA TGAIco { get; set; }
public PNGTGA TGADrc { get; set; }
public PNGTGA TGATv { get; set; }
public PNGTGA TGALog { get; set; }
public N64Conf N64Stuff { get; set; }
public PNGTGA TGAIco { get; set; } = new PNGTGA();
public PNGTGA TGADrc { get; set; } = new PNGTGA();
public PNGTGA TGATv { get; set; } = new PNGTGA();
public PNGTGA TGALog { get; set; } = new PNGTGA();
public N64Conf N64Stuff { get; set; } = new N64Conf();
}
}

View file

@ -9,7 +9,7 @@ namespace UWUVCI_AIO_WPF
class MainViewModel : BaseModel
{
//public GameConfig GameConfiguration { get; set; }
private GameConfig gameConfiguration;
private GameConfig gameConfiguration = new GameConfig();
public GameConfig GameConfiguration
{
@ -20,6 +20,15 @@ namespace UWUVCI_AIO_WPF
OnPropertyChanged();
}
}
private string romPath;
public string RomPath
{
get { return romPath; }
set { romPath = value;
OnPropertyChanged();
}
}
public bool pathsSet { get; set; } = false;

View file

@ -1,17 +1,43 @@
<Page x:Class="UWUVCI_AIO_WPF.UI.Frames.NDSFrame"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:UWUVCI_AIO_WPF.UI.Frames"
mc:Ignorable="d"
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
d:DesignHeight="480" d:DesignWidth="1130"
Title="NDSFrame">
<Grid DataContext="{StaticResource mvm}">
<GroupBox Header="1. BaseRom" HorizontalAlignment="Left" Height="349" Margin="10,10,0,0" VerticalAlignment="Top" Width="421">
<Grid>
<GroupBox Header="1. BaseRom" HorizontalAlignment="Left" Height="349" Margin="10,10,0,0" VerticalAlignment="Top" Width="421"/>
<GroupBox Header="3. Packing" HorizontalAlignment="Left" Height="95" Margin="10,375,0,0" VerticalAlignment="Top" Width="421"/>
<GroupBox Header="2. Configuration" HorizontalAlignment="Left" Height="460" Margin="448,10,0,0" VerticalAlignment="Top" Width="661"/>
</Grid>
</GroupBox>
<GroupBox Header="3. Packing" HorizontalAlignment="Left" Height="95" Margin="10,375,0,0" VerticalAlignment="Top" Width="421">
<Grid>
</Grid>
</GroupBox>
<GroupBox Header="2. Configuration" HorizontalAlignment="Left" Height="460" Margin="448,10,0,0" VerticalAlignment="Top" Width="661">
<Grid>
<Button Content="Import Config" HorizontalAlignment="Left" Margin="373,10,0,0" VerticalAlignment="Top" Width="128" Click="Button_Click"/>
<Button Content="Export Config" HorizontalAlignment="Left" Margin="506,10,0,0" VerticalAlignment="Top" Width="127"/>
<TextBox materialDesign:HintAssist.Hint="ROM PATH" Style="{StaticResource MaterialDesignFloatingHintTextBox}" Margin="10,58,157,305" Background="{x:Null}" Foreground="Black" SelectionBrush="#FF00C3D7" CaretBrush="#FF21C3F3" FontSize="18" IsReadOnly="True" Focusable="False" Text="{Binding RomPath}"/>
<TextBox materialDesign:HintAssist.Hint="ICONTEX" Style="{StaticResource MaterialDesignFloatingHintTextBox}" Margin="10,131,157,232" Background="{x:Null}" Foreground="Black" SelectionBrush="#FF00C3D7" CaretBrush="#FF21C3F3" FontSize="18" IsReadOnly="True" Focusable="False" Text="{Binding GameConfiguration.TGAIco.ImgPath}"/>
<TextBox materialDesign:HintAssist.Hint="BOOTDRCTEX" Style="{StaticResource MaterialDesignFloatingHintTextBox}" Margin="10,177,157,186" Background="{x:Null}" Foreground="Black" SelectionBrush="#FF00C3D7" CaretBrush="#FF21C3F3" FontSize="18" IsReadOnly="True" Focusable="False" Text="{Binding GameConfiguration.TGADrc.ImgPath}"/>
<TextBox materialDesign:HintAssist.Hint="BOOTTVTEX" Style="{StaticResource MaterialDesignFloatingHintTextBox}" Margin="10,222,157,141" Background="{x:Null}" Foreground="Black" SelectionBrush="#FF00C3D7" CaretBrush="#FF21C3F3" FontSize="18" IsReadOnly="True" Focusable="False" Text="{Binding GameConfiguration.TGATv.ImgPath}"/>
<TextBox materialDesign:HintAssist.Hint="BOOTLOGOTEX" Style="{StaticResource MaterialDesignFloatingHintTextBox}" Margin="10,267,157,96" Background="{x:Null}" Foreground="Black" SelectionBrush="#FF00C3D7" CaretBrush="#FF21C3F3" FontSize="18" IsReadOnly="True" Focusable="False" Text="{Binding GameConfiguration.TGALog.ImgPath}"/>
<TextBox materialDesign:HintAssist.Hint="GAME NAME" Style="{StaticResource MaterialDesignFloatingHintTextBox}" Margin="10,336,157,27" Background="{x:Null}" Foreground="Black" SelectionBrush="#FF00C3D7" CaretBrush="#FF21C3F3" FontSize="18" Text="{Binding GameConfiguration.GameName}"/>
<Button Content="Inject" HorizontalAlignment="Left" Margin="506,360,0,0" VerticalAlignment="Top" Width="127"/>
<Button Content="Set Path" HorizontalAlignment="Left" Margin="506,280,0,0" VerticalAlignment="Top" Width="127"/>
<Button Content="Set Path" HorizontalAlignment="Left" Margin="506,235,0,0" VerticalAlignment="Top" Width="127"/>
<Button Content="Set Path" HorizontalAlignment="Left" Margin="506,190,0,0" VerticalAlignment="Top" Width="127"/>
<Button Content="Set Path" HorizontalAlignment="Left" Margin="506,144,0,0" VerticalAlignment="Top" Width="127"/>
<Button Content="Set Path" HorizontalAlignment="Left" Margin="506,71,0,0" VerticalAlignment="Top" Width="127"/>
</Grid>
</GroupBox>
</Grid>
</Page>

View file

@ -28,5 +28,10 @@ namespace UWUVCI_AIO_WPF.UI.Frames
{
}
private void Button_Click(object sender, RoutedEventArgs e)
{
}
}
}

View file

@ -23,7 +23,7 @@ namespace UWUVCI_AIO_WPF
public MainWindow()
{
InitializeComponent();
load_frame.Content = new UI.Frames.MainFrame();
load_frame.Content = new UI.Frames.NDSFrame();
}
private void ButtonCloseMenu_Click(object sender, RoutedEventArgs e)
{