update Xcode and android projects

This commit is contained in:
2017-11-06 00:03:57 +00:00
parent 11c26555a4
commit 05c5bd1bdb
5 changed files with 43 additions and 31 deletions

View File

@@ -37,36 +37,6 @@ void NodeDialogCloud::init_controls()
};
container = find<Node>("files-list");
std::thread(&NodeDialogCloud::load_thumbs_thread, this).detach();
/*
auto names = Asset::list_files(data_path, false, ".*\\.pano");
for (const auto& n : names)
{
auto node = new NodeDialogCloudItem;
node->m_manager = m_manager;
node->init();
node->m_text->set_text(n.c_str());
node->m_path = data_path + "/" + n;
node->m_file_name = n;
node->on_selected = [&](NodeDialogCloudItem* target) {
if (target == current)
return;
selected_path = target->m_path;
selected_file = target->m_file_name;
selected_name = selected_file.substr(0, selected_file.length() - 5);
if (current)
current->m_selected = false;
current = target;
};
// load thumb
ui::Image thumb = ui::Canvas::I->thumbnail_read(node->m_path);
auto image_tex = node->find<NodeImageTexture>("thumb-tex");
image_tex->tex.destroy();
image_tex->tex.create(thumb);
container->add_child(node);
}
*/
}
void NodeDialogCloud::loaded()
@@ -131,6 +101,7 @@ void NodeDialogCloud::load_thumbs_thread()
image_tex->tex.destroy();
image_tex->tex.create(thumb);
container->add_child(node);
App::I.async_update();
App::I.async_end();
// node->on_selected = [&](NodeDialogCloudItem* target) {