From 09e0f79b8933098a4243e036de63522f0e734d78 Mon Sep 17 00:00:00 2001 From: ShadowCommander <10494922+ShadowCommander@users.noreply.github.com> Date: Wed, 15 Dec 2021 22:17:01 -0800 Subject: [PATCH] Xaml Rules and Info (#5741) * XAMLify rules and info * Fix errors * Combine AddSection methods * Readd AddSection --- Content.Client/Info/Info.xaml | 11 ++ Content.Client/Info/Info.xaml.cs | 14 ++ Content.Client/Info/InfoControlsSection.xaml | 11 ++ .../Info/InfoControlsSection.xaml.cs | 15 ++ Content.Client/Info/InfoSection.xaml | 5 + Content.Client/Info/InfoSection.xaml.cs | 23 +++ Content.Client/Info/RulesAndInfoWindow.cs | 148 ++---------------- 7 files changed, 95 insertions(+), 132 deletions(-) create mode 100644 Content.Client/Info/Info.xaml create mode 100644 Content.Client/Info/Info.xaml.cs create mode 100644 Content.Client/Info/InfoControlsSection.xaml create mode 100644 Content.Client/Info/InfoControlsSection.xaml.cs create mode 100644 Content.Client/Info/InfoSection.xaml create mode 100644 Content.Client/Info/InfoSection.xaml.cs diff --git a/Content.Client/Info/Info.xaml b/Content.Client/Info/Info.xaml new file mode 100644 index 0000000000..0f6e55bfaa --- /dev/null +++ b/Content.Client/Info/Info.xaml @@ -0,0 +1,11 @@ + + + + diff --git a/Content.Client/Info/Info.xaml.cs b/Content.Client/Info/Info.xaml.cs new file mode 100644 index 0000000000..bb8778f9ec --- /dev/null +++ b/Content.Client/Info/Info.xaml.cs @@ -0,0 +1,14 @@ +using Robust.Client.AutoGenerated; +using Robust.Client.UserInterface.Controls; +using Robust.Client.UserInterface.XAML; + +namespace Content.Client.Info; + +[GenerateTypedNameReferences] +public partial class Info : ScrollContainer +{ + public Info() + { + RobustXamlLoader.Load(this); + } +} diff --git a/Content.Client/Info/InfoControlsSection.xaml b/Content.Client/Info/InfoControlsSection.xaml new file mode 100644 index 0000000000..ccaf79027a --- /dev/null +++ b/Content.Client/Info/InfoControlsSection.xaml @@ -0,0 +1,11 @@ + +