From e78b4aaf3f01c81f5fe058993da82cd9e3e3035f Mon Sep 17 00:00:00 2001 From: Alex <15199219+muskit@users.noreply.github.com> Date: Thu, 21 Aug 2025 01:13:08 -0700 Subject: [PATCH] begin on export view --- src/Data/Database.cs | 2 +- src/UI/MainWindow.axaml | 1 + src/UI/Views/Export/Export.axaml | 71 ++++++++++++++++++++++++++ src/UI/Views/Export/Export.axaml.cs | 25 +++++++++ src/UI/Views/Selection/Selection.axaml | 7 +-- 5 files changed, 102 insertions(+), 4 deletions(-) create mode 100644 src/UI/Views/Export/Export.axaml create mode 100644 src/UI/Views/Export/Export.axaml.cs diff --git a/src/Data/Database.cs b/src/Data/Database.cs index fd6d981..77c0249 100644 --- a/src/Data/Database.cs +++ b/src/Data/Database.cs @@ -91,6 +91,6 @@ public static class Database Console.WriteLine($"Couldn't construct a song!\n{e}"); } } - Console.WriteLine("finished music table"); + Console.WriteLine("Data setup finished."); } } \ No newline at end of file diff --git a/src/UI/MainWindow.axaml b/src/UI/MainWindow.axaml index 9ebeded..5dd1a4a 100644 --- a/src/UI/MainWindow.axaml +++ b/src/UI/MainWindow.axaml @@ -43,6 +43,7 @@ + diff --git a/src/UI/Views/Export/Export.axaml b/src/UI/Views/Export/Export.axaml new file mode 100644 index 0000000..5c7f940 --- /dev/null +++ b/src/UI/Views/Export/Export.axaml @@ -0,0 +1,71 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/UI/Views/Export/Export.axaml.cs b/src/UI/Views/Export/Export.axaml.cs new file mode 100644 index 0000000..95b3034 --- /dev/null +++ b/src/UI/Views/Export/Export.axaml.cs @@ -0,0 +1,25 @@ +using System; +using System.Linq.Expressions; +using System.Threading.Tasks; +using Avalonia.Controls; +using Avalonia.Interactivity; +using Avalonia.Threading; +using UAssetAPI.PropertyTypes.Structs; +using UAssetAPI.UnrealTypes.EngineEnums; + +namespace MercuryConverter.UI.Views; + +public partial class Export : Panel +{ + public Export() + { + InitializeComponent(); + ShouldAudioConvertRadio.IsCheckedChanged += AudioConvertCheckChanged; + } + + private void AudioConvertCheckChanged(object? sender, RoutedEventArgs args) + { + RadioButton btn = (RadioButton)args.Source!; + AudioConvertFormat.IsEnabled = (bool)btn.IsChecked!; + } +} \ No newline at end of file diff --git a/src/UI/Views/Selection/Selection.axaml b/src/UI/Views/Selection/Selection.axaml index f2d75c5..696b406 100644 --- a/src/UI/Views/Selection/Selection.axaml +++ b/src/UI/Views/Selection/Selection.axaml @@ -3,8 +3,9 @@ xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:local="clr-namespace:MercuryConverter.UI.Views" - x:Class="MercuryConverter.UI.Views.Selection" + d:DesignWidth="800" d:DesignHeight="400" + x:Class="MercuryConverter.UI.Views.Selection" xmlns:data="clr-namespace:MercuryConverter.Data" > @@ -30,10 +31,10 @@ - + - +