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:
parent
94385b195d
commit
842aac3127
5 changed files with 47 additions and 32 deletions
|
@ -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);
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue