feat: polish result screen UI

This commit is contained in:
2026-05-29 00:51:32 +09:00
parent b46ccddbdb
commit fb59fc36f7
2 changed files with 39 additions and 30 deletions
+26 -26
View File
@@ -225,7 +225,7 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 0.01673192, g: 0.29524884, b: 0.4433962, a: 0.98039216}
m_Color: {r: 0.01673192, g: 0.29524884, b: 0.4433962, a: 0.82}
m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
@@ -393,9 +393,9 @@ MonoBehaviour:
m_Transition: 1
m_Colors:
m_NormalColor: {r: 1, g: 1, b: 1, a: 1}
m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1}
m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
m_HighlightedColor: {r: 0.72, g: 0.92, b: 1, a: 1}
m_PressedColor: {r: 0.55, g: 0.78, b: 0.9, a: 1}
m_SelectedColor: {r: 0.72, g: 0.92, b: 1, a: 1}
m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608}
m_ColorMultiplier: 1
m_FadeDuration: 0.1
@@ -425,10 +425,10 @@ MonoBehaviour:
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_Color: {r: 0.06, g: 0.12, b: 0.22, a: 0.72}
m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
@@ -2122,9 +2122,9 @@ MonoBehaviour:
m_Transition: 1
m_Colors:
m_NormalColor: {r: 1, g: 1, b: 1, a: 1}
m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1}
m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
m_HighlightedColor: {r: 0.72, g: 0.92, b: 1, a: 1}
m_PressedColor: {r: 0.55, g: 0.78, b: 0.9, a: 1}
m_SelectedColor: {r: 0.72, g: 0.92, b: 1, a: 1}
m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608}
m_ColorMultiplier: 1
m_FadeDuration: 0.1
@@ -2154,10 +2154,10 @@ MonoBehaviour:
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_Color: {r: 0.06, g: 0.12, b: 0.22, a: 0.72}
m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
@@ -2731,9 +2731,9 @@ MonoBehaviour:
m_Transition: 1
m_Colors:
m_NormalColor: {r: 1, g: 1, b: 1, a: 1}
m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1}
m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
m_HighlightedColor: {r: 0.72, g: 0.92, b: 1, a: 1}
m_PressedColor: {r: 0.55, g: 0.78, b: 0.9, a: 1}
m_SelectedColor: {r: 0.72, g: 0.92, b: 1, a: 1}
m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608}
m_ColorMultiplier: 1
m_FadeDuration: 0.1
@@ -2763,10 +2763,10 @@ MonoBehaviour:
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_Color: {r: 0.06, g: 0.12, b: 0.22, a: 0.72}
m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
@@ -4122,7 +4122,7 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 0.01673192, g: 0.29524884, b: 0.4433962, a: 0.98039216}
m_Color: {r: 0.01673192, g: 0.29524884, b: 0.4433962, a: 0.82}
m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
@@ -4513,9 +4513,9 @@ MonoBehaviour:
m_Transition: 1
m_Colors:
m_NormalColor: {r: 1, g: 1, b: 1, a: 1}
m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1}
m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
m_HighlightedColor: {r: 0.72, g: 0.92, b: 1, a: 1}
m_PressedColor: {r: 0.55, g: 0.78, b: 0.9, a: 1}
m_SelectedColor: {r: 0.72, g: 0.92, b: 1, a: 1}
m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608}
m_ColorMultiplier: 1
m_FadeDuration: 0.1
@@ -4545,10 +4545,10 @@ MonoBehaviour:
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_Color: {r: 0.06, g: 0.12, b: 0.22, a: 0.72}
m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
@@ -15,6 +15,7 @@ namespace VRBeats
private TextMeshProUGUI rankDepthText = null;
private TextMeshProUGUI rankMainText = null;
private TextMeshProUGUI resultScoreText = null;
private TextMeshProUGUI resultAccuracyText = null;
private TextMeshProUGUI resultComboText = null;
private void Awake()
@@ -70,6 +71,7 @@ namespace VRBeats
rankDepthText == null ||
rankMainText == null ||
resultScoreText == null ||
resultAccuracyText == null ||
resultComboText == null)
return;
@@ -82,7 +84,10 @@ namespace VRBeats
rankDepthText.color = depthColor;
rankMainText.text = rank;
rankMainText.color = mainColor;
resultScoreText.text = scoreManager.CurrentScore.ToString("N0");
resultScoreText.text =
$"<size=48%><color=#A0C8FF>SCORE</color></size>\n{scoreManager.CurrentScore:N0}";
resultAccuracyText.text =
$"<size=70%><color=#A0C8FF>ACCURACY</color></size> {scoreManager.AccuracyPercent:0.0}%";
resultComboText.text = $"MAX COMBO {scoreManager.MaxCombo}";
}
@@ -148,12 +153,15 @@ namespace VRBeats
new Vector2(-170.0f, 10.0f), new Vector2(200.0f, 200.0f), 14.0f,
Color.white, TextAlignmentOptions.Midline);
// Score and combo right side
// Score, accuracy, combo right side
resultScoreText = MakeTmpLabel(root.transform, "ResultScoreText",
new Vector2(70.0f, 35.0f), new Vector2(260.0f, 80.0f), 5.5f,
new Vector2(70.0f, 58.0f), new Vector2(260.0f, 90.0f), 5.5f,
Color.white, TextAlignmentOptions.MidlineLeft);
resultAccuracyText = MakeTmpLabel(root.transform, "ResultAccuracyText",
new Vector2(70.0f, 0.0f), new Vector2(260.0f, 46.0f), 3.4f,
new Color(0.84f, 0.97f, 1.0f, 0.9f), TextAlignmentOptions.MidlineLeft);
resultComboText = MakeTmpLabel(root.transform, "ResultComboText",
new Vector2(70.0f, -35.0f), new Vector2(260.0f, 50.0f), 3.8f,
new Vector2(70.0f, -52.0f), new Vector2(260.0f, 44.0f), 3.0f,
new Color(0.84f, 0.97f, 1.0f, 1.0f), TextAlignmentOptions.MidlineLeft);
}
@@ -174,6 +182,7 @@ namespace VRBeats
tmp.alignment = align;
tmp.overflowMode = TextOverflowModes.Overflow;
tmp.textWrappingMode = TextWrappingModes.NoWrap;
tmp.lineSpacing = -8.0f;
tmp.raycastTarget = false;
if (scoreText != null && scoreText.font != null)