1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2025-10-06 06:10:45 +00:00

Add two more font/text related Lua functions, and some more:

+ entity_getBoneByInternalId()
+ entity_getNumBones()
+ text_getLineHeight()
+ text_getNumLines()
This commit is contained in:
fgenesis 2015-11-16 03:59:47 +01:00
commit ed089f38f7
8 changed files with 54 additions and 2 deletions

View file

@ -96,6 +96,10 @@ void TTFText::updateAlign()
}
}
int TTFText::getNumLines()
{
return (int)text.size();
}
float TTFText::getHeight()
{