|
@@ -133,46 +133,25 @@ namespace GFGGame
|
|
|
|
|
|
Timers.inst.AddUpdate(CheckGuide);
|
|
Timers.inst.AddUpdate(CheckGuide);
|
|
}
|
|
}
|
|
- // private string GetListItemResource(int index)
|
|
|
|
- // {
|
|
|
|
- // if (index == 0 && _activeBoxId > 0)
|
|
|
|
- // {
|
|
|
|
- // return "UI://LuckyBox/ComBox";
|
|
|
|
- // }
|
|
|
|
- // else
|
|
|
|
- // {
|
|
|
|
- // int boxId = LuckyBoxDataManager.Instance.luckyBoxIds[index];
|
|
|
|
- // return string.Format("UI://LuckyBox/ComBox_{0}", boxId);
|
|
|
|
- // }
|
|
|
|
- // }
|
|
|
|
|
|
+
|
|
private void RenderListBgItem(int index, GObject obj)
|
|
private void RenderListBgItem(int index, GObject obj)
|
|
{
|
|
{
|
|
int boxId = LuckyBoxDataManager.Instance.luckyBoxIds[index];
|
|
int boxId = LuckyBoxDataManager.Instance.luckyBoxIds[index];
|
|
- // LuckyBoxCfg cfg = LuckyBoxCfgArray.Instance.GetCfg(boxId);
|
|
|
|
- // LuckyBoxDataManager.Instance.InitData(boxId);
|
|
|
|
-
|
|
|
|
- // UI_ComBox1 comBox = UI_ComBox1.Proxy(obj);
|
|
|
|
-
|
|
|
|
|
|
|
|
- // UI_ComBox1.ProxyEnd();
|
|
|
|
}
|
|
}
|
|
|
|
|
|
private void OnBtnLeftClick()
|
|
private void OnBtnLeftClick()
|
|
{
|
|
{
|
|
int index = _curIndex - 1;
|
|
int index = _curIndex - 1;
|
|
- // _curIndex--;
|
|
|
|
index = Mathf.Max(0, index);
|
|
index = Mathf.Max(0, index);
|
|
_ui.m_listBg.ScrollToView(index, true);
|
|
_ui.m_listBg.ScrollToView(index, true);
|
|
- // OnListBgScroll();
|
|
|
|
}
|
|
}
|
|
|
|
|
|
private void OnBtnRightClick()
|
|
private void OnBtnRightClick()
|
|
{
|
|
{
|
|
int index = _curIndex + 1;
|
|
int index = _curIndex + 1;
|
|
- // _curIndex++;
|
|
|
|
index = Mathf.Min(_ui.m_listBg.numItems - 1, index);
|
|
index = Mathf.Min(_ui.m_listBg.numItems - 1, index);
|
|
_ui.m_listBg.ScrollToView(index, true);
|
|
_ui.m_listBg.ScrollToView(index, true);
|
|
- // OnListBgScroll();
|
|
|
|
}
|
|
}
|
|
|
|
|
|
private void OnListBgScroll()
|
|
private void OnListBgScroll()
|