1
0
forked from 0ad/0ad

Added 'tick' action to GUI objects

This was SVN commit r816.
This commit is contained in:
Ykkrosh 2004-07-24 19:09:12 +00:00
parent 233513ce3c
commit 48d0bdff97
2 changed files with 12 additions and 0 deletions

View File

@ -200,6 +200,13 @@ int CGUI::HandleEvent(const SDL_Event* ev)
return EV_PASS;
}
void CGUI::TickObjects()
{
CStr action = "tick";
GUI<CStr>::RecurseObject(0, m_BaseObject,
&IGUIObject::ScriptEvent, action);
}
//-------------------------------------------------------------------
// Constructor / Destructor
//-------------------------------------------------------------------

View File

@ -95,6 +95,11 @@ public:
*/
void Process();
/**
* Sends a "Tick" event to every object
*/
void TickObjects();
/**
* Displays the whole GUI
*/