Sdk/ButtonWidget: Fix layout not triggering when updating text
This commit is contained in:
parent
e512302305
commit
061b358857
|
|
@ -9,5 +9,7 @@ namespace Ndk
|
||||||
inline void ButtonWidget::UpdateText(const Nz::AbstractTextDrawer& drawer)
|
inline void ButtonWidget::UpdateText(const Nz::AbstractTextDrawer& drawer)
|
||||||
{
|
{
|
||||||
m_textSprite->Update(drawer);
|
m_textSprite->Update(drawer);
|
||||||
|
|
||||||
|
Layout();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -61,7 +61,6 @@ namespace Ndk
|
||||||
m_gradientSprite->SetColor(Nz::Color(128, 128, 128));
|
m_gradientSprite->SetColor(Nz::Color(128, 128, 128));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void ButtonWidget::OnMouseExit()
|
void ButtonWidget::OnMouseExit()
|
||||||
{
|
{
|
||||||
m_gradientSprite->SetColor(Nz::Color(74, 74, 74));
|
m_gradientSprite->SetColor(Nz::Color(74, 74, 74));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue