StoryboardCode - frankhjwx/osu-storyboard-engine GitHub Wiki

Code(key, timing, data, easing=0, loop_level=0)

It creates a basic Code, it's a father class of all other Code commands, so it's not suggested to use Code straightly. If you want create a command, please make a child of this class.

  • key: The key of the Code, like 'M', 'T', etc.
  • timing: The timing of the Code, it can be one single timing, or two timing points for start_t and end_t. For a single timing, it can be int/float/string format. For string format, it can be '10001' or '00:05:123'. Yes our parser can parse timing automatically so don't worry about your timing format.
  • data: It contains arguments of a Code, it varies as key changes.
  • easing: The easing of the Code, 0 as default.
  • loop_level: The loop_level of a code, used to indicate if it's inside a loop (Loop or Trigger).

Methods

get_string()

Get the osb format of a Command.

Move(), Vector(), MoveX(), MoveY(), VectorX(), VectorY(), Rotate() Scale(), Fade(), Color(), Parameter(), Loop(), Trigger(), LoopOut()

Please refer to StoryboardObject section for more info.

It's not suggested to use Code alone, please define them inside Object class.