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