Rally Rush
Loading...
Searching...
No Matches
game_ui.hpp
Go to the documentation of this file.
1#ifndef GAME_UI_HPP
2#define GAME_UI_HPP
3
4#include <godot_cpp/classes/canvas_layer.hpp>
5#include <godot_cpp/classes/label.hpp>
6
7namespace godot {
9class GameUI : public CanvasLayer {
10 GDCLASS(GameUI, CanvasLayer);
12 static void _bind_methods();
13public:
15 virtual void _enter_tree() override;
17 void append_debug_info(String string);
18protected:
20 void on_key_found(int total_found);
22 void on_all_keys_found();
23private:
24 Label *debug_info_label{nullptr};
25};
26}
27
28#endif // !GAME_UI_HPP
The in-game HUD.
Definition game_ui.hpp:9
static void _bind_methods()
Required to be a valid godot class.
Definition game_ui.cpp:9
virtual void _enter_tree() override
Connect listeners and get debug info label.
Definition game_ui.cpp:13
GDCLASS(GameUI, CanvasLayer)
void on_key_found(int total_found)
Listener for key_found observer on RallyRushGameMode.
Definition game_ui.cpp:27
void on_all_keys_found()
Listener for all_keys_found observer on RallyRushGameMode.
Definition game_ui.cpp:31
Label * debug_info_label
Definition game_ui.hpp:24
void append_debug_info(String string)
Update the debug info label with new information.
Definition game_ui.cpp:22
Definition beacon_powerup.cpp:6