diff --git a/src/frontend/hud.cpp b/src/frontend/hud.cpp index 5cc16119..6ddc6744 100644 --- a/src/frontend/hud.cpp +++ b/src/frontend/hud.cpp @@ -192,7 +192,7 @@ Hud::Hud(Engine& engine, LevelFrontend& frontend, Player& player) gui.add(contentAccessPanel); auto dplotter = std::make_shared(gui, 350, 250, 2000, 16); - dplotter->setGravity(Gravity::bottom_right); + dplotter->setGravity(Gravity::BOTTOM_RIGHT); dplotter->setInteractive(false); add(HudElement(HudElementMode::PERMANENT, nullptr, dplotter, true)); diff --git a/src/graphics/ui/elements/BasePanel.hpp b/src/graphics/ui/elements/BasePanel.hpp index 08761050..168776a9 100644 --- a/src/graphics/ui/elements/BasePanel.hpp +++ b/src/graphics/ui/elements/BasePanel.hpp @@ -30,14 +30,14 @@ namespace gui { glm::vec2 size, glm::vec4 padding = glm::vec4(0.0f), float interval = 2.0f, - Orientation orientation = Orientation::vertical + Orientation orientation = Orientation::VERTICAL ) : Container(gui, std::move(size)), padding(std::move(padding)), interval(interval) { } - Orientation orientation = Orientation::vertical; + Orientation orientation = Orientation::VERTICAL; glm::vec4 padding; float interval = 2.0f; }; diff --git a/src/graphics/ui/elements/Button.cpp b/src/graphics/ui/elements/Button.cpp index ef2142ea..2fe6fc6a 100644 --- a/src/graphics/ui/elements/Button.cpp +++ b/src/graphics/ui/elements/Button.cpp @@ -31,7 +31,7 @@ Button::Button( GUI& gui, const std::wstring& text, glm::vec4 padding, - const onaction& action, + const OnAction& action, glm::vec2 size ) : Panel(gui, size, padding, 0.0f) { @@ -42,12 +42,12 @@ Button::Button( } if (action) { - listenAction(action); + listenClick(action); } setScrollable(false); label = std::make_shared