Render tooltips with GUI.Label and retain their GUIContent so IMGUI translators can update the text and subsequent repaints measure the translated height.
* Fit the slider value box to its text instead of a fixed 50px
DrawRangeField drew the number box and the percent label with GUILayout.Width(50), so with a bigger font (4K, custom skin) the value was clipped ("-0.", "0.(") and "100%" wrapped to a second line. The width now fits the longest of the value, the minimum and the maximum in the current style (plus its margin), measured on a sample of zeros so the box does not jump while the slider is dragged, and is never narrower than the old 50.
* Share one width between all slider value boxes so they line up
Per review: every value box and percent label next to a slider now uses one global width, so they stand in one column. It only grows: a value that needs more room bumps it for all of them, up to 10 characters, and it never goes below the old 50. It is reset in ClearCache, when the window opens or closes, so a font or skin change is picked up on the next open.
* Add 23 translations of the window for XUnity.AutoTranslator
Each language is a copy of the ru folder with the same keys in the same order:
zh-CN, zh-TW, es, fr, pt, id, de, ja, tr, vi, tl, ko, it, sw, pl, uk, be, lt, lv, et, ms, nl, ro.
Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
* Shorter filter labels in tl, sw and lv so the header row fits the window
With the full labels the header row was wider than 650 px and the window grew past its default width.
Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
* Keep a translated Reset button inside the window
The right column reserved room for the English "Reset" only, so a longer translated label (Restablecer,
Réinitialiser, Сбросить...) pushed the button past the right edge and added a horizontal scrollbar. Three changes,
all no-ops for the untranslated window:
- the fixed-width value fields give up the difference between the translated and the English button width;
- flags fields count the spacing between toggles when wrapping, so a line no longer ends up wider than its column;
- the color field's text box may shrink below its text width.
Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
---------
Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
WindowSkin (null by default) is used to draw the window, its controls and tooltips; its window style draws the
window background instead of the built-in grey one. Plugin and category headers use the skin's custom styles named
ConfigurationManager.PluginHeader / ConfigurationManager.CategoryHeader if present. The default look is unchanged.
Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
IMGUI translators replace GUIContent.text at draw time, after GUILayout measured the control. A string argument
is a temporary GUIContent reset to the original text on every call, so translated buttons were clipped to the
width of the English word. A persistent GUIContent keeps the replaced text and is measured correctly from the
next frame on. The Russian strings ship as a plugin-specific XUnity.AutoTranslator file instead of code.
Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
This PR removes the ArgumenNullException present in ConfigSettingEntry.GetAcceptedValues(AcceptableValueBase values), enforcing the use of both MinValue and MaxValue for custom range classes (see issue's comments for a in-depth explanation)
Fixes#88