Worked out an initial stab at a GrabSource for drag-n-drop or just simple grabbing things in the UI.

This commit is contained in:
Zed A. Shaw 2025-06-07 15:29:18 -04:00
parent 94385b195d
commit 842aac3127
5 changed files with 47 additions and 32 deletions

View file

@ -1,4 +1,5 @@
#pragma once
#include "gui/guecstra.hpp"
#include "levelmanager.hpp"
#include <SFML/Graphics/RenderWindow.hpp>
#include <SFML/Graphics/Font.hpp>
@ -22,6 +23,6 @@ namespace gui {
bool mouse(float x, float y, bool hover);
std::optional<DinkyECS::Entity> select_slot(int slot);
void remove_slot(int slot_id);
shared_ptr<sf::Sprite> grab_sprite(int slot_id);
guecs::GrabSource& get_grabber(DinkyECS::Entity entity);
};
}