Esempio n. 1
0
 public StyleState(StyleStateType stateType, BackgroundType backgroundType, string backgroundTextureId, Color backgroundColor, Color textColor)
 {
     _stateType           = stateType;
     _backgroundType      = backgroundType;
     _backgroundTextureId = backgroundTextureId;
     _backgroundColor     = backgroundColor;
     _textColor           = textColor;
 }
Esempio n. 2
0
 public MutableStyleState(StyleStateType stateType, BackgroundType backgroundType, string backgroundTextureId, Color backgroundColor, Color textColor)
 {
     StateType           = stateType;
     BackgroundType      = backgroundType;
     BackgroundTextureId = backgroundTextureId;
     BackgroundColor     = backgroundColor;
     TextColor           = textColor;
 }
Esempio n. 3
0
 public static StyleState ToStyleState(this GUIStyleState guiStyleState, StyleStateType stateType)
 {
     return(new StyleState(stateType, BackgroundType.Texture, guiStyleState.background.ToTextureId(), Color.white, guiStyleState.textColor));
 }