From bb53a70d3f980f71c8c5c2930457ed0d87d9da7b Mon Sep 17 00:00:00 2001 From: Farrellka <104170263+Farrellka-dev@users.noreply.github.com> Date: Fri, 1 Nov 2024 19:46:53 +0300 Subject: [PATCH 1/7] Roadmap (#307) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Окно, но не прототип * Рабочий прототип роадмапа * Контрол * Потом доделаю * Пустой Roadmap * Готова --------- Co-authored-by: BL02DL <164734444+BL02DL@users.noreply.github.com> --- Content.Client/Info/LinkBanner.cs | 12 ++- Content.Client/Options/UI/EscapeMenu.xaml | 1 + .../Systems/EscapeMenu/EscapeUIController.cs | 9 +- .../_LostParadise/Roadmap/RoadmapControl.cs | 96 +++++++++++++++++++ .../_LostParadise/Roadmap/RoadmapUI.cs | 81 ++++++++++++++++ .../_LostParadise/Roadmap/RoadmapSystem.cs | 34 +++++++ .../_LostParadise/Roadmap/RoadmapComponent.cs | 18 ++++ .../_LostParadise/Roadmap/RoadmapPrototype.cs | 26 +++++ .../Roadmap/RoadmapUpdateEvent.cs | 16 ++++ .../ru-RU/_LostParadise/roadmap/roadmap.ftl | 7 ++ .../_LostParadise/Roadmap/roadmap.yml | 27 ++++++ 11 files changed, 325 insertions(+), 2 deletions(-) create mode 100644 Content.Client/_LostParadise/Roadmap/RoadmapControl.cs create mode 100644 Content.Client/_LostParadise/Roadmap/RoadmapUI.cs create mode 100644 Content.Server/_LostParadise/Roadmap/RoadmapSystem.cs create mode 100644 Content.Shared/_LostParadise/Roadmap/RoadmapComponent.cs create mode 100644 Content.Shared/_LostParadise/Roadmap/RoadmapPrototype.cs create mode 100644 Content.Shared/_LostParadise/Roadmap/RoadmapUpdateEvent.cs create mode 100644 Resources/Locale/ru-RU/_LostParadise/roadmap/roadmap.ftl create mode 100644 Resources/Prototypes/_LostParadise/Roadmap/roadmap.yml diff --git a/Content.Client/Info/LinkBanner.cs b/Content.Client/Info/LinkBanner.cs index a30aa413761..f9c4a1ba76d 100644 --- a/Content.Client/Info/LinkBanner.cs +++ b/Content.Client/Info/LinkBanner.cs @@ -1,4 +1,6 @@ -using Content.Client.Changelog; +using Content.Client._LostParadise.Roadmap; +using Content.Client.Changelog; +using Content.Client.Stylesheets; using Content.Client.UserInterface.Systems.EscapeMenu; using Content.Client.UserInterface.Systems.Guidebook; using Content.Shared.CCVar; @@ -47,6 +49,14 @@ public LinkBanner() changelogButton.OnPressed += args => UserInterfaceManager.GetUIController().ToggleWindow(); buttons.AddChild(changelogButton); + var roadmapButton = new Button + { + Text = Loc.GetString("server-info-roadmap-button"), + StyleClasses = { StyleBase.ButtonCaution }, + }; + roadmapButton.OnPressed += _ => UserInterfaceManager.GetUIController().ToggleRoadmap(); + buttons.AddChild(roadmapButton); + void AddInfoButton(string loc, CVarDef cVar) { var button = new Button { Text = Loc.GetString(loc) }; diff --git a/Content.Client/Options/UI/EscapeMenu.xaml b/Content.Client/Options/UI/EscapeMenu.xaml index c84954be649..5226be5f58c 100644 --- a/Content.Client/Options/UI/EscapeMenu.xaml +++ b/Content.Client/Options/UI/EscapeMenu.xaml @@ -6,6 +6,7 @@ Resizable="False"> +