Better meaning API on both sides for the drag-n-drop operations, but I _swear_ there's a way to do this in the GrabSource/DropTarget instead.
This commit is contained in:
parent
47c219b86e
commit
3e0adf0c22
6 changed files with 26 additions and 23 deletions
|
@ -5,6 +5,7 @@
|
|||
#include "textures.hpp"
|
||||
#include <guecs/ui.hpp>
|
||||
#include "gui/ritual_ui.hpp"
|
||||
#include "gui/guecstra.hpp"
|
||||
|
||||
namespace gui {
|
||||
class StatusUI {
|
||||
|
@ -22,7 +23,8 @@ namespace gui {
|
|||
void init();
|
||||
void render(sf::RenderWindow &window);
|
||||
void update();
|
||||
void select_slot(DinkyECS::Entity entity);
|
||||
void start_drop(DinkyECS::Entity entity);
|
||||
bool place_slot(DinkyECS::Entity gui_id);
|
||||
guecs::DropTarget& get_drop_target(DinkyECS::Entity gui_id);
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue