settable (one-liner) rating screen text
This commit is contained in:
parent
bb1d1d635a
commit
4b65613f44
|
|
@ -577,15 +577,17 @@ MonoBehaviour:
|
||||||
m_lineSpacingMax: 0
|
m_lineSpacingMax: 0
|
||||||
m_paragraphSpacing: 0
|
m_paragraphSpacing: 0
|
||||||
m_charWidthMaxAdj: 0
|
m_charWidthMaxAdj: 0
|
||||||
m_enableWordWrapping: 1
|
m_TextWrappingMode: 1
|
||||||
m_wordWrappingRatios: 0.4
|
m_wordWrappingRatios: 0.4
|
||||||
m_overflowMode: 0
|
m_overflowMode: 0
|
||||||
m_linkedTextComponent: {fileID: 0}
|
m_linkedTextComponent: {fileID: 0}
|
||||||
parentLinkedComponent: {fileID: 0}
|
parentLinkedComponent: {fileID: 0}
|
||||||
m_enableKerning: 1
|
m_enableKerning: 1
|
||||||
|
m_ActiveFontFeatures: 6e72656b
|
||||||
m_enableExtraPadding: 0
|
m_enableExtraPadding: 0
|
||||||
checkPaddingRequired: 0
|
checkPaddingRequired: 0
|
||||||
m_isRichText: 1
|
m_isRichText: 1
|
||||||
|
m_EmojiFallbackSupport: 1
|
||||||
m_parseCtrlCharacters: 1
|
m_parseCtrlCharacters: 1
|
||||||
m_isOrthographic: 1
|
m_isOrthographic: 1
|
||||||
m_isCullingEnabled: 0
|
m_isCullingEnabled: 0
|
||||||
|
|
@ -836,5 +838,17 @@ MonoBehaviour:
|
||||||
label: Rating Screen Text
|
label: Rating Screen Text
|
||||||
isReadOnly: 0
|
isReadOnly: 0
|
||||||
- tag: subheader
|
- 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
|
isReadOnly: 0
|
||||||
|
|
|
||||||
|
|
@ -762,7 +762,7 @@ MonoBehaviour:
|
||||||
label: Remix Information
|
label: Remix Information
|
||||||
isReadOnly: 0
|
isReadOnly: 0
|
||||||
- tag: subheader
|
- tag: subheader
|
||||||
label: Enter information about your remix here.
|
label: Enter information about your remix.
|
||||||
isReadOnly: 0
|
isReadOnly: 0
|
||||||
- tag: remixtitle
|
- tag: remixtitle
|
||||||
label: Remix Title
|
label: Remix Title
|
||||||
|
|
|
||||||
|
|
@ -11776,10 +11776,10 @@ RectTransform:
|
||||||
m_Father: {fileID: 1475451633}
|
m_Father: {fileID: 1475451633}
|
||||||
m_RootOrder: 0
|
m_RootOrder: 0
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
m_AnchorMin: {x: 0, y: 1}
|
m_AnchorMin: {x: 0, y: 0}
|
||||||
m_AnchorMax: {x: 0, y: 1}
|
m_AnchorMax: {x: 1, y: 1}
|
||||||
m_AnchoredPosition: {x: 611, y: -58.60666}
|
m_AnchoredPosition: {x: 0, y: 0}
|
||||||
m_SizeDelta: {x: 1222, y: 117.21333}
|
m_SizeDelta: {x: 0, y: 0}
|
||||||
m_Pivot: {x: 0.5, y: 0.5}
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
--- !u!114 &1702256962
|
--- !u!114 &1702256962
|
||||||
MonoBehaviour:
|
MonoBehaviour:
|
||||||
|
|
|
||||||
|
|
@ -108,12 +108,12 @@ namespace HeavenStudio
|
||||||
barSlider.fillRect.GetComponent<Image>().color = barColourNg;
|
barSlider.fillRect.GetComponent<Image>().color = barColourNg;
|
||||||
|
|
||||||
// temp
|
// temp
|
||||||
twoMessage = true;
|
twoMessage = false;
|
||||||
// judgementInfo = new()
|
// judgementInfo = new()
|
||||||
// {
|
// {
|
||||||
// finalScore = 0.79,
|
// finalScore = 0.79,
|
||||||
// };
|
// };
|
||||||
header.text = "Rhythm League Notes";
|
header.text = playedBeatmap != null ? playedBeatmap["resultcaption"] : "Rhythm League Notes";
|
||||||
// end temp
|
// end temp
|
||||||
|
|
||||||
if (twoMessage)
|
if (twoMessage)
|
||||||
|
|
@ -137,7 +137,18 @@ namespace HeavenStudio
|
||||||
{
|
{
|
||||||
if (twoMessage) return;
|
if (twoMessage) return;
|
||||||
audioSource.PlayOneShot(messageLast);
|
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()
|
public void ShowMessage1()
|
||||||
|
|
|
||||||
|
|
@ -265,7 +265,7 @@ namespace HeavenStudio
|
||||||
settingsPanel.SwitchSettingsDialog();
|
settingsPanel.SwitchSettingsDialog();
|
||||||
SoundByte.PlayOneShot("ui/UISelect");
|
SoundByte.PlayOneShot("ui/UISelect");
|
||||||
// notes:
|
// 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
|
// adding the attract screen will fix this since we'd need to add that prefab for it anyways
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -133,8 +133,8 @@ namespace HeavenStudio.Common
|
||||||
if (t.TryGetComponent<Collider2D>(out Collider2D c) && c.OverlapPoint(PlayerInput.GetInputController(1).GetPointer()))
|
if (t.TryGetComponent<Collider2D>(out Collider2D c) && c.OverlapPoint(PlayerInput.GetInputController(1).GetPointer()))
|
||||||
{
|
{
|
||||||
int idx = t.GetSiblingIndex();
|
int idx = t.GetSiblingIndex();
|
||||||
optionSelected = idx;
|
|
||||||
ChooseOption((Options)idx, idx != optionSelected);
|
ChooseOption((Options)idx, idx != optionSelected);
|
||||||
|
optionSelected = idx;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue