Ejemplo n.º 1
0
 public void Initialize(CommandCenterWindow commandCenterWindow, ListScrolling listScrolling, Mission mission, UIStandardStyleSheet style)
 {
     _commandCenterWindow = commandCenterWindow;
     _listScrolling       = listScrolling;
     _mission             = mission;
     _text.text           = _mission.Name;
     _defaultStyle        = style;
     StyleSheet           = style;
 }
Ejemplo n.º 2
0
        private void AdjustToType(EOfferState state)
        {
            switch (state)
            {
            case EOfferState.Available:
                StyleSheet = _availableStyle;
                break;

            case EOfferState.Bought:
                StyleSheet = _boughtStyle;
                break;

            case EOfferState.Locked:
                StyleSheet = _unavailableStyle;
                break;

            case EOfferState.Unavailable:
                StyleSheet = _unavailableStyle;
                break;

            default:
                break;
            }
        }
Ejemplo n.º 3
0
 public void OnDeselect(BaseEventData eventData)
 {
     StyleSheet = _defaultStyle;
 }
Ejemplo n.º 4
0
 public void OnSelect(BaseEventData eventData)
 {
     StyleSheet = _selectedStyle;
     _listScrolling.MoveViewRequest(transform.localPosition);
     _descriptElement.Raise(new DescriptElementEA(this, null));
 }
Ejemplo n.º 5
0
 public void UpdateStyle(FX.UIStandardStyleSheet style)
 {
     _defaultStyle = style;
 }