C# Class CSL_Traffic.UI.RoadCustomizerPanel

Inheritance: UnityEngine.MonoBehaviour
Show file Open project: Katalyst6/CSL.TransitAddonMod

Public Properties

Property Type Description
m_atlas UITextureAtlas

Public Methods

Method Description
DisableIcons ( ) : void
EnableIcons ( ) : void
PopulateAssets ( ) : void
RefreshPanel ( ) : void
SetPanel ( Panel panel ) : void
Update ( ) : void

Protected Methods

Method Description
CreateButton ( string name, string tooltip, string baseIconName, int index, UITextureAtlas atlas, UIComponent tooltipBox, bool enabled, bool grouped ) : UIButton
OnButtonClicked ( UIButton btn ) : void
OnClick ( UIComponent comp, UIMouseEventParameter p ) : void
SetSpeedButtonsThumbnails ( UIButton btn ) : void
SetVehicleButtonsThumbnails ( UIButton btn ) : void
SpawnEntry ( string name, string tooltip, string thumbnail, UITextureAtlas atlas, bool enabled, bool grouped ) : UIButton

Private Methods

Method Description
Awake ( ) : void
EmergencyLights ( UIButton btn ) : IEnumerator
OnDisable ( ) : void
OnEnable ( ) : void

Method Details

CreateButton() protected method

protected CreateButton ( string name, string tooltip, string baseIconName, int index, UITextureAtlas atlas, UIComponent tooltipBox, bool enabled, bool grouped ) : UIButton
name string
tooltip string
baseIconName string
index int
atlas UITextureAtlas
tooltipBox UIComponent
enabled bool
grouped bool
return UIButton

DisableIcons() public method

public DisableIcons ( ) : void
return void

EnableIcons() public method

public EnableIcons ( ) : void
return void

OnButtonClicked() protected method

protected OnButtonClicked ( UIButton btn ) : void
btn UIButton
return void

OnClick() protected method

protected OnClick ( UIComponent comp, UIMouseEventParameter p ) : void
comp UIComponent
p UIMouseEventParameter
return void

PopulateAssets() public method

public PopulateAssets ( ) : void
return void

RefreshPanel() public method

public RefreshPanel ( ) : void
return void

SetPanel() public method

public SetPanel ( Panel panel ) : void
panel Panel
return void

SetSpeedButtonsThumbnails() protected method

protected SetSpeedButtonsThumbnails ( UIButton btn ) : void
btn UIButton
return void

SetVehicleButtonsThumbnails() protected method

protected SetVehicleButtonsThumbnails ( UIButton btn ) : void
btn UIButton
return void

SpawnEntry() protected method

protected SpawnEntry ( string name, string tooltip, string thumbnail, UITextureAtlas atlas, bool enabled, bool grouped ) : UIButton
name string
tooltip string
thumbnail string
atlas UITextureAtlas
enabled bool
grouped bool
return UIButton

Update() public method

public Update ( ) : void
return void

Property Details

m_atlas public property

public UITextureAtlas m_atlas
return UITextureAtlas