From ff2bcbf1e26553c9f7e2c47feae8709ba9e30578 Mon Sep 17 00:00:00 2001 From: pizzaboxer Date: Tue, 24 Oct 2023 15:10:20 +0100 Subject: [PATCH] Componetize text dropdown and simplify credits --- Bloxstrap/Resources/Strings.Designer.cs | 27 ++++ Bloxstrap/Resources/Strings.resx | 9 ++ Bloxstrap/UI/Elements/Controls/Expander.xaml | 23 +++ .../UI/Elements/Controls/Expander.xaml.cs | 58 ++++++++ .../UI/Elements/Menu/Pages/AboutPage.xaml | 133 +++++------------- 5 files changed, 151 insertions(+), 99 deletions(-) create mode 100644 Bloxstrap/UI/Elements/Controls/Expander.xaml create mode 100644 Bloxstrap/UI/Elements/Controls/Expander.xaml.cs diff --git a/Bloxstrap/Resources/Strings.Designer.cs b/Bloxstrap/Resources/Strings.Designer.cs index 14531c6..3e4025c 100644 --- a/Bloxstrap/Resources/Strings.Designer.cs +++ b/Bloxstrap/Resources/Strings.Designer.cs @@ -1290,6 +1290,15 @@ namespace Bloxstrap.Resources { } } + /// + /// Looks up a localized string similar to Code. + /// + public static string Menu_About_Contributors_Code { + get { + return ResourceManager.GetString("Menu.About.Contributors.Code", resourceCulture); + } + } + /// /// Looks up a localized string similar to These are the people who have made notable contributions to Bloxstrap, helping make it what it is.. /// @@ -1299,6 +1308,24 @@ namespace Bloxstrap.Resources { } } + /// + /// Looks up a localized string similar to Feature Ideas. + /// + public static string Menu_About_Contributors_FeatureIdeas { + get { + return ResourceManager.GetString("Menu.About.Contributors.FeatureIdeas", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Translations. + /// + public static string Menu_About_Contributors_Translations { + get { + return ResourceManager.GetString("Menu.About.Contributors.Translations", resourceCulture); + } + } + /// /// Looks up a localized string similar to An open-source, feature-packed alternative bootstrapper for Roblox. /// diff --git a/Bloxstrap/Resources/Strings.resx b/Bloxstrap/Resources/Strings.resx index c36b3ce..a7cd2a6 100644 --- a/Bloxstrap/Resources/Strings.resx +++ b/Bloxstrap/Resources/Strings.resx @@ -531,9 +531,18 @@ Would you like to upgrade your currently installed version? Contributors + + Code + These are the people who have made notable contributions to Bloxstrap, helping make it what it is. + + Feature Ideas + + + Translations + An open-source, feature-packed alternative bootstrapper for Roblox diff --git a/Bloxstrap/UI/Elements/Controls/Expander.xaml b/Bloxstrap/UI/Elements/Controls/Expander.xaml new file mode 100644 index 0000000..7c993b7 --- /dev/null +++ b/Bloxstrap/UI/Elements/Controls/Expander.xaml @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + diff --git a/Bloxstrap/UI/Elements/Controls/Expander.xaml.cs b/Bloxstrap/UI/Elements/Controls/Expander.xaml.cs new file mode 100644 index 0000000..28c2f09 --- /dev/null +++ b/Bloxstrap/UI/Elements/Controls/Expander.xaml.cs @@ -0,0 +1,58 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows; +using System.Windows.Controls; +using System.Windows.Data; +using System.Windows.Documents; +using System.Windows.Input; +using System.Windows.Markup; +using System.Windows.Media; +using System.Windows.Media.Imaging; +using System.Windows.Navigation; +using System.Windows.Shapes; +using Wpf.Ui.Common; + +namespace Bloxstrap.UI.Elements.Controls +{ + /// + /// Interaction logic for Expander.xaml + /// + [ContentProperty("InnerContent")] + public partial class Expander : UserControl + { + public static readonly DependencyProperty HeaderIconProperty = + DependencyProperty.Register(nameof(HeaderIcon), typeof(SymbolRegular), typeof(Expander)); + + public static readonly DependencyProperty HeaderTextProperty = + DependencyProperty.Register(nameof(HeaderText), typeof(string), typeof(Expander)); + + public static readonly DependencyProperty InnerContentProperty = + DependencyProperty.Register(nameof(InnerContent), typeof(object), typeof(Expander)); + + public string HeaderText + { + get { return (string)GetValue(HeaderTextProperty); } + set { SetValue(HeaderTextProperty, value); } + } + + public SymbolRegular HeaderIcon + { + get { return (SymbolRegular)GetValue(HeaderIconProperty); } + set { SetValue(HeaderTextProperty, value); } + } + + public object InnerContent + { + get { return GetValue(InnerContentProperty); } + set { SetValue(InnerContentProperty, value); } + } + + public Expander() + { + InitializeComponent(); + } + } +} diff --git a/Bloxstrap/UI/Elements/Menu/Pages/AboutPage.xaml b/Bloxstrap/UI/Elements/Menu/Pages/AboutPage.xaml index 55b6a89..d683c94 100644 --- a/Bloxstrap/UI/Elements/Menu/Pages/AboutPage.xaml +++ b/Bloxstrap/UI/Elements/Menu/Pages/AboutPage.xaml @@ -4,6 +4,7 @@ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:models="clr-namespace:Bloxstrap.UI.ViewModels" + xmlns:controls="clr-namespace:Bloxstrap.UI.Elements.Controls" xmlns:ui="http://schemas.lepo.co/wpfui/2022/xaml" xmlns:resources="clr-namespace:Bloxstrap.Resources" mc:Ignorable="d" @@ -79,112 +80,46 @@ - - - - - - - - - - - - - - - - - - - - + - + + - - Multako - - + + + + + + + + + + + + - - bluepilledgreat - - + + + + + + + + + + + + + - - 1011025m - - - - - sitiom - - - - - taskmanager - - - - - Extravi - - - - - he3als - - - - - NikSavchenk0 - - - - - EasternBloxxer - - - - - carter0nline - - - - - MehKako - - - - - EpixScripts - - - - - knivesofeylis - - - - - sha4owz - - - - - DaMlgNoodle - - - - - nakoyasha - - + + + + + -