diff options
author | Stijn Buys <ingar@osirion.org> | 2016-07-23 19:18:30 +0200 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2016-07-23 19:18:30 +0200 |
commit | 56d7e7deadef65feed1d8531580593e85ed69ff3 (patch) | |
tree | 43d95f7d16a5edc61fb9a7c0feb1cc1e47d85523 /src/client/controlsettingsmenu.cc | |
parent | b6e20e04b519e50909331f537df2ea6114a137ee (diff) |
Added player settings menu.
Diffstat (limited to 'src/client/controlsettingsmenu.cc')
-rw-r--r-- | src/client/controlsettingsmenu.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/client/controlsettingsmenu.cc b/src/client/controlsettingsmenu.cc index e061d93..496805b 100644 --- a/src/client/controlsettingsmenu.cc +++ b/src/client/controlsettingsmenu.cc @@ -6,6 +6,7 @@ #include "client/controlsettingsmenu.h" #include "client/input.h" +#include "ui/button.h" #include "ui/iconbutton.h" #include "ui/label.h" #include "ui/listview.h" @@ -144,7 +145,7 @@ public: protected: virtual void resize() { - const float padding = ui::root()->font_large()->height(); + const float padding = ui::UI::padding; set_size(parent()->size()); @@ -274,7 +275,7 @@ ControlSettingsMenu::ControlSettingsMenu(ui::Widget *parent, const char *label) _titlelabel->set_border(false); _titlelabel->set_font(ui::root()->font_large()); _titlelabel->set_alignment(ui::AlignCenter); - _titlelabel->set_text("CONTROLS"); + _titlelabel->set_text("INPUT CONTROLS"); // close button _closebutton = new ui::IconButton(_titlelabel, "bitmaps/icons/window_close"); @@ -319,7 +320,7 @@ void ControlSettingsMenu::apply() void ControlSettingsMenu::resize() { - const float padding = ui::root()->font_large()->height(); + const float padding = ui::UI::padding; // resize title label _titlelabel->set_size(width() - padding * 2.0f, _titlelabel->font()->height()); @@ -377,4 +378,4 @@ bool ControlSettingsMenu::on_emit(ui::Widget *sender, const ui::Widget::Event ev return Window::on_emit(sender, event, data); } -} // namespace client
\ No newline at end of file +} // namespace client |