Drag now show the icon while you're dragging, so now need to work out all of the edge cases for each action.

This commit is contained in:
Zed A. Shaw 2025-06-17 11:50:03 -04:00
parent ca74b817e5
commit 029a0f86ae
3 changed files with 19 additions and 1 deletions

View file

@ -18,6 +18,7 @@ namespace gui {
class DNDLoot : public DeadSimpleFSM<DNDState, Event> {
public:
std::optional<guecs::Entity> $grab_source = std::nullopt;
std::shared_ptr<sf::Sprite> $grab_sprite = nullptr;
StatusUI& $status_ui;
LootUI& $loot_ui;
sf::RenderWindow& $window;
@ -37,6 +38,7 @@ namespace gui {
void ITEM_PICKUP(Event ev, std::any data);
void handle_mouse(Event ev, guecs::UI& gui);
void mouse_action(bool hover);
void render();
sf::Vector2f mouse_position();
};
}