From d68ff053374c91810afe32885d08d3ac8647d57f Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Sun, 13 Apr 2003 21:52:50 +0000 Subject: [PATCH] Add scripting support to ScreenGamplay --- stepmania/src/ActorUtil.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 stepmania/src/ActorUtil.h diff --git a/stepmania/src/ActorUtil.h b/stepmania/src/ActorUtil.h new file mode 100644 index 0000000000..b754a8a6c8 --- /dev/null +++ b/stepmania/src/ActorUtil.h @@ -0,0 +1,23 @@ +#ifndef ActorUtil_H +#define ActorUtil_H +/* +----------------------------------------------------------------------------- + Class: ActorUtil + + Desc: Helpful macros + + Copyright (c) 2001-2002 by the person(s) listed below. All rights reserved. + Chris Danford +----------------------------------------------------------------------------- +*/ + +#include "Actor.h" + + +#define SET_XY( actor ) (actor).SetXY( THEME->GetMetricF(m_sName,(actor).GetName()+"X"), THEME->GetMetricF(m_sName,(actor).GetName()+"Y") ); +#define ON_COMMAND( actor ) (actor).Command( THEME->GetMetric(m_sName,(actor).GetName()+"OnCommand") ) +#define OFF_COMMAND( actor ) (actor).Command( THEME->GetMetric(m_sName,(actor).GetName()+"OffCommand") ) +#define SET_XY_AND_ON_COMMAND( actor ) { SET_XY(actor); ON_COMMAND(actor); } + + +#endif \ No newline at end of file