mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-10-07 14:51:08 +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
|
@ -53,6 +53,11 @@ float DebugFont::getHeight()
|
|||
return fontDrawSize * lines.size() * 1.5f; // vspc in render()
|
||||
}
|
||||
|
||||
float DebugFont::getLineHeight()
|
||||
{
|
||||
return fontDrawSize * 1.5f; // vspc in render()
|
||||
}
|
||||
|
||||
float DebugFont::getStringWidth(const std::string& text)
|
||||
{
|
||||
int maxchars = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue