1 #ifndef OPENMW_MWGUI_SCREENFADER_H
2 #define OPENMW_MWGUI_SCREENFADER_H
6 #include <boost/shared_ptr.hpp>
17 typedef boost::shared_ptr<FadeOp>
Ptr;
39 ScreenFader(
const std::string & texturePath,
const std::string& layout =
"openmw_screen_fader.layout",
const MyGUI::FloatCoord& texCoordOverride = MyGUI::FloatCoord(0,0,1,1));
43 void fadeIn(
const float time);
45 void fadeTo(
const int percent,
const float time);
50 void queue(
float time,
float targetAlpha);
ScreenFader(const std::string &texturePath, const std::string &layout="openmw_screen_fader.layout", const MyGUI::FloatCoord &texCoordOverride=MyGUI::FloatCoord(0, 0, 1, 1))
Definition: screenfader.cpp:70
Definition: screenfader.hpp:14
void notifyOperationFinished()
Definition: screenfader.cpp:171
float mStartAlpha
Definition: screenfader.hpp:32
float getCurrentAlpha()
Definition: screenfader.cpp:180
void setRepeat(bool repeat)
Definition: screenfader.cpp:128
float mRemainingTime
Definition: screenfader.hpp:29
void start()
Definition: screenfader.cpp:24
void notifyAlphaChanged(float alpha)
Definition: screenfader.cpp:158
float mTargetAlpha
Definition: screenfader.hpp:31
void fadeIn(const float time)
Definition: screenfader.cpp:107
void update(float dt)
Definition: screenfader.cpp:91
void queue(float time, float targetAlpha)
Definition: screenfader.cpp:133
void finish()
Definition: screenfader.cpp:64
void fadeOut(const float time)
Definition: screenfader.cpp:112
void clearQueue()
Definition: screenfader.cpp:153
bool mRepeat
Definition: screenfader.hpp:64
FadeOp(ScreenFader *fader, float time, float targetAlpha)
Definition: screenfader.cpp:9
void update(float dt)
Definition: screenfader.cpp:34
float mTargetTime
Definition: screenfader.hpp:30
Definition: windowbase.hpp:16
float mFactor
Definition: screenfader.hpp:62
boost::shared_ptr< FadeOp > Ptr
Definition: screenfader.hpp:17
bool mRunning
Definition: screenfader.hpp:33
ScreenFader * mFader
Definition: screenfader.hpp:28
void setFactor(float factor)
Definition: screenfader.cpp:122
Definition: screenfader.hpp:36
float mCurrentAlpha
Definition: screenfader.hpp:61
void applyAlpha()
Definition: screenfader.cpp:101
bool isRunning()
Definition: screenfader.cpp:19
bool isEmpty()
Definition: screenfader.cpp:148
std::deque< FadeOp::Ptr > mQueue
Definition: screenfader.hpp:65
void fadeTo(const int percent, const float time)
Definition: screenfader.cpp:117