|
@@ -45,7 +45,6 @@ namespace GFGGame
|
|
_ui.m_loaBg.url = ResPathUtil.GetBgImgPath("zxian_bg3");
|
|
_ui.m_loaBg.url = ResPathUtil.GetBgImgPath("zxian_bg3");
|
|
|
|
|
|
_ui.m_listChapter.scrollPane.onScroll.Add(DoSpecialEffect);//滚动时派发事件
|
|
_ui.m_listChapter.scrollPane.onScroll.Add(DoSpecialEffect);//滚动时派发事件
|
|
- //_ui.m_listChapter.scrollPane.onScroll.Add(SetItemColorCallBack);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
}
|
|
@@ -273,7 +272,7 @@ namespace GFGGame
|
|
UI_ListChapterItem.ProxyEnd();
|
|
UI_ListChapterItem.ProxyEnd();
|
|
}
|
|
}
|
|
_ui.m_listChapter.ScrollToView(currentChapterIndex);
|
|
_ui.m_listChapter.ScrollToView(currentChapterIndex);
|
|
- int childrenCount = _ui.m_listChapter.numChildren;
|
|
|
|
|
|
+ int childrenCount = _ui.m_listChapter.numChildren - 1;
|
|
if (currentChapterIndex == childrenCount - 1)
|
|
if (currentChapterIndex == childrenCount - 1)
|
|
{
|
|
{
|
|
_time = currentChapterIndex - 2;
|
|
_time = currentChapterIndex - 2;
|
|
@@ -287,7 +286,7 @@ namespace GFGGame
|
|
_time = currentChapterIndex;
|
|
_time = currentChapterIndex;
|
|
}
|
|
}
|
|
_timeCount = 0;
|
|
_timeCount = 0;
|
|
- Timers.inst.Add(0.1f, _ui.m_listChapter.numChildren, OnTimerUpdate, 1);
|
|
|
|
|
|
+ Timers.inst.Add(0.1f, _ui.m_listChapter.numChildren , OnTimerUpdate, 1);
|
|
}
|
|
}
|
|
private void CheckGuide(object param)
|
|
private void CheckGuide(object param)
|
|
{
|
|
{
|
|
@@ -357,7 +356,7 @@ namespace GFGGame
|
|
listItem.m_content.m_compPic.m_pic.color = new Color(0.4f, 0.4f, 0.4f, 1.000f);
|
|
listItem.m_content.m_compPic.m_pic.color = new Color(0.4f, 0.4f, 0.4f, 1.000f);
|
|
item.SetScale(1.0f, 1.0f);
|
|
item.SetScale(1.0f, 1.0f);
|
|
}
|
|
}
|
|
- float distanceX = ((1 - (listCenter - itemCenter)) / itemWidth) * 0.05f;//使放大动画有渐进效果
|
|
|
|
|
|
+ float distanceX = ((1 - (listCenter - itemCenter)) / itemWidth) * 0.05f;//使y轴移动有渐进效果
|
|
item.y = -_ui.m_listChapter.height * distanceX;
|
|
item.y = -_ui.m_listChapter.height * distanceX;
|
|
}
|
|
}
|
|
}
|
|
}
|