mirror of
https://github.com/rakuri255/UltraSinger.git
synced 2026-11-20 13:07:52 +09:00
- Added color to total score
This commit is contained in:
1 parent
0df81c4c5a
commit
ce3f44fde1
2 files changed
+7
-2
No files matched your search
@@ -21,10 +21,15 @@ def print_red_highlighted_text(text):
|
||||
return Bcolors.RED + text + Bcolors.ENDC
|
||||
|
||||
|
||||
def print_cyan_highlighted_text(text):
|
||||
return Bcolors.Cyan + text + Bcolors.ENDC
|
||||
|
||||
|
||||
class Bcolors:
|
||||
BLUE = '\033[94m'
|
||||
RED = '\033[91m'
|
||||
LightBlue = '\033[96m'
|
||||
Cyan = '\033[36m'
|
||||
Gold = '\033[93m'
|
||||
Underline = '\033[4m'
|
||||
ENDC = '\033[0m'
|
||||
@@ -1,7 +1,7 @@
|
||||
from moduls.Midi.midi_creator import create_midi_note_from_pitched_data
|
||||
from moduls.Ultrastar.ultrastar_converter import get_start_time_from_ultrastar, get_end_time_from_ultrastar, \
|
||||
ultrastar_note_to_midi_note
|
||||
from moduls.Log import PRINT_ULTRASTAR, print_blue_highlighted_text, print_gold_highlighted_text, print_light_blue_highlighted_text, print_underlined_text
|
||||
from moduls.Log import PRINT_ULTRASTAR, print_blue_highlighted_text, print_gold_highlighted_text, print_light_blue_highlighted_text, print_underlined_text, print_cyan_highlighted_text
|
||||
import librosa
|
||||
|
||||
# Todo: LineBonus
|
||||
@@ -40,7 +40,7 @@ def print_score(points):
|
||||
line_bonus = 0
|
||||
golden = points.golden_notes + points.golden_rap
|
||||
score = notes + line_bonus + golden
|
||||
print(PRINT_ULTRASTAR + " Total: {}, notes: {}, line bonus: {}, golden notes: {}".format(score, print_blue_highlighted_text(str(round(notes))), print_light_blue_highlighted_text(str(round(line_bonus))), print_gold_highlighted_text(str(round(golden)))))
|
||||
print(PRINT_ULTRASTAR + " Total: {}, notes: {}, line bonus: {}, golden notes: {}".format(print_cyan_highlighted_text(str(round(score))), print_blue_highlighted_text(str(round(notes))), print_light_blue_highlighted_text(str(round(line_bonus))), print_gold_highlighted_text(str(round(golden)))))
|
||||
|
||||
|
||||
def print_score_calculation(pitched_data, ultrastar_class):
|
||||
|
||||
Reference in new issue
Block a user