settable (one-liner) rating screen text

This commit is contained in:
minenice55 2023-12-03 14:02:49 -05:00
parent bb1d1d635a
commit 4b65613f44
6 changed files with 37 additions and 12 deletions

View file

@ -577,15 +577,17 @@ MonoBehaviour:
m_lineSpacingMax: 0
m_paragraphSpacing: 0
m_charWidthMaxAdj: 0
m_enableWordWrapping: 1
m_TextWrappingMode: 1
m_wordWrappingRatios: 0.4
m_overflowMode: 0
m_linkedTextComponent: {fileID: 0}
parentLinkedComponent: {fileID: 0}
m_enableKerning: 1
m_ActiveFontFeatures: 6e72656b
m_enableExtraPadding: 0
checkPaddingRequired: 0
m_isRichText: 1
m_EmojiFallbackSupport: 1
m_parseCtrlCharacters: 1
m_isOrthographic: 1
m_isCullingEnabled: 0
@ -836,5 +838,17 @@ MonoBehaviour:
label: Rating Screen Text
isReadOnly: 0
- tag: subheader
label: Coming Soon!
label: Change the messages shown on the rating screen.
isReadOnly: 0
- tag: resultcaption
label: Result Screen Header
isReadOnly: 0
- tag: resultcommon_hi
label: Superb Message
isReadOnly: 0
- tag: resultcommon_ok
label: OK Message
isReadOnly: 0
- tag: resultcommon_ng
label: Try Again Message
isReadOnly: 0

View file

@ -762,7 +762,7 @@ MonoBehaviour:
label: Remix Information
isReadOnly: 0
- tag: subheader
label: Enter information about your remix here.
label: Enter information about your remix.
isReadOnly: 0
- tag: remixtitle
label: Remix Title

View file

@ -11776,10 +11776,10 @@ RectTransform:
m_Father: {fileID: 1475451633}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 611, y: -58.60666}
m_SizeDelta: {x: 1222, y: 117.21333}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1702256962
MonoBehaviour:

View file

@ -108,12 +108,12 @@ namespace HeavenStudio
barSlider.fillRect.GetComponent<Image>().color = barColourNg;
// temp
twoMessage = true;
twoMessage = false;
// judgementInfo = new()
// {
// finalScore = 0.79,
// };
header.text = "Rhythm League Notes";
header.text = playedBeatmap != null ? playedBeatmap["resultcaption"] : "Rhythm League Notes";
// end temp
if (twoMessage)
@ -137,7 +137,18 @@ namespace HeavenStudio
{
if (twoMessage) return;
audioSource.PlayOneShot(messageLast);
message0.text = "single line message";
if (judgementInfo.finalScore < Minigame.rankOkThreshold)
{
message0.text = playedBeatmap != null ? playedBeatmap["resultcommon_ng"] : "Try harder next time.";
}
else if (judgementInfo.finalScore < Minigame.rankHiThreshold)
{
message0.text = playedBeatmap != null ? playedBeatmap["resultcommon_ok"] : "Eh. Passable.";
}
else
{
message0.text = playedBeatmap != null ? playedBeatmap["resultcommon_hi"] : "Good rhythm.";
}
}
public void ShowMessage1()

View file

@ -265,7 +265,7 @@ namespace HeavenStudio
settingsPanel.SwitchSettingsDialog();
SoundByte.PlayOneShot("ui/UISelect");
// notes:
// gameplay settings currently don't work due to the overlay pereview requiring the screen composition setup from a gameplay prefab
// gameplay settings currently don't work due to the overlay preview requiring the screen composition setup from a gameplay prefab
// adding the attract screen will fix this since we'd need to add that prefab for it anyways
}

View file

@ -133,8 +133,8 @@ namespace HeavenStudio.Common
if (t.TryGetComponent<Collider2D>(out Collider2D c) && c.OverlapPoint(PlayerInput.GetInputController(1).GetPointer()))
{
int idx = t.GetSiblingIndex();
optionSelected = idx;
ChooseOption((Options)idx, idx != optionSelected);
optionSelected = idx;
break;
}
}