Files
0ad/source/ps
trompetin17 e845da025a Add deprecation warning to GetTextSize API
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.
2025-06-26 17:11:24 -05:00
..
2025-06-26 17:25:05 +02:00
2025-06-26 17:25:05 +02:00
2025-06-15 07:43:08 +02:00
2025-04-17 12:35:40 +02:00
2025-06-17 21:56:04 +02:00
2025-02-10 18:11:02 +01:00
2025-04-11 06:24:32 +02:00
2025-06-26 17:25:05 +02:00
2025-06-26 17:25:05 +02:00
2025-06-26 17:25:05 +02:00
2025-06-19 19:05:56 +02:00