Vis2_CO2Data
 
Loading...
Searching...
No Matches
UIHandler Class Reference

Handles the user interface (UI) for displaying and updating year, population, and CO2 data. More...

Inherits MonoBehaviour.

Public Member Functions

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.
 

Detailed Description

Handles the user interface (UI) for displaying and updating year, population, and CO2 data.

Member Function Documentation

◆ ActivateSlider()

void UIHandler.ActivateSlider ( )

Enables the slider component.

◆ ChangeCo2Sum()

void UIHandler.ChangeCo2Sum ( string co2sum)

Updates the displayed total CO2 emissions.

Parameters
co2sumThe total CO2 emissions value as a string.

◆ ChangePerCapSum()

void UIHandler.ChangePerCapSum ( string perCap)

Updates the displayed per capita CO2 emissions sum.

Parameters
perCapThe per capita CO2 value as a string.

◆ ChangeWorldPopulation()

void UIHandler.ChangeWorldPopulation ( string population)

Updates the displayed world population.

Parameters
populationThe population value as a string.

◆ ChangeYear()

void UIHandler.ChangeYear ( int newYear)

Changes the displayed year and updates the slider value.

Parameters
newYearThe 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
valueThe slider value representing the year.

The documentation for this class was generated from the following file: