Allow Timer nodes to ignore engine time scale

This commit is contained in:
Hakim 2024-09-05 22:51:11 +02:00 committed by hakro
parent fafc07335b
commit 483c1348d0
3 changed files with 29 additions and 2 deletions

View file

@ -41,6 +41,7 @@ class Timer : public Node {
bool autostart = false;
bool processing = false;
bool paused = false;
bool ignore_time_scale = false;
double time_left = -1.0;
@ -69,6 +70,9 @@ public:
void set_paused(bool p_paused);
bool is_paused() const;
void set_ignore_time_scale(bool p_ignore);
bool get_ignore_time_scale();
bool is_stopped() const;
double get_time_left() const;