add message when failed to load thumbs from cloud

This commit is contained in:
2017-11-14 09:31:12 +00:00
parent 0d3431a9de
commit 7564d11570
6 changed files with 76 additions and 4 deletions

View File

@@ -173,6 +173,16 @@ public:
return static_cast<T*>(found);
return nullptr;
}
template<class T> T* add_child()
{
auto* n = new T;
n->init();
n->create();
n->loaded();
add_child(n);
return n;
}
virtual kEventResult on_event(Event* e);
virtual kEventResult handle_event(Event* e);
virtual void handle_resize(glm::vec2 old_size, glm::vec2 new_size);;
@@ -180,6 +190,9 @@ public:
virtual void init();
virtual void loaded();
const Node* init_template(const char* id);
void async_start();
void async_update();
void async_end();
void add_child(Node* n);
void add_child(Node* n, int index);
void add_child(std::shared_ptr<Node> n);