Store selected images in C++ backend and send to GUI. Add lua function to remove selected images from browser

This commit is contained in:
Ylva Selling
2021-05-24 11:49:31 +02:00
parent 3c2bbd134f
commit bf283dce0b
6 changed files with 68 additions and 12 deletions
+3 -2
View File
@@ -152,11 +152,12 @@ namespace openspace::wwtmessage {
return msg;
}
ghoul::Dictionary removeImageLayer(const std::string& id) {
ghoul::Dictionary removeImageLayer(ImageData& image) {
using namespace std::string_literals;
ghoul::Dictionary msg;
msg.setValue("event", "image_layer_remove"s);
msg.setValue("id", id);
msg.setValue("id", std::to_string(image.id));
image.id = ImageData::NO_ID;
return msg;
}