Added 'tick' action to GUI objects
This was SVN commit r816.
This commit is contained in:
parent
233513ce3c
commit
48d0bdff97
@ -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
|
||||
//-------------------------------------------------------------------
|
||||
|
@ -95,6 +95,11 @@ public:
|
||||
*/
|
||||
void Process();
|
||||
|
||||
/**
|
||||
* Sends a "Tick" event to every object
|
||||
*/
|
||||
void TickObjects();
|
||||
|
||||
/**
|
||||
* Displays the whole GUI
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user