public override void init() { mAiming.setAutoHide(false); mAiming.setLoop(LOOP_MODE.LM_LOOP); mGreenAimingAnim.setLoop(LOOP_MODE.LM_LOOP); mOriginHeight = mAiming.getWindowSize().y; }
public override void onShow(bool immediately, string param) { LayoutTools.MOVE_WINDOW_EX(mTrackRoot, mTrackRootStartPos, mTrackRootEndPos, 1.0f, onTrackRootMoveEnd); LayoutTools.ALPHA_WINDOW(mTrackRoot, 0.3f, 1.0f, 1.0f); mSelectTrackTitle.setLoop(LOOP_MODE.LM_ONCE); mSelectTrackTitle.setAutoHide(false); mSelectTrackTitle.stop(true, false); mSelectTrackTitle.play(); }
// -------------------------------------------------------------------------------------------------------------------- protected void startRidingDone() { // 播放开始骑行的序列帧(从44帧开始循环播放) mStartRiding.setLoop(LOOP_MODE.LM_PINGPONG); mStartRiding.setStartIndex(44); mStartRiding.setPlayDirection(false); mStartRiding.play(); LayoutTools.ACTIVE_WINDOW(mGameIn); LayoutTools.ACTIVE_WINDOW(mGameOut); }
protected void onLabelShow(object user_data, Command cmd) { int count = mLabelList.Count; float delaytime = 0.5f; for (int i = 0; i < count; i++) { LayoutTools.ACTIVE_WINDOW_DELAY(this, mLabelList[i], true, delaytime); delaytime += 0.5f; } LayoutTools.ACTIVE_WINDOW_DELAY(this, mNext, true, 2.5f); LayoutTools.ACTIVE_WINDOW_DELAY(this, mAIcon, true, 3.5f); mNext.setLoop(LOOP_MODE.LM_ONCE); mNext.setAutoHide(false); mNext.stop(true, false); mNext.play(); }
public override void onShow(bool immediately, string param) { mDataRanking.setLoop(LOOP_MODE.LM_ONCE); mDataRanking.setAutoHide(false); mDataRanking.stop(true, false); mDataRanking.play(); float delaytime = 0.0f; int count = mAminList.Count; for (int i = 0; i < count; i++) { LayoutTools.ACTIVE_WINDOW_DELAY_EX(this, mAminList[i], true, delaytime, onLabelShow, null); delaytime += 0.5f; mAminList[i].setLoop(LOOP_MODE.LM_ONCE); mAminList[i].setAutoHide(false); mAminList[i].stop(true, false); mAminList[i].play(); } }
public void setLoop(bool loop) { mEffectNode.setLoop(loop ? LOOP_MODE.LM_LOOP : LOOP_MODE.LM_ONCE); }