mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-08-15 14:43:32 -07:00
Adds a runtime warning to `Engine.GetTextSize` indicating that the API is deprecated and will be removed in a future version. This API does not simulate GUI rendering accurately, as it treats markup tags like [color], [font], or [icon] as visible characters. This leads to incorrect size measurements in modern GUI layouts. New recommended alternatives: - Use `Engine.GetGUITextSize(...)` for accurate measurement of raw text blocks, fully simulating GUI rendering. - Use `guiObject.getTextSize()` when working within a specific GUI object, as it accounts for maxWidth, padding (bufferZone), and object constraints. A warning is now emitted at runtime to guide developers toward these updated APIs. |
||
|---|---|---|
| .. | ||
| collada | ||
| graphics | ||
| gui | ||
| i18n | ||
| lib | ||
| lobby | ||
| maths | ||
| mocks | ||
| network | ||
| pch | ||
| ps | ||
| renderer | ||
| rlinterface | ||
| scriptinterface | ||
| simulation2 | ||
| soundmanager | ||
| third_party | ||
| tools | ||
| main.cpp | ||
| test_setup.cpp | ||