From 067a744cdaaa05f2c2a6b41df868ba493fee00e7 Mon Sep 17 00:00:00 2001 From: andreja6 Date: Thu, 19 Apr 2018 17:19:02 -0700 Subject: [PATCH] Changed className TextButtonInstance to TextButton to match naming convention --- TextButtonInstance.cpp | 2 +- main.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/TextButtonInstance.cpp b/TextButtonInstance.cpp index 033429a..e9d32ec 100644 --- a/TextButtonInstance.cpp +++ b/TextButtonInstance.cpp @@ -39,7 +39,7 @@ TextButtonInstance::TextButtonInstance(void) floatRight = false; floatCenter = false; visible = true; - className = "TextButtonInstance"; + className = "TextButton"; } diff --git a/main.cpp b/main.cpp index 44d49da..84448e5 100644 --- a/main.cpp +++ b/main.cpp @@ -466,7 +466,7 @@ void drawButtons(RenderDevice* rd) for(size_t i = 0; i < instances_2D.size(); 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; Vector3 point1;