-
Notifications
You must be signed in to change notification settings - Fork 6
song_info
Two small display classes show the song's title and play-count during gameplay. They are owned by game and rendered in draw_overlay().
Displays the current song number (e.g. "1/3" in a multi-song session) as an outlined text label.
SongNum(int song_num);Creates an OutlinedText from song_num using the song-number font.
| Member | Type | Description |
|---|---|---|
text |
unique_ptr<OutlinedText> |
The rendered song count string |
width |
float |
Text width in pixels; used by callers to align |
height |
float |
Text height in pixels |
void draw(float x, float y, float fade);Draws the song-number text at (x, y) blended by fade (0–1).
Displays the song title and song number together. It appears briefly at the start of a song and fades out.
SongInfo(const string& song_name, int genre);Creates the OutlinedText title and a SongNum, then starts a FadeAnimation that controls the overall visibility.
| Member | Type | Description |
|---|---|---|
song_name |
string |
The song title string |
genre |
int |
Genre index; selects the genre-coloured text style |
fade |
FadeAnimation* |
Controls the fade-in and fade-out timing |
song_title |
unique_ptr<OutlinedText> |
The song title rendered as outlined text |
song_num |
unique_ptr<SongNum> |
The song count display |
void update(double current_ms);Advances the fade animation.
void draw();Draws song_title and song_num at their configured positions, multiplied by the current fade value.
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