Separate out the major UIs to get ready for their development, and enable debug button.
This commit is contained in:
parent
7eec67ffc8
commit
9b3b81683a
11 changed files with 154 additions and 116 deletions
18
combat_ui.hpp
Normal file
18
combat_ui.hpp
Normal file
|
@ -0,0 +1,18 @@
|
|||
#pragma once
|
||||
#include "panel.hpp"
|
||||
#include "levelmanager.hpp"
|
||||
#include <ftxui/component/component.hpp>
|
||||
|
||||
namespace gui {
|
||||
class CombatUI : public Panel {
|
||||
public:
|
||||
GameLevel $level;
|
||||
Component $attack1_button;
|
||||
Component $attack2_button;
|
||||
|
||||
CombatUI(GameLevel level);
|
||||
|
||||
void create_render();
|
||||
void update_level(GameLevel &level) { $level = level; }
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue