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:
Zed A. Shaw 2025-01-16 23:07:18 -05:00
parent 269af02993
commit fc61ef42ac
6 changed files with 48 additions and 33 deletions

View file

@ -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();
};