Example #1
0
        public void SetArrowStyle(SortedButtonManager.ARROW_INVERSE _Style)
        {
            if (this.m_eArrowState != _Style)
            {
                if (this.m_eArrowState == SortedButtonManager.ARROW_INVERSE.INVERSE)
                {
                    this.m_button.Inverse(INVERSE_MODE.TOP_TO_BOTTOM);
                }
                switch (_Style)
                {
                case SortedButtonManager.ARROW_INVERSE.NONE:
                    this.m_button.SetButtonTextureKey(this.m_strNormalStyle);
                    break;

                case SortedButtonManager.ARROW_INVERSE.NORMAL:
                    this.m_button.SetButtonTextureKey(this.m_strArrowStyle);
                    break;

                case SortedButtonManager.ARROW_INVERSE.INVERSE:
                    TsLog.LogWarning("KKIComment2011/9/7/ : SetArrowStyle ", new object[0]);
                    this.m_button.SetButtonTextureKey(this.m_strArrowStyle);
                    this.m_button.Inverse(INVERSE_MODE.TOP_TO_BOTTOM);
                    break;
                }
                this.m_eArrowState = _Style;
            }
        }
Example #2
0
 public SortedButtonManager.ARROW_INVERSE ButtonStateNext(string key)
 {
     SortedButtonManager.ARROW_INVERSE aRROW_INVERSE = SortedButtonManager.ARROW_INVERSE.NONE;
     if (this.m_ButtonList.ContainsKey(key))
     {
         aRROW_INVERSE = this.m_ButtonList[key].GetNextButtonState();
         this.ChangeButtonState(key, aRROW_INVERSE);
     }
     return(aRROW_INVERSE);
 }
Example #3
0
 public SortedButtonManager.ARROW_INVERSE GetNextButtonState()
 {
     SortedButtonManager.ARROW_INVERSE aRROW_INVERSE = this.m_eArrowState + 1;
     if (aRROW_INVERSE > SortedButtonManager.ARROW_INVERSE.INVERSE)
     {
         aRROW_INVERSE = SortedButtonManager.ARROW_INVERSE.NORMAL;
     }
     else if (aRROW_INVERSE < SortedButtonManager.ARROW_INVERSE.NORMAL)
     {
         aRROW_INVERSE = SortedButtonManager.ARROW_INVERSE.NORMAL;
     }
     return(aRROW_INVERSE);
 }
Example #4
0
 public void ChangeButtonState(string key, SortedButtonManager.ARROW_INVERSE _eArrowState)
 {
     if (this.m_ButtonList.ContainsKey(key))
     {
         foreach (string current in this.m_ButtonList.Keys)
         {
             if (current.Equals(key))
             {
                 this.m_ButtonList[current].SetArrowStyle(_eArrowState);
             }
             else
             {
                 this.m_ButtonList[current].SetArrowStyle(SortedButtonManager.ARROW_INVERSE.NONE);
             }
         }
     }
 }