diff --git a/source/gui/CGUI.cpp b/source/gui/CGUI.cpp index 013f2e9ae4..a7d945fda9 100755 --- a/source/gui/CGUI.cpp +++ b/source/gui/CGUI.cpp @@ -200,6 +200,13 @@ int CGUI::HandleEvent(const SDL_Event* ev) return EV_PASS; } +void CGUI::TickObjects() +{ + CStr action = "tick"; + GUI::RecurseObject(0, m_BaseObject, + &IGUIObject::ScriptEvent, action); +} + //------------------------------------------------------------------- // Constructor / Destructor //------------------------------------------------------------------- diff --git a/source/gui/CGUI.h b/source/gui/CGUI.h index a3da0e70cc..86912a3eed 100755 --- a/source/gui/CGUI.h +++ b/source/gui/CGUI.h @@ -95,6 +95,11 @@ public: */ void Process(); + /** + * Sends a "Tick" event to every object + */ + void TickObjects(); + /** * Displays the whole GUI */