-
Notifications
You must be signed in to change notification settings - Fork 6
branch_indicator
The BranchIndicator shows the player which branch difficulty they have moved to when the chart's branching condition is evaluated. It plays a short level-up or level-down animation and is owned by player as an optional<BranchIndicator>.
BranchIndicator();Allocates all animations and initialises difficulty to BranchDifficulty::NORMAL.
| Member | Type | Description |
|---|---|---|
difficulty |
BranchDifficulty |
The branch level currently being displayed (public) |
diff_2 |
BranchDifficulty |
The destination difficulty, set when a transition starts |
diff_down |
MoveAnimation* |
Downward slide for the old difficulty label |
diff_up |
MoveAnimation* |
Upward slide for the new difficulty label |
diff_fade |
FadeAnimation* |
Fade-out for the old label |
level_fade |
FadeAnimation* |
Fade-in for the level icon |
level_scale |
TextureResizeAnimation* |
Scale pulse for the level icon |
direction |
int |
+1 for level-up, -1 for level-down |
| Value | Description |
|---|---|
NORMAL |
Normal branch path |
EXPERT |
Expert branch path |
MASTER |
Master branch path |
void level_up(BranchDifficulty difficulty);Sets diff_2 = difficulty, direction = +1, and starts all transition animations.
void level_down(BranchDifficulty difficulty);Sets diff_2 = difficulty, direction = -1, and starts all transition animations.
void update(double current_ms);Advances all animations. Once the transition completes, difficulty is set to diff_2.
void draw(float y);Draws the difficulty label and level icon at the configured position, offset by y in 2P layouts.
Building
libs
- animation
- audio
- config
- filesystem
- global_data
- input
- logging
- ray
- scores
- screen
- script
- song_parser
- text
- texture
- video
- webcam
libs/parsers
objects
objects/game
- player
- background
- gauge
- judgment
- combo
- branch_indicator
- ending_animations
- gogo_time
- fireworks
- song_info
- transition
- result_transition
- judge_counter
- score_counter
- score_counter_animation
- balloon_counter
- drumroll_counter
- kusudama_counter
- drum_hit_effect
- lane_hit_effect
- gauge_hit_effect
- combo_announce
- note_arc
objects/global
objects/title
objects/entry
objects/settings
objects/result
objects/song_select
- player
- navigator
- box_base
- box_song
- box_folder
- neiro
- modifier
- ura_switch
- diff_sort
- search_box
- dan_transition
- genre_bg
- score_history
- song_select_script
scenes