mirror of
https://github.com/edubart/otclient.git
synced 2025-12-20 15:37:11 +01:00
chat line wrapping
* rework UIWidget text wrapping * implement auto wrap * fixes in console
This commit is contained in:
@@ -1251,13 +1251,14 @@ void UIWidget::onStyleApply(const std::string& styleName, const OTMLNodePtr& sty
|
||||
void UIWidget::onGeometryChange(const Rect& oldRect, const Rect& newRect)
|
||||
{
|
||||
callLuaField("onGeometryChange", oldRect, newRect);
|
||||
|
||||
if(m_textWrap && oldRect.size() != newRect.size())
|
||||
updateText();
|
||||
}
|
||||
|
||||
void UIWidget::onLayoutUpdate()
|
||||
{
|
||||
callLuaField("onLayoutUpdate");
|
||||
if(UIWidgetPtr parent = getParent())
|
||||
parent->onLayoutUpdate();
|
||||
}
|
||||
|
||||
void UIWidget::onFocusChange(bool focused, Fw::FocusReason reason)
|
||||
|
||||
Reference in New Issue
Block a user