The goal of this change is to let plugins register their own self-tests.
We do this through the `ISelfTestRegistry` interface. For a plugin it
would look like this:
```csharp
[PluginService]
public ISelfTestRegistry SelfTestRegistry
// Somewhere that gets called by your plugin
SelfTestRegistry.RegisterTestSteps([
new MySelfTestStep(),
new MyOtherSelfTestStep()
])
```
Where `MySelfTest` and `MyOtherSelfTest` are instances of
the existing `ISelfTestStep` interface.
The biggest changes are to `SelfTestWindow` and the introduction of
`SelfTestWithResults`. I wanted to make sure test state wasn't lost when
changing the dropdown state and I was finding it a bit annoying to work
with the Dictionary now that we can't just rely on the index of the
item.
To fix this I moved all the "test run" state into `SelfTestWithResults`,
most of the changes to `SelfTestWindow` are derived from that, other
then the addition of the combo box.
The documentation for this service is a bit sparse, but I wanted to put
it up for review first before I invest a bunch of time making nice
documentation.
I'm keen to hear if we think this is useful or if any changes are
needed.
* 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...
* Add MapChanged event to ClientState
* Add PublicInstanceId with event to ClientState
* Set eventhandlers to null
* Rework events and add ZoneInit event
* Handle multiple col- entries in Completion.LookupTable
* Pass correct length to DecodeImpl
* Skip to payload end instead of reading remaining bytes
* Use SeStringEvaluator in AutoTranslatePayload
* Rework range check
- Loops through all entries
- Bumped amount of cols up to 8 for future proofing
- Use Ordinal search
- Actually parse ranges and check if the RowId is allowed
* Only check range if it has ranges
* Fix Group being off by 1
* Add AutoTranslatePayload re-encode test
* Remove redundant checks
* Add some AutoTranslatePayload.Text self-tests
* Remove AutoTranslatePayload text cache
- Lumina lookups aren't that taxing anymore
- Cache wasn't invalidated when the language override changes