Taking things from the LootUI to the StatusUI works way better now and there's a DropTarget to match the GrabSource.

This commit is contained in:
Zed A. Shaw 2025-06-08 00:37:30 -04:00
parent 842aac3127
commit 461ad03d27
8 changed files with 93 additions and 70 deletions

View file

@ -19,4 +19,18 @@ namespace guecs {
target.send<Events::GUI>(event, ent, data);
}};
}
void GrabSource::grab(sf::RenderWindow& window) {
window.setMouseCursorVisible(false);
sprite->setOrigin({128, 128});
}
void GrabSource::move(sf::Vector2i position) {
sprite->setPosition({
float(position.x),
float(position.y)
});
}
}