From 8b98636e4bf3182a0f689a835ccb8720f4d9ca4c Mon Sep 17 00:00:00 2001 From: Tolly <34184902+TollyH@users.noreply.github.com> Date: Fri, 25 Nov 2022 21:40:13 +0000 Subject: [PATCH] Basic config GUI tab --- CSMazeConfigEditor/CSMazeConfigEditor.csproj | 10 +++ CSMazeConfigEditor/ControlTag.cs | 22 ++++++ CSMazeConfigEditor/MainWindow.xaml | 83 +++++++++++++++++++- CSMazeConfigEditor/MainWindow.xaml.cs | 10 +++ 4 files changed, 123 insertions(+), 2 deletions(-) create mode 100644 CSMazeConfigEditor/ControlTag.cs diff --git a/CSMazeConfigEditor/CSMazeConfigEditor.csproj b/CSMazeConfigEditor/CSMazeConfigEditor.csproj index c0322d3..55757bc 100644 --- a/CSMazeConfigEditor/CSMazeConfigEditor.csproj +++ b/CSMazeConfigEditor/CSMazeConfigEditor.csproj @@ -7,8 +7,18 @@ true + + + + + + + Never + + + diff --git a/CSMazeConfigEditor/ControlTag.cs b/CSMazeConfigEditor/ControlTag.cs new file mode 100644 index 0000000..74b20b0 --- /dev/null +++ b/CSMazeConfigEditor/ControlTag.cs @@ -0,0 +1,22 @@ +using System.Windows; +using System.Windows.Controls; + +namespace CSMaze.ConfigEditor +{ + internal class ControlTag : DependencyObject + { + public static readonly DependencyProperty HeaderLabelProperty = DependencyProperty.Register("HeaderLabel", typeof(Label), typeof(ControlTag)); + public Label HeaderLabel + { + get => (Label)GetValue(HeaderLabelProperty); + set => SetValue(HeaderLabelProperty, value); + } + + public static readonly DependencyProperty ConfigOptionProperty = DependencyProperty.Register("ConfigOption", typeof(string), typeof(ControlTag)); + public string ConfigOption + { + get => (string)GetValue(ConfigOptionProperty); + set => SetValue(ConfigOptionProperty, value); + } + } +} diff --git a/CSMazeConfigEditor/MainWindow.xaml b/CSMazeConfigEditor/MainWindow.xaml index a8d849b..b962efd 100644 --- a/CSMazeConfigEditor/MainWindow.xaml +++ b/CSMazeConfigEditor/MainWindow.xaml @@ -5,8 +5,87 @@ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:local="clr-namespace:CSMaze.ConfigEditor" mc:Ignorable="d" - Title="MainWindow" Height="450" Width="800"> - + Title="CSMaze Config" Icon="config.ico" SizeToContent="WidthAndHeight"> + + diff --git a/CSMazeConfigEditor/MainWindow.xaml.cs b/CSMazeConfigEditor/MainWindow.xaml.cs index a439bb4..118411b 100644 --- a/CSMazeConfigEditor/MainWindow.xaml.cs +++ b/CSMazeConfigEditor/MainWindow.xaml.cs @@ -24,5 +24,15 @@ public MainWindow() { InitializeComponent(); } + + private void Slider_ValueChanged(object sender, RoutedPropertyChangedEventArgs e) + { + + } + + private void Check_Click(object sender, RoutedEventArgs e) + { + + } } }