mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-04-28 06:49:32 -05:00
Store selected images in C++ backend and send to GUI. Add lua function to remove selected images from browser
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user