-
Notifications
You must be signed in to change notification settings - Fork 6
nameplate
Nameplate draws the player identity card showing a name, title, dan emblem, and title background frame. It reads its layout from global_tex's skin config and supports gold dan emblems and animated rainbow title frames.
Nameplate(std::string name, std::string title, PlayerNum player_num, int dan, bool is_gold, bool is_rainbow, int title_bg);Creates OutlinedText objects for the name and title at sizes defined in SC::NAMEPLATE_TEXT_NAME and SC::NAMEPLATE_TEXT_TITLE. Retrieves the rainbow frame animation (animation ID 12) from global_tex.
dan is the index into the dan emblem sprite sheet, or -1 if no emblem should be shown. title_bg selects the title background frame: 0 = Red, 1 = Blue, 2 = Wood, 3 = Purple, 4 = Gold.
| Member | Type | Description |
|---|---|---|
dan_index |
int |
Dan emblem frame index, or -1 for none |
player_num |
PlayerNum |
Which player this nameplate belongs to |
is_gold |
bool |
Whether to use the gold variant of the dan emblem |
is_rainbow |
bool |
Whether the title frame animates through rainbow colors |
title_bg |
int |
Title background frame index |
void update(double current_ms);Advances the rainbow frame animation.
void draw(float x, float y, float fade = 1.0);Draws the nameplate at (x, y). If player_num is AI, draws only the AI placeholder. Otherwise draws the title background frame (or animated rainbow frame), outline, dan emblem (if present), player number indicator, name, and title. Name and title are clamped to fit within the frame width using x2 clipping.
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