Esempio n. 1
0
 public void Add(int id, MogoSingleButtonControl control)
 {
     if (mogoSingleBtnList)
     {
         control.Create(mogoSingleBtnList.transform, dragIconCamera, id, -iconGridSpace * id);
         control.Clicked += OnSingleBtnDown;
         SingleButtonControlList.Add(control);
     }
     else
         TempSingleButtonControlList.Add(id, control);
 }
Esempio n. 2
0
 public void SetCurrentDownButton(MogoSingleButtonControl btn)
 {
     if (m_currentBtnControl == null)
     {
         m_currentBtnControl = btn;
         m_currentBtnControl.IsDown = true;
     }
     else if (m_currentBtnControl.IsDown || btn.Id != m_currentBtnControl.Id)
     {
         m_currentBtnControl.IsDown = false;
         m_currentBtnControl = btn;
         m_currentBtnControl.IsDown = true;
     }
 }   
Esempio n. 3
0
 public void SetCurrentDownButton(int gridId)
 {
     if (mogoSingleBtnList)
     {
         if (gridId < SingleButtonControlList.Count)
         {
             if (m_currentBtnControl != null)
                 m_currentBtnControl.IsDown = false;
             m_currentBtnControl = SingleButtonControlList[gridId];
             m_currentBtnControl.IsDown = true;
         }
     }
     else
     {
         lastSelectedId = gridId;
     }
 }
Esempio n. 4
0
 public void OnSingleBtnDown(MogoSingleButtonControl btn, int id)
 {
     ItemClicked(btn, id);
     SetCurrentDownButton(btn);
 }
Esempio n. 5
0
 public void SetCurrentDownButton(MogoSingleButtonControl btn)
 {
     if (m_currentBtnControl == null)
     {
         m_currentBtnControl = btn;
         m_currentBtnControl.IsDown = true;
     }
     else if (m_currentBtnControl.IsDown || btn.Id != m_currentBtnControl.Id)
     {
         m_currentBtnControl.IsDown = false;
         m_currentBtnControl = btn;
         m_currentBtnControl.IsDown = true;
     }
 }
Esempio n. 6
0
 public void SetCurrentDownButton(int gridId)
 {
     if (mogoSingleBtnList)
     {
         if (gridId < SingleButtonControlList.Count)
         {
             if (m_currentBtnControl != null)
                 m_currentBtnControl.IsDown = false;
             m_currentBtnControl = SingleButtonControlList[gridId];
             m_currentBtnControl.IsDown = true;
         }
     }
     else
     {
         lastSelectedId = gridId;
     }
 }
Esempio n. 7
0
 public void OnSingleBtnDown(MogoSingleButtonControl btn, int id)
 {
     ItemClicked(btn, id);
     SetCurrentDownButton(btn);
 }
Esempio n. 8
0
 public void Add(int id, MogoSingleButtonControl control)
 {
     if (mogoSingleBtnList)
     {
         control.Create(mogoSingleBtnList.transform, dragIconCamera, id, -iconGridSpace * id);
         control.Clicked += OnSingleBtnDown;
         SingleButtonControlList.Add(control);
     }
     else
         TempSingleButtonControlList.Add(id, control);
 }
Esempio n. 9
0
 public void SetControl(MogoSingleButtonControl control)
 {
     m_mogoSingleBtnCtrl = control;
 }
Esempio n. 10
0
 public void SetControl(MogoSingleButtonControl control)
 {
     m_mogoSingleBtnCtrl = control;
 }