Use the new lel-geucs update process.
This commit is contained in:
parent
8f65e882ac
commit
cd475f8e02
14 changed files with 66 additions and 176 deletions
|
|
@ -174,7 +174,7 @@ namespace animator {
|
|||
while(const auto ev = $window.pollEvent()) {
|
||||
using enum game::Event;
|
||||
using KEY = sf::Keyboard::Scan;
|
||||
auto gui_ev = $router.process_event(ev);
|
||||
auto [gui_ev, mouse_mods] = $router.process_event(ev);
|
||||
auto mouse_pos = $window.mapPixelToCoords($router.position);
|
||||
|
||||
switch(gui_ev) {
|
||||
|
|
@ -227,6 +227,7 @@ namespace animator {
|
|||
}
|
||||
|
||||
auto viewer = $ui.entity("viewer");
|
||||
|
||||
// BUG: this is some jank bullshit but it works
|
||||
$ui.set<guecs::Sprite>(viewer, {sprite_name, 0, false});
|
||||
$ui.init();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue