Sample editor back working.
This commit is contained in:
parent
722bda2801
commit
7ad237edc1
10 changed files with 59 additions and 36 deletions
|
@ -78,6 +78,11 @@ void Button::updateLabel(const PaintEvent* event)
|
|||
mRootNode->addChild(mTextNode.get());
|
||||
}
|
||||
|
||||
if (mTransformDirty)
|
||||
{
|
||||
mTextNode->setLocation(middle);
|
||||
}
|
||||
|
||||
if (mMaterialDirty)
|
||||
{
|
||||
mTextNode->setFillColor(mBackgroundColor);
|
||||
|
@ -88,4 +93,9 @@ void Button::updateLabel(const PaintEvent* event)
|
|||
mTextNode->setContent(mLabel);
|
||||
mContentDirty = false;
|
||||
}
|
||||
|
||||
if (mVisibilityDirty)
|
||||
{
|
||||
mTextNode->setIsVisible(mVisible);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue