Revize 2a7f543a
Přidáno uživatelem Zuzana Káčereková před téměř 4 roky(ů)
Client/Client/Assets/Scripts/UI/DatePanel.cs | ||
---|---|---|
8 | 8 |
{ |
9 | 9 |
public DateTimeManager dateTimeManager; |
10 | 10 |
public AnimationPanel animationPanel; |
11 |
public RushManager rushManager; |
|
11 | 12 |
|
12 | 13 |
public Toggle endTimeToggle; |
13 | 14 |
public Toggle weatherToggle; |
... | ... | |
101 | 102 |
endDate.hour = startDate.hour; |
102 | 103 |
} |
103 | 104 |
|
104 |
animationPanel.gameObject.SetActive(true);
|
|
105 |
animationPanel.gameObject.SetActive(endTimeToggle.isOn);
|
|
105 | 106 |
dateTimeManager.SetDates(startDate, startDate, endDate); |
106 | 107 |
setDate.gameObject.SetActive(false); |
107 | 108 |
resetDate.gameObject.SetActive(true); |
109 |
|
|
110 |
// HANDLE SETTING THE WEATHER |
|
111 |
rushManager.CreateRequest(startDate, (endTimeToggle.isOn) ? endDate : null); |
|
112 |
|
|
108 | 113 |
OnExitButtonClicked(); |
109 | 114 |
} |
110 | 115 |
|
111 | 116 |
public void OnResetDateButtonPressed() |
112 | 117 |
{ |
113 | 118 |
dateTimeManager.ResetDate(); |
114 |
animationPanel.Reset(); |
|
119 |
animationPanel.ResetPanel();
|
|
115 | 120 |
animationPanel.gameObject.SetActive(false); |
116 | 121 |
setDate.gameObject.SetActive(true); |
117 | 122 |
resetDate.gameObject.SetActive(false); |
123 |
rushManager.ResetRush(); |
|
118 | 124 |
} |
119 | 125 |
|
120 | 126 |
private bool IsValid(string text) |
Také k dispozici: Unified diff
Re #8829 Added heatmap visualization