SoUI 0.5版本占坑
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
1.6 KiB

# /*
# * BJº¯ÊýÓÅ»¯ -- Animation
# *
# * By actboy168
# *
# */
#
#ifndef INCLUDE_BJ_OPTIMIZATION_ANIMATION_H
#define INCLUDE_BJ_OPTIMIZATION_ANIMATION_H
#
# define ResetUnitAnimation(unit) SetUnitAnimation(unit, "stand")
# define SetUnitTimeScalePercent(unit, percentScale) SetUnitTimeScale(unit, (percentScale) * 0.01)
# define SetUnitScalePercent(unit, X, Y, Z) SetUnitScale(unit, (X) * 0.01, (Y) * 0.01, (Z) * 0.01)
# define SetUnitVertexColorBJ(unit, red, green, blue, t) SetUnitVertexColor(unit, PercentTo255(red), PercentTo255(green), PercentTo255(blue), PercentTo255(100.0-(t)))
# define UnitAddIndicatorBJ(unit, red, green, blue, t) AddIndicator(unit, PercentTo255(red), PercentTo255(green), PercentTo255(blue), PercentTo255(100.0-(t)))
# define DestructableAddIndicatorBJ(d, red, green, blue, t) AddIndicator(d, PercentTo255(red), PercentTo255(green), PercentTo255(blue), PercentTo255(100.0-(t)))
# define ItemAddIndicatorBJ(item, red, green, blue, t) AddIndicator(item, PercentTo255(red), PercentTo255(green), PercentTo255(blue), PercentTo255(100.0-(t)))
# define QueueUnitAnimationBJ(unit, animation) QueueUnitAnimation(unit, animation)
# define SetDestructableAnimationBJ(d, animation) SetDestructableAnimation(d, animation)
# define QueueDestructableAnimationBJ(d, animation) QueueDestructableAnimation(d, animation)
# define SetDestAnimationSpeedPercent(d, percentScale) SetDestructableAnimationSpeed(d, (percentScale) * 0.01)
#
#endif