Update ScrollAreaWidget.cpp

This commit is contained in:
Lynix 2019-07-12 21:17:25 +02:00
parent f110fa1bdb
commit 161dc5d6c2
1 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ namespace Ndk
m_scrollbarBackgroundSprite = Nz::Sprite::New();
m_scrollbarBackgroundSprite->SetColor(Nz::Color(62, 62, 62));
m_scrollbarBackgroundSprite->SetMaterial("Basic2D");
m_scrollbarBackgroundSprite->SetMaterial(Nz::Material::New("Basic2D"));
m_scrollbarBackgroundEntity = CreateEntity();
m_scrollbarBackgroundEntity->AddComponent<NodeComponent>().SetParent(this);
@ -34,7 +34,7 @@ namespace Ndk
m_scrollbarSprite = Nz::Sprite::New();
m_scrollbarSprite->SetColor(Nz::Color(104, 104, 104));
m_scrollbarSprite->SetMaterial("Basic2D");
m_scrollbarSprite->SetMaterial(Nz::Material::New("Basic2D"));
m_scrollbarEntity = CreateEntity();
m_scrollbarEntity->AddComponent<NodeComponent>().SetParent(this);