public static void ROTATE_WINDOW(txUIObject obj, Vector3 rotation) { CommandWindowRotate cmd = mCommandSystem.newCmd <CommandWindowRotate>(false, false); cmd.mName = ""; cmd.mOnceLength = 0.0f; cmd.mStartRotation = rotation; cmd.mTargetRotation = rotation; mCommandSystem.pushCommand(cmd, obj); }
public static CommandWindowRotate ROTATE_WINDOW_DELAY(LayoutScript script, txUIObject obj, float delayTime, Vector3 rotation) { CommandWindowRotate cmd = mCommandSystem.newCmd <CommandWindowRotate>(false, true); cmd.mName = ""; cmd.mOnceLength = 0.0f; cmd.mStartRotation = rotation; cmd.mTargetRotation = rotation; mCommandSystem.pushDelayCommand(cmd, obj, delayTime); script.addDelayCmd(cmd); return(cmd); }
public static void ROTATE_WINDOW(txUIObject obj, Vector3 rotation) { if (!checkStaticPanel(obj)) { return; } CommandWindowRotate cmd = newCmd(out cmd, false, false); cmd.mName = ""; cmd.mOnceLength = 0.0f; cmd.mStartRotation = rotation; cmd.mTargetRotation = rotation; pushCommand(cmd, obj); }
public static CommandWindowRotate ROTATE_WINDOW_DELAY(LayoutScript script, txUIObject obj, float delayTime, Vector3 rotation) { if (!checkStaticPanel(obj)) { return(null); } CommandWindowRotate cmd = newCmd(out cmd, false, true); cmd.mName = ""; cmd.mOnceLength = 0.0f; cmd.mStartRotation = rotation; cmd.mTargetRotation = rotation; pushDelayCommand(cmd, obj, delayTime); script.addDelayCmd(cmd); return(cmd); }
public static CommandWindowRotate ROTATE_KEYFRMAE_WINDOW_DELAY(LayoutScript script, txUIObject obj, float delayTime, string keyframe, Vector3 start, Vector3 target, float onceLength, bool loop, float offset) { if (keyframe == "" || MathUtility.isFloatZero(onceLength)) { UnityUtility.logError("时间或关键帧不能为空,如果要停止组件,请使用CommandWindowKeyFrameRotate ROTATE_WINDOW_DELAY(LayoutScript script, txUIObject obj, float delayTime, Vector3 rotation)"); } CommandWindowRotate cmd = mCommandSystem.newCmd <CommandWindowRotate>(false, true); cmd.mName = keyframe; cmd.mOnceLength = onceLength; cmd.mStartRotation = start; cmd.mTargetRotation = target; cmd.mOffset = offset; cmd.mLoop = loop; mCommandSystem.pushDelayCommand(cmd, obj, delayTime); script.addDelayCmd(cmd); return(cmd); }
public static void ROTATE_KEYFRMAE_WINDOW_EX(txUIObject obj, string keyframe, Vector3 start, Vector3 target, float onceLength, bool loop, float offset, KeyFrameCallback rotatingCallback, KeyFrameCallback doneCallback) { if (keyframe == "" || MathUtility.isFloatZero(onceLength)) { UnityUtility.logError("时间或关键帧不能为空,如果要停止组件,请使用void ROTATE_WINDOW(txUIObject obj, Vector3 rotation)"); } CommandWindowRotate cmd = mCommandSystem.newCmd <CommandWindowRotate>(false, false); cmd.mName = keyframe; cmd.mOnceLength = onceLength; cmd.mStartRotation = start; cmd.mTargetRotation = target; cmd.mOffset = offset; cmd.mLoop = loop; cmd.setTremblingCallback(rotatingCallback, null); cmd.setTrembleDoneCallback(doneCallback, null); mCommandSystem.pushCommand(cmd, obj); }
public static CommandWindowRotate ROTATE_KEYFRMAE_WINDOW_DELAY(LayoutScript script, txUIObject obj, float delayTime, string keyframe, Vector3 start, Vector3 target, float onceLength, bool loop, float offset) { if (!checkStaticPanel(obj)) { return(null); } if (keyframe == "" || isFloatZero(onceLength)) { logError("时间或关键帧不能为空,如果要停止组件,请使用CommandWindowKeyFrameRotate ROTATE_WINDOW_DELAY(LayoutScript script, txUIObject obj, float delayTime, Vector3 rotation)"); } CommandWindowRotate cmd = newCmd(out cmd, false, true); cmd.mName = keyframe; cmd.mOnceLength = onceLength; cmd.mStartRotation = start; cmd.mTargetRotation = target; cmd.mOffset = offset; cmd.mLoop = loop; pushDelayCommand(cmd, obj, delayTime); script.addDelayCmd(cmd); return(cmd); }
public static void ROTATE_KEYFRMAE_WINDOW_EX(txUIObject obj, string keyframe, Vector3 start, Vector3 target, float onceLength, bool loop, float offset, KeyFrameCallback rotatingCallback, KeyFrameCallback doneCallback) { if (!checkStaticPanel(obj)) { return; } if (keyframe == "" || isFloatZero(onceLength)) { logError("时间或关键帧不能为空,如果要停止组件,请使用void ROTATE_WINDOW(txUIObject obj, Vector3 rotation)"); } CommandWindowRotate cmd = newCmd(out cmd, false, false); cmd.mName = keyframe; cmd.mOnceLength = onceLength; cmd.mStartRotation = start; cmd.mTargetRotation = target; cmd.mOffset = offset; cmd.mLoop = loop; cmd.setTremblingCallback(rotatingCallback, null); cmd.setTrembleDoneCallback(doneCallback, null); pushCommand(cmd, obj); }