From e0fd0cb2cd827aa5991b9ed4ec379fe1f5a5b0ae Mon Sep 17 00:00:00 2001 From: Milon Date: Wed, 14 Jan 2026 21:23:39 +0100 Subject: [PATCH] tips / tutorial system (#5199) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * somewhat functional yes * some cleanup * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * review * missed one * why not params… * review 2 --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .../_DV/Options/UI/Tabs/DeltaTab.xaml | 13 +- .../_DV/Options/UI/Tabs/DeltaTab.xaml.cs | 14 +- Content.Client/_DV/Tips/TipSystem.cs | 126 + Content.Client/_DV/Tips/UI/TipPopup.xaml | 41 + Content.Client/_DV/Tips/UI/TipPopup.xaml.cs | 98 + Content.Server.Database/DVModel.cs | 39 + .../20260112180704_DVSeenTips.Designer.cs | 2273 +++++++++++++++++ .../Postgres/20260112180704_DVSeenTips.cs | 50 + .../PostgresServerDbContextModelSnapshot.cs | 44 + .../20260112180647_DVSeenTips.Designer.cs | 2191 ++++++++++++++++ .../Sqlite/20260112180647_DVSeenTips.cs | 49 + .../SqliteServerDbContextModelSnapshot.cs | 42 + Content.Server.Database/Model.cs | 10 + Content.Server/Database/ServerDbBase.cs | 77 + Content.Server/Database/ServerDbManager.cs | 45 + .../GameTicking/Rules/TraitorRuleSystem.cs | 3 + Content.Server/_DV/Tips/ShowTipCommand.cs | 61 + Content.Server/_DV/Tips/TipSystem.cs | 331 +++ Content.Shared/_DV/CCVars/DCCVars.cs | 12 + .../_DV/Tips/Conditions/HasCompCondition.cs | 29 + .../_DV/Tips/Conditions/HasJobCondition.cs | 23 + .../Tips/Conditions/HasRoleTypeCondition.cs | 24 + .../Tips/Conditions/MaxPlaytimeCondition.cs | 32 + .../Tips/Conditions/MinPlaytimeCondition.cs | 30 + .../_DV/Tips/Conditions/TipCondition.cs | 44 + Content.Shared/_DV/Tips/SharedTipSystem.cs | 71 + Content.Shared/_DV/Tips/TipEvents.cs | 52 + Content.Shared/_DV/Tips/TipPrototype.cs | 53 + .../Components/Effects/ShowTipOnTrigger.cs | 20 + .../Trigger/Systems/ShowTipOnTriggerSystem.cs | 36 + .../en-US/_DV/escape-menu/options-menu.ftl | 5 + .../Locale/en-US/_DV/tips/showtip-command.ftl | 3 + Resources/Locale/en-US/_DV/tips/tips.ftl | 35 + Resources/Prototypes/_DV/Tips/tips.yml | 99 + 34 files changed, 6064 insertions(+), 11 deletions(-) create mode 100644 Content.Client/_DV/Tips/TipSystem.cs create mode 100644 Content.Client/_DV/Tips/UI/TipPopup.xaml create mode 100644 Content.Client/_DV/Tips/UI/TipPopup.xaml.cs create mode 100644 Content.Server.Database/DVModel.cs create mode 100644 Content.Server.Database/Migrations/Postgres/20260112180704_DVSeenTips.Designer.cs create mode 100644 Content.Server.Database/Migrations/Postgres/20260112180704_DVSeenTips.cs create mode 100644 Content.Server.Database/Migrations/Sqlite/20260112180647_DVSeenTips.Designer.cs create mode 100644 Content.Server.Database/Migrations/Sqlite/20260112180647_DVSeenTips.cs create mode 100644 Content.Server/_DV/Tips/ShowTipCommand.cs create mode 100644 Content.Server/_DV/Tips/TipSystem.cs create mode 100644 Content.Shared/_DV/Tips/Conditions/HasCompCondition.cs create mode 100644 Content.Shared/_DV/Tips/Conditions/HasJobCondition.cs create mode 100644 Content.Shared/_DV/Tips/Conditions/HasRoleTypeCondition.cs create mode 100644 Content.Shared/_DV/Tips/Conditions/MaxPlaytimeCondition.cs create mode 100644 Content.Shared/_DV/Tips/Conditions/MinPlaytimeCondition.cs create mode 100644 Content.Shared/_DV/Tips/Conditions/TipCondition.cs create mode 100644 Content.Shared/_DV/Tips/SharedTipSystem.cs create mode 100644 Content.Shared/_DV/Tips/TipEvents.cs create mode 100644 Content.Shared/_DV/Tips/TipPrototype.cs create mode 100644 Content.Shared/_DV/Trigger/Components/Effects/ShowTipOnTrigger.cs create mode 100644 Content.Shared/_DV/Trigger/Systems/ShowTipOnTriggerSystem.cs create mode 100644 Resources/Locale/en-US/_DV/tips/showtip-command.ftl create mode 100644 Resources/Locale/en-US/_DV/tips/tips.ftl create mode 100644 Resources/Prototypes/_DV/Tips/tips.yml diff --git a/Content.Client/_DV/Options/UI/Tabs/DeltaTab.xaml b/Content.Client/_DV/Options/UI/Tabs/DeltaTab.xaml index 940b78d4be8..c097f6aacc3 100644 --- a/Content.Client/_DV/Options/UI/Tabs/DeltaTab.xaml +++ b/Content.Client/_DV/Options/UI/Tabs/DeltaTab.xaml @@ -1,21 +1,18 @@ + xmlns:ui="clr-namespace:Content.Client.Options.UI">