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:
parent
ca74b817e5
commit
029a0f86ae
3 changed files with 19 additions and 1 deletions
|
@ -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();
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue