-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
ResultsScreenText.cs
62 lines (60 loc) · 1.68 KB
/
ResultsScreenText.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
using BeatSaberMarkupLanguage.Attributes;
using BeatSaberMarkupLanguage.Components;
using TMPro;
namespace PerfectionDisplay
{
class ResultsScreenText : NotifiableSingleton<ResultsScreenText>
{
[UIValue("modal-enabled")]
public bool ModalEnabled => Settings.instance.resultsButton;
private string names = "Placeholder";
[UIValue("names")]
public string Names
{
get => names;
set
{
names = value;
NotifyPropertyChanged();
}
}
private string counts = "Placeholder";
[UIValue("counts")]
public string Counts
{
get => counts;
set
{
counts = value;
NotifyPropertyChanged();
}
}
private string percents = "Placeholder";
[UIValue("percents")]
public string Percents
{
get => percents;
set
{
percents = value;
NotifyPropertyChanged();
}
}
[UIComponent("name-mesh")]
private TextMeshProUGUI nameMesh;
[UIComponent("count-mesh")]
private TextMeshProUGUI countMesh;
[UIComponent("percent-mesh")]
private TextMeshProUGUI percentMesh;
[UIAction("#post-parse")]
private void PostParse()
{
nameMesh.lineSpacing = -15f;
nameMesh.paragraphSpacing = -15f;
countMesh.lineSpacing = -15f;
countMesh.paragraphSpacing = -15f;
percentMesh.lineSpacing = -15f;
percentMesh.paragraphSpacing = -15f;
}
}
}