TeamDropdown - ORF-4450/PitScouting GitHub Wiki
dropdown
Dropdown
Dropdown component of GameObject.
ETD
EventTeamData
EventTeamData script to pull data from.
DS
DataStorage
DataStorage script to push data to.
Functions
Start()
Start()
calls refresh
dropdown.AddOptions(new List<Dropdown.OptionData>() { new Dropdown.OptionData("ERR - Please Sync") }); (unsure what to write here)
It refreshes the shown value of the dropdown
It calls addData in DataStorage with
key: "Teamnumber"
value: "0"
overwrite: true
DI: the object this component is on
LateUpdate()
LateUpdate()
If the text in dropdown is "ERR - Please Sync" it returns
It creates a new string Teamnumber and sets it to dropdown.captionText.text.Split(' ')[0]
It calls addData in DataStorage
key: "Teamnumber"
value: whatever teamNumber.Split(' ')[0] does
overwrite: true
clear()
clear()
It calls ClearOptions() and RefreshShownValue() from dropdown
refresh()
refresh()
changeData
changeData(object)
It is an override to the original changeData(object), and it returns automatically
clearData()
It is an override to the original clearData(), and it calls refresh