GUI for combat now works better and I can create sprites for things if I want.
This commit is contained in:
parent
46de98e6f4
commit
49a71e257e
10 changed files with 55 additions and 18 deletions
|
@ -2,10 +2,14 @@
|
|||
#include <fmt/core.h>
|
||||
#include "constants.hpp"
|
||||
#include "ecs_gui.hpp"
|
||||
#include "texture.hpp"
|
||||
|
||||
|
||||
TEST_CASE("prototype one gui", "[ecs-gui]") {
|
||||
GUECS gui;
|
||||
TexturePack textures;
|
||||
textures.load_sprites();
|
||||
|
||||
gui.position(0, 0, 1000, 500);
|
||||
gui.layout("[test1|test2|test3][test4|_|test5]");
|
||||
|
||||
|
@ -18,7 +22,7 @@ TEST_CASE("prototype one gui", "[ecs-gui]") {
|
|||
world.set<Textual>(button, {name});
|
||||
}
|
||||
|
||||
gui.init();
|
||||
gui.init(textures);
|
||||
|
||||
// at this point it's mostly ready but I'd need to render it to a window real quick
|
||||
sf::RenderWindow window;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue