Skip to content

Commit

Permalink
Animate Defines Cleanup (#1804)
Browse files Browse the repository at this point in the history
  • Loading branch information
LemonInTheDark authored May 22, 2024
1 parent d77f19f commit a6373fb
Showing 1 changed file with 16 additions and 12 deletions.
28 changes: 16 additions & 12 deletions DMCompiler/DMStandard/Defines.dm
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,27 @@
#define NEUTER "neuter"
#define PLURAL "plural"

//animate() flags arg
#define ANIMATION_END_NOW 1
#define ANIMATION_LINEAR_TRANSFORM 2
#define ANIMATION_PARALLEL 4
#define ANIMATION_SLICE 8
#define ANIMATION_RELATIVE 256
#define ANIMATION_CONTINUE 512

//animate() easing arg
#define LINEAR_EASING 0
#define SINE_EASING 1
#define CIRCULAR_EASING 2
#define CUBIC_EASING 3
#define BOUNCE_EASING 4
#define ELASTIC_EASING 5
#define BACK_EASING 6
#define QUAD_EASING 7
#define JUMP_EASING 8
//flags applied to the animate() easing arg
#define EASE_IN 64
#define EASE_OUT 128
#define ANIMATION_RELATIVE 256

#define NO_STEPS 0
#define FORWARD_STEPS 1
Expand Down Expand Up @@ -123,17 +138,6 @@
#define PASS_MOUSE (1<<10)
#define TILE_MOVER (1<<11)

//animate() easing arg
#define LINEAR_EASING 0
#define SINE_EASING 1
#define CIRCULAR_EASING 2
#define CUBIC_EASING 3
#define BOUNCE_EASING 4
#define ELASTIC_EASING 5
#define BACK_EASING 6
#define QUAD_EASING 7
#define JUMP_EASING 8

//Undocumented matrix defines (see https://www.byond.com/forum/post/1881375)
#define MATRIX_COPY 0
#define MATRIX_MULTIPLY 1 // idk why this is first, either
Expand Down

0 comments on commit a6373fb

Please sign in to comment.