Back with clickable button.
This commit is contained in:
parent
3e53bd9e00
commit
70891ce7b4
20 changed files with 107 additions and 50 deletions
|
@ -10,6 +10,8 @@
|
|||
|
||||
#include "Color.h"
|
||||
|
||||
#include <iostream>
|
||||
|
||||
TextNode::TextNode(const std::string& content, const DiscretePoint& loc)
|
||||
: MaterialNode(loc)
|
||||
{
|
||||
|
@ -50,9 +52,10 @@ void TextNode::update(FontsManager* fontsManager)
|
|||
if (!mSceneItem)
|
||||
{
|
||||
mSceneItem = std::make_unique<SceneText>();
|
||||
mSceneItem->setName(mName + "_SceneText");
|
||||
}
|
||||
|
||||
if (!mContentIsDirty)
|
||||
if (mContentIsDirty)
|
||||
{
|
||||
dynamic_cast<SceneText*>(mSceneItem.get())->setContent(mContent);
|
||||
mContentIsDirty = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue