0ad/binaries/data/mods/mod
trompetin17 b42a2b9adb
Apply correct use of TextSize APIs in GUI
Updates GUI code to apply the correct usage of `guiObject.getTextSize()`
and `guiObject.GetPreferedTextSize()`.

- `guiObject.getPreferedTextSize()` is now used when the goal is to compute the
  bounding box of a text string to dynamically resize or layout a GUI
  object accordingly. It simulates how the text would be rendered,
  accounting for markup and layout rules.

- `guiObject.getTextSize()` remains in use when text is being measured
  within a fixed-size GUI element (e.g., a button or label). It respects
  internal constraints like buffer zone and maxWidth, and is typically
  used to align other elements based on its visual appearance.

These changes ensure more accurate text sizing and consistent layout
behavior across GUI components.
2025-06-26 17:11:24 -05:00
..
art Allow actors to override the entity's anchor type 2025-06-10 23:01:09 +02:00
audio Delete "Compact RelaxNG" / .rnc files 2021-04-14 07:39:36 +00:00
autostart Fix non-visual autostart, as well as client/host autostart. 2022-05-15 06:34:17 +00:00
fonts Fix trailing whitespace and add pre-commit hook 2025-06-15 20:08:48 +02:00
globalscripts Update sprintf.js library from 1.0.2 to 1.1.2. 2019-11-14 13:00:35 +00:00
gui Apply correct use of TextSize APIs in GUI 2025-06-26 17:11:24 -05:00
hwdetect Fix eslint rule 'spaced-comment' 2025-05-17 12:08:47 +02:00
l10n Fix references in portable object templates 2024-07-25 08:53:04 +00:00
maps Move some engine required files to the mod mod. 2023-05-06 17:14:41 +00:00
shaders Fix trailing whitespace and add pre-commit hook 2025-06-15 20:08:48 +02:00
simulation/data Mod Interface: Enable setting territory visibility 2024-12-30 22:23:05 +01:00