Changed className TextButtonInstance to TextButton to match naming convention
This commit is contained in:
@@ -39,7 +39,7 @@ TextButtonInstance::TextButtonInstance(void)
|
|||||||
floatRight = false;
|
floatRight = false;
|
||||||
floatCenter = false;
|
floatCenter = false;
|
||||||
visible = true;
|
visible = true;
|
||||||
className = "TextButtonInstance";
|
className = "TextButton";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
2
main.cpp
2
main.cpp
@@ -466,7 +466,7 @@ void drawButtons(RenderDevice* rd)
|
|||||||
for(size_t i = 0; i < instances_2D.size(); i++)
|
for(size_t i = 0; i < instances_2D.size(); i++)
|
||||||
{
|
{
|
||||||
Instance* instance = instances_2D.at(i);
|
Instance* instance = instances_2D.at(i);
|
||||||
if(instance->className == "TextButtonInstance" && instance->parent == dataModel)
|
if(instance->className == "TextButton" && instance->parent == dataModel)
|
||||||
{
|
{
|
||||||
TextButtonInstance* tbi = (TextButtonInstance*)instance;
|
TextButtonInstance* tbi = (TextButtonInstance*)instance;
|
||||||
Vector3 point1;
|
Vector3 point1;
|
||||||
|
|||||||
Reference in New Issue
Block a user