axmol/extensions/fairygui/controller_action/PlayTransitionAction.h

31 lines
560 B
C++

#ifndef __PLAYTRNASITIONACTION_H__
#define __PLAYTRNASITIONACTION_H__
#include "ControllerAction.h"
NS_FGUI_BEGIN
class Transition;
class PlayTransitionAction : public ControllerAction
{
public:
PlayTransitionAction();
virtual void setup(ByteBuffer * buffer) override;
std::string transitionName;
int playTimes;
float delay;
bool stopOnExit;
protected:
virtual void enter(GController* controller) override;
virtual void leave(GController* controller) override;
Transition* _currentTransition;
};
NS_FGUI_END
#endif