0ad/binaries/data/mods/mod/gui
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
..
colormixer Refactor GUI object resizing JS code passages 2025-06-17 12:57:37 -05:00
common Fix autofixable eslint warnings for eqeqeq 2025-06-26 11:03:19 +02:00
incompatible_mods Return a promise from most page-inits 2025-03-09 10:39:20 +01:00
modio Refactor GUI object resizing JS code passages 2025-06-17 12:57:37 -05:00
modmod Fix autofixable eslint warnings for eqeqeq 2025-06-26 11:03:19 +02:00
msgbox Fix eslint rule 'prefer-const' in modmod 2025-05-06 13:49:13 +02:00
pregame Hide the cancel button in the modmod of the mod mod and the quit button when called from the public mod. 2017-12-12 16:06:52 +00:00
termsdialog Apply correct use of TextSize APIs in GUI 2025-06-26 17:11:24 -05:00
timedconfirmation Return a promise from most page-inits 2025-03-09 10:39:20 +01:00
gui.rng Enable modules in the GUI 2025-06-26 10:50:21 +02:00
gui_page.rng Delete "Compact RelaxNG" / .rnc files 2021-04-14 07:39:36 +00:00
page_atlas.xml Move some engine required files to the mod mod. 2023-05-06 17:14:41 +00:00
page_colormixer.xml Add color mixer 2022-11-01 11:46:14 +00:00
page_incompatible_mods.xml Do not allow to start pyrogenesis with incompatible mods 2021-05-09 13:53:25 +00:00
page_loading.xml Move some engine required files to the mod mod. 2023-05-06 17:14:41 +00:00
page_modhelp.xml mod.io support. 2018-04-22 18:14:45 +00:00
page_modio.xml mod.io support. 2018-04-22 18:14:45 +00:00
page_modmod.xml Fix a lot of whitespace in gui/. 2016-08-27 15:33:22 +00:00
page_msgbox.xml Move some utility functions from the public mod to the mod mod in preparation for upcoming commit. 2018-04-22 12:03:51 +00:00
page_pregame.xml Add mod selection mod. 2014-08-25 16:02:54 +00:00
page_termsdialog.xml Refactor lobby terms and conditions UI from 80dbd1f2a3 / D1568 to a new terms dialog UI and reuse that for mod.io and the UserReporter, refs #5257, #5218. 2018-09-14 15:14:48 +00:00
page_timedconfirmation.xml There have been quite a bit of number of questions how to change scale of the gui, because this option is hidden from the user. 2021-10-17 10:58:51 +00:00