From f1d87ca7aec2537dfd5926a792a1976aeba5edb6 Mon Sep 17 00:00:00 2001 From: Anna Clemens Date: Tue, 15 Feb 2022 13:22:47 -0500 Subject: [PATCH] chore: pull warning into resource --- ChatTwo/Resources/Language.Designer.cs | 11 ++++++++++- ChatTwo/Resources/Language.resx | 3 +++ ChatTwo/Ui/SettingsTabs/Database.cs | 2 +- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/ChatTwo/Resources/Language.Designer.cs b/ChatTwo/Resources/Language.Designer.cs index 93a0edc..5fe66d5 100755 --- a/ChatTwo/Resources/Language.Designer.cs +++ b/ChatTwo/Resources/Language.Designer.cs @@ -1,4 +1,4 @@ -//------------------------------------------------------------------------------ +//------------------------------------------------------------------------------ // // This code was generated by a tool. // Runtime Version:4.0.30319.42000 @@ -402,6 +402,15 @@ namespace ChatTwo.Resources { } } + /// + /// Looks up a localized string similar to Do not click these buttons unless you know what you're doing.. + /// + internal static string Options_Database_Advanced_Warning { + get { + return ResourceManager.GetString("Options_Database_Advanced_Warning", resourceCulture); + } + } + /// /// Looks up a localized string similar to Database. /// diff --git a/ChatTwo/Resources/Language.resx b/ChatTwo/Resources/Language.resx index 0f51029..7112115 100755 --- a/ChatTwo/Resources/Language.resx +++ b/ChatTwo/Resources/Language.resx @@ -458,4 +458,7 @@ Include messages from before the game was launched when populating tabs. Tabs are populated when the settings are saved. + + Do not click these buttons unless you know what you're doing. + diff --git a/ChatTwo/Ui/SettingsTabs/Database.cs b/ChatTwo/Ui/SettingsTabs/Database.cs index 7575248..ffecd18 100755 --- a/ChatTwo/Ui/SettingsTabs/Database.cs +++ b/ChatTwo/Ui/SettingsTabs/Database.cs @@ -43,7 +43,7 @@ internal sealed class Database : ISettingsTab { if (this._showAdvanced && ImGui.TreeNodeEx("Advanced")) { ImGui.PushTextWrapPos(); - ImGuiUtil.WarningText("Do not click these buttons unless you know what you're doing."); + ImGuiUtil.WarningText(Language.Options_Database_Advanced_Warning); if (ImGui.Button("Checkpoint")) { this.Store.Database.Checkpoint();