ranks!
This commit is contained in:
1 parent
cffe1930a0
commit
9f5ce196cc
9 files changed
+90
-17
No files matched your search
@@ -16,11 +16,13 @@ public class TimingUI : MonoBehaviour {
|
||||
VisualElement timerSectors;
|
||||
Label timerTime;
|
||||
Label timerPb;
|
||||
Label timerPosition;
|
||||
|
||||
VisualElement notice;
|
||||
VisualElement noticeSectors;
|
||||
VisualElement noticeDiff;
|
||||
Label noticeTime;
|
||||
Label noticePosition;
|
||||
|
||||
void OnEnable() {
|
||||
Init();
|
||||
@@ -42,7 +44,12 @@ public class TimingUI : MonoBehaviour {
|
||||
timerTime = uiDocument.rootVisualElement.Q<Label>("timerTime");
|
||||
timerPb = uiDocument.rootVisualElement.Q<Label>("timerPb");
|
||||
|
||||
noticePosition = uiDocument.rootVisualElement.Q<Label>("noticePosition");
|
||||
timerPosition = uiDocument.rootVisualElement.Q<Label>("timerPosition");
|
||||
|
||||
timerPb.text = "-";
|
||||
noticePosition.text = "- / -";
|
||||
timerPosition.text = "- / -";
|
||||
|
||||
notice.AddToClassList("hidden");
|
||||
}
|
||||
@@ -79,9 +86,13 @@ public class TimingUI : MonoBehaviour {
|
||||
|
||||
timerSectors.Add(l);
|
||||
}
|
||||
|
||||
noticePosition.text = timing.Position;
|
||||
timerPosition.text = timing.Position;
|
||||
}
|
||||
|
||||
public void ShowRecentLap(Lap lap) {
|
||||
Init();
|
||||
timer.AddToClassList("hidden");
|
||||
notice.RemoveFromClassList("hidden");
|
||||
|
||||
@@ -97,6 +108,7 @@ public class TimingUI : MonoBehaviour {
|
||||
}
|
||||
|
||||
public void HideRecentLap() {
|
||||
Init();
|
||||
timer.RemoveFromClassList("hidden");
|
||||
notice.AddToClassList("hidden");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user