Changeset 7971 for code/branches/kicklib/data/gui
- Timestamp:
- Feb 26, 2011, 8:13:15 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/kicklib/data/gui/scripts/GUITools.lua
r7965 r7971 54 54 55 55 local height = 0 56 if orxonox.GUIManager:isCEGUIVersion7() then 57 height = math.floor(CEGUI.PropertyHelper.stringToFloat(window:getProperty("VertExtent")) + frameHeight) + 1 58 else 56 if ORXONOX_OLD_CEGUI then 59 57 local lines = window:getFont():getFormattedLineCount(window:getText(), formattedArea, CEGUI.WordWrapLeftAligned) 60 58 height = lines * window:getFont():getLineSpacing() + frameHeight 59 else 60 height = math.floor(CEGUI.PropertyHelper:stringToFloat(window:getProperty("VertExtent")) + frameHeight) + 1 61 61 end 62 62 return height
Note: See TracChangeset
for help on using the changeset viewer.