# Rally Rush: src/game_ui.hpp Source File

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