C# Class RoadNamer.Panels.RoadNamePanel

Inheritance: UIPanel
显示文件 Open project: PropaneDragon/RoadNamer Class Usage Examples

Public Properties

Property Type Description
m_netSegmentId ushort

Protected Properties

Property Type Description
m_UIPadding UnityEngine.RectOffset

Public Methods

Method Description
Awake ( ) : void
Start ( ) : void

Private Methods

Method Description
ColourSelector_eventColorChanged ( UIComponent component, Color32 value ) : void
ColourSelector_eventColorPickerClose ( UIColorField dropdown, UIColorPicker popup, bool &overridden ) : void
CreatePanelComponents ( ) : void
CreateUpdatePanel ( ) : void
M_textField_eventKeyDown ( UIComponent component, UIKeyEventParameter eventParam ) : void
NameRoadButton_eventClicked ( UIComponent component, UIMouseEventParameter eventParam ) : void
RandomNameButton_eventClicked ( UIComponent component, UIMouseEventParameter eventParam ) : void
RoadNamePanel_eventKeyPress ( UIComponent component, UIKeyEventParameter eventParam ) : void
SetRoadData ( ) : void

Gets the colour from the panel and sets it to be rendered/saved

UpdateTextField ( string text ) : void

Sets the panel text field to road data. Converts colours.

Method Details

Awake() public method

public Awake ( ) : void
return void

Start() public method

public Start ( ) : void
return void

Property Details

m_UIPadding protected_oe property

protected RectOffset,UnityEngine m_UIPadding
return UnityEngine.RectOffset

m_netSegmentId public_oe property

public ushort m_netSegmentId
return ushort