public static void Init() { GL_MATRIX_ANIM _ANIM_SPINNER = new GL_MATRIX_ANIM(NAME_SPINNER_3X3); _ANIM_SPINNER.AddFrame(1, 0, 0, 0, 1, 0, 0, 0, 1); _ANIM_SPINNER.AddFrame(0, 1, 0, 0, 1, 0, 0, 1, 0); _ANIM_SPINNER.AddFrame(0, 0, 1, 0, 1, 0, 1, 0, 0); _ANIM_SPINNER.AddFrame(0, 0, 0, 1, 1, 1, 0, 0, 0); animations.Add(_ANIM_SPINNER.name, _ANIM_SPINNER); GL_MATRIX_ANIM _ANIM_INC = new GL_MATRIX_ANIM(NAME_INC_3X3); _ANIM_INC.AddFrame(0, 0, 0, 0, 0, 0, 0, 0, 0); _ANIM_INC.AddFrame(0, 1, 0, 0, 0, 0, 0, 0, 0); _ANIM_INC.AddFrame(0, 0, 1, 0, 0, 0, 0, 0, 0); _ANIM_INC.AddFrame(0, 0, 0, 1, 0, 0, 0, 0, 0); _ANIM_INC.AddFrame(0, 0, 0, 0, 1, 0, 0, 0, 0); _ANIM_INC.AddFrame(0, 0, 0, 0, 0, 1, 0, 0, 0); _ANIM_INC.AddFrame(0, 0, 0, 0, 0, 0, 1, 0, 0); _ANIM_INC.AddFrame(0, 0, 0, 0, 0, 0, 0, 1, 0); _ANIM_INC.AddFrame(0, 0, 0, 0, 0, 0, 0, 0, 1); animations.Add(_ANIM_INC.name, _ANIM_INC); }
public static void Draw_RADIAL(string _animName, int _frame, float _x, float _y, float _radius_START, float _radius_END, Color _col, float _angle_START = 0, float _angle_END = 1, int _arcSides = HUD.DEFAULT_ARC_SIDES, float _gutterRatio_angle = HUD.DEFAULT_GUTTER_RATIO, float _gutterRatio_radius = HUD.DEFAULT_GUTTER_RATIO, float _rotation = 0) { GL_MATRIX_ANIM _ANIM = animations[_animName]; Draw_MATRIX_ANIM_FRAME_RADIAL(_ANIM.frames, _frame, _ANIM.cellsX, _ANIM.cellsY, _ANIM.totalFrames, _x, _y, _radius_START, _radius_END, _col, _arcSides, _angle_START, _angle_END, _gutterRatio_angle, _gutterRatio_radius, _rotation); }
public static void Draw(string _animName, int _frame, float _x, float _y, float _w, Color _col, float _rotation = 0) { GL_MATRIX_ANIM _ANIM = animations[_animName]; Draw_MATRIX_ANIM_FRAME(_ANIM.frames, _frame, _ANIM.cellsX, _ANIM.cellsY, _ANIM.totalFrames, _x, _y, _w, _col); }