mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-10-06 14:22:33 +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
|
@ -13,6 +13,8 @@ public:
|
|||
virtual void setWidth(float width) = 0;
|
||||
virtual void setFontSize(float sz) = 0;
|
||||
virtual void setAlign(Align a) = 0;
|
||||
virtual float getLineHeight() = 0;
|
||||
virtual int getNumLines() = 0;
|
||||
virtual float getHeight() = 0; // total height
|
||||
virtual float getStringWidth(const std::string& text) = 0; // width of string when not auto-wrapped
|
||||
virtual float getActualWidth() = 0; // width of text after wrapping
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue