1
0
forked from 0ad/0ad
0ad/binaries
s0600204 9c5062147a Add a GetTextSize() method to GUI objects
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.
2019-03-18 22:15:40 +00:00
..
data Add a GetTextSize() method to GUI objects 2019-03-18 22:15:40 +00:00
logs Updates logs readme with link to Trac, to replace confusing outdated info 2012-08-02 19:41:50 +00:00
system Add autostart conquest default description to readme.txt and add endless support for autostart in both readme.txt and GameSetup.cpp 2019-03-16 14:20:28 +00:00