mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-16 21:34:08 -07:00
Usage:
let size = Engine.GetGUIObjectByName({gui_object_name}).GetTextSize()
Returns a JS object containing the height and width of the primary text
field within
the object, taking into account new lines, text wrapping, and font
changes.
Unless the object doesn't contain text, in which case the method will
return undefined.
Commented on by: vladislavbelov
Additional code by: elexis
Reviewed By: wraitii
Differential Revision: https://code.wildfiregames.com/D844
This was SVN commit r22134.
|
||
|---|---|---|
| .. | ||
| GuiScriptConversions.cpp | ||
| JSInterface_GUIManager.cpp | ||
| JSInterface_GUIManager.h | ||
| JSInterface_GUITypes.cpp | ||
| JSInterface_GUITypes.h | ||
| JSInterface_IGUIObject.cpp | ||
| JSInterface_IGUIObject.h | ||
| ScriptFunctions.cpp | ||
| ScriptFunctions.h | ||