Update Settings Window (#2400)

* Load new localization before firing change event

* Update texts in SettingsWindow when locale changes

* Localize settings search

* Update settings search input

- Disable when Credits are scrolling,
so Search Results aren't shown instead
- Select all on single click, as usual for a search bar

* Remove unused IsVisible property

* Fix General tab being unselected on language change

* Fix search results throwing, oops

* Missed using LocRef in EnumSettingsEntry

* Set CultureInfo before loading locs

* Change it to LazyLoc instead

So CheapLoc can export localizations...
This commit is contained in:
Haselnussbomber 2025-09-29 18:08:25 +02:00 committed by GitHub
parent efaff769b5
commit d61a35b81f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
20 changed files with 341 additions and 283 deletions

View file

@ -1,19 +1,19 @@
using System.Diagnostics.CodeAnalysis;
using System.Diagnostics.CodeAnalysis;
using Dalamud.Interface.Utility;
namespace Dalamud.Interface.Internal.Windows.Settings;
[SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1600:Elements should be documented", Justification = "Internals")]
public abstract class SettingsTab : IDisposable
internal abstract class SettingsTab : IDisposable
{
public abstract SettingsEntry[] Entries { get; }
public abstract string Title { get; }
public bool IsOpen { get; set; } = false;
public abstract SettingsOpenKind Kind { get; }
public virtual bool IsVisible { get; } = true;
public bool IsOpen { get; set; } = false;
public virtual void OnOpen()
{