Figured out the easiest way to set a panel to be centered, but a lot of these config things need to be unified and cleaned up.
This commit is contained in:
parent
269af02993
commit
fc61ef42ac
6 changed files with 48 additions and 33 deletions
3
gui.hpp
3
gui.hpp
|
@ -66,8 +66,7 @@ class NextLevelUI : public Panel {
|
|||
Component $no_button = nullptr;
|
||||
std::string $message = "Are you ready to go further down?";
|
||||
|
||||
NextLevelUI() :
|
||||
Panel(INVENTORY_PIXEL_X, INVENTORY_PIXEL_Y, INVENTORY_WIDTH, INVENTORY_HEIGHT) {}
|
||||
NextLevelUI() : Panel(0, 0, NEXT_LEVEL_WIDTH, NEXT_LEVEL_HEIGHT) {}
|
||||
|
||||
void create_render();
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue