feat: implemented interaction tooltips
This commit is contained in:
parent
34db607145
commit
2511ac69c0
7 changed files with 44 additions and 15 deletions
|
|
@ -2,6 +2,7 @@
|
|||
#define HEADS_UP_DISPLAY_H
|
||||
|
||||
#include "scene/gui/control.h"
|
||||
#include "scene/gui/label.h"
|
||||
|
||||
class HeadsUpDisplay : public Control {
|
||||
GDCLASS(HeadsUpDisplay, Control);
|
||||
|
|
@ -17,9 +18,11 @@ protected:
|
|||
public:
|
||||
static HeadsUpDisplay *get_singleton();
|
||||
void set_reticle_visibility(bool visible);
|
||||
void set_tooltip(String const &tooltip);
|
||||
|
||||
private:
|
||||
Control *reticle{ nullptr };
|
||||
Label *tooltip{ nullptr };
|
||||
};
|
||||
|
||||
#endif // !HEADS_UP_DISPLAY_H
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue