mirror of
https://github.com/edubart/otclient.git
synced 2025-10-16 20:43:26 +02:00
first script stuff (still ugly and under experiments)
This commit is contained in:
@@ -41,7 +41,7 @@ public:
|
||||
/// Fired when leaves the state
|
||||
virtual void onLeave() = 0;
|
||||
|
||||
/// Fired when user tryes to close the window
|
||||
/// Fired when user tries to close the window
|
||||
virtual void onClose() = 0;
|
||||
/// Fired for every user input event, this is called before processing UI input and if it returns false the input is not passed to the UI
|
||||
virtual bool onInputEvent(const InputEvent& event) = 0;
|
||||
|
@@ -279,7 +279,7 @@ const std::vector<Point>& Font::calculateGlyphsPositions(const std::string& text
|
||||
|
||||
if(textBoxSize) {
|
||||
textBoxSize->setWidth(maxLineWidth);
|
||||
textBoxSize->setHeight(virtualPos.y + m_glyphHeight + m_glyphSpacing.height());
|
||||
textBoxSize->setHeight(virtualPos.y + m_glyphHeight);
|
||||
}
|
||||
|
||||
return glyphsPositions;
|
||||
|
Reference in New Issue
Block a user