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); }
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; } }
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; } }
public void OnSingleBtnDown(MogoSingleButtonControl btn, int id) { ItemClicked(btn, id); SetCurrentDownButton(btn); }
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; } }
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; } }
public void OnSingleBtnDown(MogoSingleButtonControl btn, int id) { ItemClicked(btn, id); SetCurrentDownButton(btn); }
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); }
public void SetControl(MogoSingleButtonControl control) { m_mogoSingleBtnCtrl = control; }
public void SetControl(MogoSingleButtonControl control) { m_mogoSingleBtnCtrl = control; }