Fix up build.
This commit is contained in:
parent
f26ee2ebc4
commit
b5f21900eb
16 changed files with 16 additions and 30 deletions
|
@ -220,7 +220,7 @@ void Button::updateLabel(const PaintEvent* event)
|
|||
{
|
||||
if (!mTextNode)
|
||||
{
|
||||
mTextNode = TextNode::Create(mLabel, Transform({ mSize.mWidth /2.0, mSize.mHeight / 2.0 }));
|
||||
mTextNode = TextNode::Create(mLabel, Transform());
|
||||
mTextNode->setName(mName + "_TextNode");
|
||||
mTextNode->setContent(mLabel);
|
||||
mTextNode->setWidth(mSize.mWidth);
|
||||
|
@ -255,7 +255,7 @@ void Button::updateIcon(const PaintEvent* event)
|
|||
{
|
||||
if (!mIconNode && mIcon != Resource::Icon::Svg::NONE)
|
||||
{
|
||||
mIconNode = std::make_unique<IconNode>(Transform());
|
||||
mIconNode = std::make_unique<IconNode>(Transform(Point(15.0, 8.0), 0.5, 0.5));
|
||||
mIconNode->setName(mName + "_IconNode");
|
||||
mIconNode->setSvgContent(MediaResourceManager::getSvgIconNode(mIcon));
|
||||
mRootNode->addChild(mIconNode.get());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue