mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 10:17:22 +01:00
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:
parent
efaff769b5
commit
d61a35b81f
20 changed files with 341 additions and 283 deletions
|
|
@ -301,7 +301,7 @@ public ref struct ImU8String
|
|||
{
|
||||
var startingPos = this.Length;
|
||||
this.AppendFormatted(value, format);
|
||||
FixAlignment(startingPos, alignment);
|
||||
this.FixAlignment(startingPos, alignment);
|
||||
}
|
||||
|
||||
public void AppendFormatted(ReadOnlySpan<char> value) => this.AppendFormatted(value, null);
|
||||
|
|
@ -322,7 +322,7 @@ public ref struct ImU8String
|
|||
{
|
||||
var startingPos = this.Length;
|
||||
this.AppendFormatted(value, format);
|
||||
FixAlignment(startingPos, alignment);
|
||||
this.FixAlignment(startingPos, alignment);
|
||||
}
|
||||
|
||||
public void AppendFormatted(object? value) => this.AppendFormatted<object>(value!);
|
||||
|
|
@ -358,13 +358,13 @@ public ref struct ImU8String
|
|||
{
|
||||
var startingPos = this.Length;
|
||||
this.AppendFormatted(value, format);
|
||||
FixAlignment(startingPos, alignment);
|
||||
this.FixAlignment(startingPos, alignment);
|
||||
}
|
||||
|
||||
public void Reserve(int length)
|
||||
{
|
||||
if (length >= AllocFreeBufferSize)
|
||||
IncreaseBuffer(out _, length);
|
||||
this.IncreaseBuffer(out _, length);
|
||||
}
|
||||
|
||||
private void FixAlignment(int startingPos, int alignment)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue