Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@telenet.be>2020-07-18 17:20:32 +0200
committerStijn Buys <ingar@telenet.be>2020-07-18 17:20:32 +0200
commit41ec4ed68571091f2e2500344a7aeb527a91dc92 (patch)
tree29584f1f2f949e73da749d2e2504799519a1c21a /src/client/hudenginestatus.cc
parentb19afea9427dde861c990236ab11e23edfeb267c (diff)
Added standard close button widget class, added tooltips where approriate.
Diffstat (limited to 'src/client/hudenginestatus.cc')
-rw-r--r--src/client/hudenginestatus.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/client/hudenginestatus.cc b/src/client/hudenginestatus.cc
index ab51709..bae1f3f 100644
--- a/src/client/hudenginestatus.cc
+++ b/src/client/hudenginestatus.cc
@@ -6,6 +6,7 @@
#include "client/input.h"
#include "client/hudenginestatus.h"
+#include "client/closeiconbutton.h"
#include "core/core.h"
#include "core/application.h"
#include "ui/ui.h"
@@ -24,11 +25,11 @@ HUDEngineStatus::HUDEngineStatus(ui::Widget *parent) : ui::Widget(parent)
set_background(false);
_button_auto_palette = new ui::Palette(*palette());
- _button_auto = new ui::IconButton(this, "bitmaps/hud/button_auto", "freeflight");
+ _button_auto = new ui::IconButton(this, "bitmaps/hud/button_auto", "Cancel autopilot", "freeflight");
_button_auto->set_palette(_button_auto_palette);
_button_lock_palette = new ui::Palette(*palette());
- _button_lock = new ui::IconButton(this, "bitmaps/hud/button_lock", "ui_control");
+ _button_lock = new ui::IconButton(this, "bitmaps/hud/button_lock", "Lock control", "ui_control");
_button_lock->set_palette(_button_lock_palette);
}
@@ -115,10 +116,12 @@ void HUDEngineStatus::draw()
if (control_lock)
{
_button_lock_palette->set_foreground(math::Color(1.0f, 0.0f, 0.0f));
+ _button_lock->set_tooltip("Unlock control");
} else
{
// free controls
_button_lock_palette->set_foreground(palette()->foreground());
+ _button_lock->set_tooltip("Lock control");
}
// health bar size