fix: update some things for localisation

This commit is contained in:
Anna
2022-02-05 19:54:57 -05:00
parent 5161b57c51
commit 3daad60560
6 changed files with 20 additions and 5 deletions
+4 -2
View File
@@ -313,7 +313,9 @@ internal sealed class ChatLog : IUiComponent {
ImGui.SetNextWindowBgAlpha(this.Ui.Plugin.Config.WindowAlpha);
}
if (!ImGui.Begin($"{this.Ui.Plugin.Name}##chat", flags)) {
ImGui.SetNextWindowSize(new Vector2(500, 250) * ImGuiHelpers.GlobalScale, ImGuiCond.FirstUseEver);
if (!ImGui.Begin($"{this.Ui.Plugin.Name}###chat2", flags)) {
this._lastViewport = ImGui.GetWindowViewport().NativePtr;
ImGui.End();
return;
@@ -747,7 +749,7 @@ internal sealed class ChatLog : IUiComponent {
anyChanged = true;
}
if (ImGuiUtil.IconButton(FontAwesomeIcon.TrashAlt, tooltip: "Delete tab")) {
if (ImGuiUtil.IconButton(FontAwesomeIcon.TrashAlt, tooltip: Language.ChatLog_Tabs_Delete)) {
tabs.RemoveAt(i);
anyChanged = true;
}
+2 -1
View File
@@ -50,7 +50,8 @@ internal sealed class Settings : IUiComponent {
ImGui.SetNextWindowSize(new Vector2(500, 650) * ImGuiHelpers.GlobalScale, ImGuiCond.FirstUseEver);
if (!ImGui.Begin(string.Format(Language.Settings_Title, this.Ui.Plugin.Name), ref this.Ui.SettingsVisible)) {
var name = string.Format(Language.Settings_Title, this.Ui.Plugin.Name);
if (!ImGui.Begin($"{name}###chat2-settings", ref this.Ui.SettingsVisible)) {
ImGui.End();
return;
}
+1 -1
View File
@@ -46,7 +46,7 @@ internal sealed class Tabs : ISettingsTab {
ImGui.InputText(Language.Options_Tabs_Name, ref tab.Name, 512, ImGuiInputTextFlags.EnterReturnsTrue);
ImGui.Checkbox(Language.Options_Tabs_ShowTimestamps, ref tab.DisplayTimestamp);
if (ImGui.BeginCombo(Language.Options_Tabs_UnreadMode, tab.UnreadMode.ToString())) {
if (ImGui.BeginCombo(Language.Options_Tabs_UnreadMode, tab.UnreadMode.Name())) {
foreach (var mode in Enum.GetValues<UnreadMode>()) {
if (ImGui.Selectable(mode.Name(), tab.UnreadMode == mode)) {
tab.UnreadMode = mode;