Handles the user interface (UI) for displaying and updating year, population, and CO2 data.
More...
Inherits MonoBehaviour.
|
void | SliderChange (System.Single value) |
| Updates the year display based on the slider value.
|
|
void | ChangeYear (int newYear) |
| Changes the displayed year and updates the slider value.
|
|
void | DeactivateSlider () |
| Disables the slider component.
|
|
void | ActivateSlider () |
| Enables the slider component.
|
|
void | ChangeWorldPopulation (string population) |
| Updates the displayed world population.
|
|
void | ChangeCo2Sum (string co2sum) |
| Updates the displayed total CO2 emissions.
|
|
void | ChangePerCapSum (string perCap) |
| Updates the displayed per capita CO2 emissions sum.
|
|
Handles the user interface (UI) for displaying and updating year, population, and CO2 data.
◆ ActivateSlider()
void UIHandler.ActivateSlider |
( |
| ) |
|
Enables the slider component.
◆ ChangeCo2Sum()
void UIHandler.ChangeCo2Sum |
( |
string | co2sum | ) |
|
Updates the displayed total CO2 emissions.
- Parameters
-
co2sum | The total CO2 emissions value as a string. |
◆ ChangePerCapSum()
void UIHandler.ChangePerCapSum |
( |
string | perCap | ) |
|
Updates the displayed per capita CO2 emissions sum.
- Parameters
-
perCap | The per capita CO2 value as a string. |
◆ ChangeWorldPopulation()
void UIHandler.ChangeWorldPopulation |
( |
string | population | ) |
|
Updates the displayed world population.
- Parameters
-
population | The population value as a string. |
◆ ChangeYear()
void UIHandler.ChangeYear |
( |
int | newYear | ) |
|
Changes the displayed year and updates the slider value.
- Parameters
-
newYear | The new year to display. |
◆ DeactivateSlider()
void UIHandler.DeactivateSlider |
( |
| ) |
|
Disables the slider component.
◆ SliderChange()
void UIHandler.SliderChange |
( |
System.Single | value | ) |
|
Updates the year display based on the slider value.
- Parameters
-
value | The slider value representing the year. |
The documentation for this class was generated from the following file: