26 lines
522 B
C++
26 lines
522 B
C++
#ifndef HEADS_UP_DISPLAY_H
|
|
#define HEADS_UP_DISPLAY_H
|
|
|
|
#include "scene/gui/control.h"
|
|
|
|
class HeadsUpDisplay : public Control {
|
|
GDCLASS(HeadsUpDisplay, Control);
|
|
static void _bind_methods();
|
|
static HeadsUpDisplay *singleton_instance;
|
|
void on_child_entered(Node *node);
|
|
void enter_tree();
|
|
void exit_tree();
|
|
|
|
protected:
|
|
void _notification(int what);
|
|
|
|
public:
|
|
static HeadsUpDisplay *get_singleton();
|
|
void set_reticle_visibility(bool visible);
|
|
|
|
private:
|
|
Control *reticle{ nullptr };
|
|
};
|
|
|
|
#endif // !HEADS_UP_DISPLAY_H
|