Browse Source

anime => image change

Odilitime 5 years ago
parent
commit
fb026030b8
  1. 6
      src/graphics/components/ComponentBuilder.cpp

6
src/graphics/components/ComponentBuilder.cpp

@ -195,7 +195,7 @@ std::shared_ptr<Component> ComponentBuilder::build(const std::shared_ptr<Node> n @@ -195,7 +195,7 @@ std::shared_ptr<Component> ComponentBuilder::build(const std::shared_ptr<Node> n
// these aren't used in any elements yet
#include "DocumentComponent.h"
#include "TabbedComponent.h"
#include "AnimeComponent.h"
#include "ImageComponent.h"
std::string typeOfComponent(const std::shared_ptr<Component> &component) {
return typeOfComponent(component.get());
@ -212,8 +212,8 @@ std::string typeOfComponent(Component *component) { @@ -212,8 +212,8 @@ std::string typeOfComponent(Component *component) {
if (inputComponent) return "input";
ButtonComponent *buttonComponent = dynamic_cast<ButtonComponent*>(component);
if (buttonComponent) return "button";
AnimeComponent *animeComponent = dynamic_cast<AnimeComponent*>(component);
if (animeComponent) return "anime";
ImageComponent *imageComponent = dynamic_cast<ImageComponent*>(component);
if (imageComponent) return "image";
BoxComponent *boxComponent = dynamic_cast<BoxComponent*>(component);
if (boxComponent) return "box";
return "";

Loading…
Cancel
Save