13#include <QVariantList>
15#include <QtQml/qqmlregistration.h>
89 QVariantList
dsts()
const;
204 void rebuildActiveOptionSet();
205 void rebuildAnalysis();
206 void reconnectClock();
207 void reconnectActiveOptionsState();
208 void activeOptionsStateDidChange();
209 void updateSkinTimeFromClock();
210 void updateAnimationLimit();
212 int clockSkinTime()
const;
213 int effectiveSkinTime(
int requestedTime)
const;
214 qreal effectiveTimerFire()
const;
215 qreal timerValue(
int timerIdx)
const;
220 bool m_enabled =
true;
221 QPointer<Lr2SkinClock> m_skinClock;
222 QMetaObject::Connection m_clockConnection;
224 QVariantList m_dstsValue;
226 int m_requestedSkinTime = 0;
227 int m_effectiveSkinTime = 0;
229 int m_timerFire = -2147483648;
230 QPointer<Lr2SkinElementActiveOptionsState> m_activeOptionsState;
231 QMetaObject::Connection m_activeOptionsStateConnection;
232 QVariant m_activeOptions;
233 QSet<int> m_activeOptionSet;
234 bool m_sliderTranslationEnabled =
false;
235 qreal m_sliderPosition = 0.0;
236 int m_sliderRange = 0;
237 int m_sliderDirection = 0;
238 bool m_dstOffsetsEnabled =
false;
239 qreal m_dstOffsetLiftY = 0.0;
240 qreal m_dstOffsetLaneCoverY = 0.0;
241 qreal m_dstOffsetHiddenY = 0.0;
242 qreal m_dstOffsetHiddenA = 0.0;
244 int m_animationLimit = -1;
245 bool m_canUseStaticState =
false;
246 bool m_usesActiveOptions =
false;
247 bool m_usesDynamicTimer =
false;
248 bool m_loopsContinuously =
false;
249 int m_scratchRotationSide = 0;
250 int m_firstTimer = 0;
251 int m_firstSortId = 0;
double value
Definition BmsNotesData.cpp:35
Definition Lr2SkinClock.h:7
Definition Lr2SkinElementActiveOptionsState.h:8
Definition Lr2TimelineStateValue.h:8
Definition Lr2TimelineState.h:17
Q_INVOKABLE int scratchRotationSideFor(const QVariantList &dsts) const
Definition Lr2TimelineState.cpp:478
int stateBlend
Definition Lr2TimelineState.h:51
void setTimerFire(int timerFire)
Definition Lr2TimelineState.cpp:117
Lr2TimelineStateValue staticState
Definition Lr2TimelineState.h:58
QVariantList dsts
Definition Lr2TimelineState.h:23
int stateCenter
Definition Lr2TimelineState.h:49
Q_INVOKABLE bool canUseStaticStateFor(const QVariantList &dsts) const
Definition Lr2TimelineState.cpp:462
void setDstOffsetsEnabled(bool enabled)
Definition Lr2TimelineState.cpp:227
Q_INVOKABLE Lr2TimelineStateValue stateFromTimerFire(const QVariantList &dsts, int skinTime, int timerFire, const QVariant &activeOptions) const
Definition Lr2TimelineState.cpp:438
void setSliderPosition(qreal position)
Definition Lr2TimelineState.cpp:181
qreal dstOffsetHiddenA
Definition Lr2TimelineState.h:37
qreal stateB
Definition Lr2TimelineState.h:47
qreal stateG
Definition Lr2TimelineState.h:46
int skinTime
Definition Lr2TimelineState.h:24
void setDstOffsetHiddenA(qreal value)
Definition Lr2TimelineState.cpp:292
int firstTimer
Definition Lr2TimelineState.h:63
qreal stateW
Definition Lr2TimelineState.h:42
qreal stateY
Definition Lr2TimelineState.h:41
int stateOp1
Definition Lr2TimelineState.h:53
Q_INVOKABLE bool usesDynamicTimerFor(const QVariantList &dsts) const
Definition Lr2TimelineState.cpp:470
void setTimers(const QVariant &timers)
Definition Lr2TimelineState.cpp:103
qreal sliderPosition
Definition Lr2TimelineState.h:30
bool hasState
Definition Lr2TimelineState.h:39
int sliderDirection
Definition Lr2TimelineState.h:32
void setActiveOptions(const QVariant &options)
Definition Lr2TimelineState.cpp:149
bool sliderTranslationEnabled
Definition Lr2TimelineState.h:29
void setSliderDirection(int direction)
Definition Lr2TimelineState.cpp:213
int firstSortId
Definition Lr2TimelineState.h:64
void setDsts(const QVariantList &dsts)
Definition Lr2TimelineState.cpp:61
void setDstOffsetLiftY(qreal value)
Definition Lr2TimelineState.cpp:241
void setSliderTranslationEnabled(bool enabled)
Definition Lr2TimelineState.cpp:167
void setEnabled(bool enabled)
Definition Lr2TimelineState.cpp:46
Q_INVOKABLE Lr2TimelineStateValue stateFor(const QVariantList &dsts, int skinTime, const QVariant &timers, const QVariant &activeOptions) const
Definition Lr2TimelineState.cpp:419
void setSliderRange(int range)
Definition Lr2TimelineState.cpp:198
QVariant activeOptions
Definition Lr2TimelineState.h:28
bool usesDynamicTimer
Definition Lr2TimelineState.h:60
Q_INVOKABLE bool loopsContinuouslyFor(const QVariantList &dsts) const
Definition Lr2TimelineState.cpp:474
void sliderTranslationChanged()
void activeOptionsStateChanged()
qreal stateAngle
Definition Lr2TimelineState.h:48
bool dstOffsetsEnabled
Definition Lr2TimelineState.h:33
qreal dstOffsetLaneCoverY
Definition Lr2TimelineState.h:35
void setDstOffsetLaneCoverY(qreal value)
Definition Lr2TimelineState.cpp:258
bool enabled
Definition Lr2TimelineState.h:22
int stateOp3
Definition Lr2TimelineState.h:55
Q_INVOKABLE int timerFireFor(const QVariant &timers, int timerIdx) const
Definition Lr2TimelineState.cpp:490
Q_INVOKABLE int sourceTimerFor(const QVariant &src) const
Definition Lr2TimelineState.cpp:496
Q_INVOKABLE int firstSortIdFor(const QVariantList &dsts) const
Definition Lr2TimelineState.cpp:486
QVariant timers
Definition Lr2TimelineState.h:25
bool isEnabled() const
Definition Lr2TimelineState.cpp:42
int stateFilter
Definition Lr2TimelineState.h:52
Q_INVOKABLE bool sourceCyclesContinuously(const QVariant &src) const
Definition Lr2TimelineState.cpp:506
QML_ELEMENTLr2SkinClock * skinClock
Definition Lr2TimelineState.h:20
bool usesActiveOptions
Definition Lr2TimelineState.h:59
void activeOptionsChanged()
qreal stateX
Definition Lr2TimelineState.h:40
int timerFire
Definition Lr2TimelineState.h:26
bool loopsContinuously
Definition Lr2TimelineState.h:61
void setDstOffsetHiddenY(qreal value)
Definition Lr2TimelineState.cpp:275
void setClockMode(int mode)
Definition Lr2TimelineState.cpp:31
Q_INVOKABLE bool usesActiveOptionsFor(const QVariantList &dsts) const
Definition Lr2TimelineState.cpp:466
int stateOp2
Definition Lr2TimelineState.h:54
Q_INVOKABLE bool sourceUsesDynamicTimer(const QVariant &src) const
Definition Lr2TimelineState.cpp:501
void setSkinTime(int time)
Definition Lr2TimelineState.cpp:78
Lr2TimelineStateValue state
Definition Lr2TimelineState.h:38
int stateOp4
Definition Lr2TimelineState.h:56
qreal stateSortId
Definition Lr2TimelineState.h:50
qreal stateH
Definition Lr2TimelineState.h:43
bool canUseStaticState
Definition Lr2TimelineState.h:57
Q_INVOKABLE Lr2TimelineStateValue staticStateFor(const QVariantList &dsts) const
Definition Lr2TimelineState.cpp:453
Q_INVOKABLE int firstTimerFor(const QVariantList &dsts) const
Definition Lr2TimelineState.cpp:482
void setActiveOptionsState(Lr2SkinElementActiveOptionsState *state)
Definition Lr2TimelineState.cpp:131
qreal stateA
Definition Lr2TimelineState.h:44
int scratchRotationSide
Definition Lr2TimelineState.h:62
qreal dstOffsetHiddenY
Definition Lr2TimelineState.h:36
ClockMode
Definition Lr2TimelineState.h:67
@ SelectLiveClock
Definition Lr2TimelineState.h:73
@ RenderClock
Definition Lr2TimelineState.h:69
@ ManualClock
Definition Lr2TimelineState.h:68
@ BarClock
Definition Lr2TimelineState.h:71
@ SelectSourceClock
Definition Lr2TimelineState.h:70
@ GlobalClock
Definition Lr2TimelineState.h:72
@ SelectInfoClock
Definition Lr2TimelineState.h:74
Lr2SkinElementActiveOptionsState * activeOptionsState
Definition Lr2TimelineState.h:27
void setSkinClock(Lr2SkinClock *clock)
Definition Lr2TimelineState.cpp:17
qreal stateR
Definition Lr2TimelineState.h:45
int sliderRange
Definition Lr2TimelineState.h:31
int clockMode
Definition Lr2TimelineState.h:21
qreal dstOffsetLiftY
Definition Lr2TimelineState.h:34
Definition Lr2SkinRuntimeTypes.h:33