chore: pull warning into resource

This commit is contained in:
Anna 2022-02-15 13:22:47 -05:00
parent a0525562ff
commit a1719dbee1
3 changed files with 14 additions and 2 deletions

View File

@ -1,4 +1,4 @@
//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
@ -402,6 +402,15 @@ namespace ChatTwo.Resources {
}
}
/// <summary>
/// Looks up a localized string similar to Do not click these buttons unless you know what you&apos;re doing..
/// </summary>
internal static string Options_Database_Advanced_Warning {
get {
return ResourceManager.GetString("Options_Database_Advanced_Warning", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Database.
/// </summary>

View File

@ -458,4 +458,7 @@
<data name="Options_FilterIncludePreviousSessions_Description" xml:space="preserve">
<value>Include messages from before the game was launched when populating tabs. Tabs are populated when the settings are saved.</value>
</data>
<data name="Options_Database_Advanced_Warning" xml:space="preserve">
<value>Do not click these buttons unless you know what you're doing.</value>
</data>
</root>

View File

@ -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();