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:
parent
3ebf99acfa
commit
ed089f38f7
8 changed files with 54 additions and 2 deletions
|
@ -96,6 +96,10 @@ void TTFText::updateAlign()
|
|||
}
|
||||
}
|
||||
|
||||
int TTFText::getNumLines()
|
||||
{
|
||||
return (int)text.size();
|
||||
}
|
||||
|
||||
float TTFText::getHeight()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue