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
..
containers Fixes PS::StaticVector insert and adds more tests 2025-04-20 17:13:40 +02:00
GameSetup Remove UNUSED 2025-06-26 17:25:05 +02:00
scripting Add deprecation warning to GetTextSize API 2025-06-26 17:11:24 -05:00
tests Fix mods configuration stacking and mergin per mod 2025-06-16 11:03:09 -05:00
XMB Adapt 0 A.D. to SpiderMonkey ESR 102 2024-12-09 10:43:35 +01:00
XML Remove UNUSED 2025-06-26 17:25:05 +02:00
algorithm.h Make rallypoints moddable. 2025-06-15 07:43:08 +02:00
ArchiveBuilder.cpp Remove the name of some unused arguments 2025-06-18 12:49:59 +02:00
ArchiveBuilder.h Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
CacheLoader.cpp Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
CacheLoader.h Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
CConsole.cpp Align font height, capHeight to FreeType metrics 2025-06-11 08:10:18 -05:00
CConsole.h Align font height, capHeight to FreeType metrics 2025-06-11 08:10:18 -05:00
CLogger.cpp Align font height, capHeight to FreeType metrics 2025-06-11 08:10:18 -05:00
CLogger.h Converge FileLogger with the other logger replacements 2024-07-06 14:48:44 +00:00
Compress.cpp Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
Compress.h Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
ConfigDB.cpp Fix mods configuration stacking and mergin per mod 2025-06-16 11:03:09 -05:00
ConfigDB.h Use std::string_view in ConfigDB 2025-04-17 12:35:40 +02:00
CStr.cpp Update trac links with gitea links 2024-12-10 11:29:48 +01:00
CStr.h Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
CStrForward.h Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
CStrIntern.cpp Explicitly default copy ctors for some classes 2024-09-28 21:55:30 +02:00
CStrIntern.h Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
CStrInternStatic.h Adds GPU skinning support via compute shaders. 2024-12-09 22:47:17 +01:00
DllLoader.cpp Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
DllLoader.h Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
Errors.cpp Don't leak all GUI objects on name ambiguity following 5cc814759f and remove ERROR_GROUP GUI. 2019-10-11 16:20:50 +00:00
Errors.h Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
FileIo.cpp Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
FileIo.h Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
Filesystem.cpp Test whether some files are reloaded more directly 2025-06-18 14:42:13 +02:00
Filesystem.h Cleanup use of boost::filesystem 2025-06-17 21:56:04 +02:00
Future.h Use std::variant in Future 2025-02-10 18:11:02 +01:00
FutureForward.h Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
Game.cpp Stop running shrinking gcs & simplify GC logic. 2025-04-22 17:03:29 +02:00
Game.h Prevent players to reveal the map from GUI script 2024-12-27 19:01:53 +01:00
Globals.cpp Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
Globals.h Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
GUID.cpp Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
GUID.h Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
Hashing.cpp Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
Hashing.h Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
Hotkey.cpp Reduce allocations for GUI and Hotkeys. 2025-04-24 15:11:22 +02:00
Hotkey.h Reduce allocations for GUI and Hotkeys. 2025-04-24 15:11:22 +02:00
Joystick.cpp Fix a bunch of spelling mistakes 2025-04-11 06:24:32 +02:00
Joystick.h Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
KeyName.cpp Reduce allocations for GUI and Hotkeys. 2025-04-24 15:11:22 +02:00
KeyName.h Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
Loader.cpp Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
Loader.h Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
Mod.cpp Remove internationalization of log messages 2024-08-05 15:27:12 +00:00
Mod.h Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
ModInstaller.cpp Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
ModInstaller.h Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
ModIo.cpp Remove UNUSED 2025-06-26 17:25:05 +02:00
ModIo.h Fixes broken PCH after wraitii commits (4f972bc623, 0f60bf3a97) and Itms (833c9f108c). 2021-05-15 14:50:24 +00:00
Profile.cpp Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
Profile.h Removes GL code from the common GPU profiler. 2025-04-16 22:38:34 +02:00
Profiler2.cpp Remove UNUSED 2025-06-26 17:25:05 +02:00
Profiler2.h Removes GL code from the common GPU profiler. 2025-04-16 22:38:34 +02:00
Profiler2GPU.cpp Removes GL code from the common GPU profiler. 2025-04-16 22:38:34 +02:00
Profiler2GPU.h Removes GL code from the common GPU profiler. 2025-04-16 22:38:34 +02:00
ProfileViewer.cpp Align font height, capHeight to FreeType metrics 2025-06-11 08:10:18 -05:00
ProfileViewer.h Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
Pyrogenesis.cpp Add a RC file to add metadata to the pyrogenesis executable 2024-08-28 23:37:36 +02:00
Pyrogenesis.h Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
Replay.cpp Stop running shrinking gcs & simplify GC logic. 2025-04-22 17:03:29 +02:00
Replay.h Remove UNUSED 2025-06-26 17:25:05 +02:00
SavedGame.cpp Update some includes for iwyu part 1 2025-06-20 09:01:19 +02:00
SavedGame.h Multiplayer saved games 2024-12-19 21:36:51 +01:00
Singleton.h Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
TaskManager.cpp Make the TaskManager a automatic livetime object 2024-11-17 18:03:49 +01:00
TaskManager.h Make the TaskManager a automatic livetime object 2024-11-17 18:03:49 +01:00
TemplateLoader.cpp Remove the name of some unused arguments 2025-06-18 12:49:59 +02:00
TemplateLoader.h Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
Threading.cpp Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
Threading.h Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
ThreadUtil.h Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
TouchInput.cpp Return by value from CCamera::BuildCameraRay 2024-11-17 20:27:58 +01:00
TouchInput.h Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
UniDoubler.h Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
UserReport.cpp Get config values without using return parameters 2025-04-09 12:51:21 +02:00
UserReport.h Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
Util.cpp Remove ignore_result 2025-06-19 19:05:56 +02:00
Util.h Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
VideoMode.cpp Get config values without using return parameters 2025-04-09 12:51:21 +02:00
VideoMode.h Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
VisualReplay.cpp Replace usage of OSString().c_str() by OSString 2024-10-28 16:35:49 +01:00
VisualReplay.h Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
World.cpp Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
World.h Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00