Render tooltips with GUI.Label and retain their GUIContent so IMGUI translators can update the text and subsequent repaints measure the translated height.
* 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]>