|
@@ -30,6 +30,7 @@ namespace GFGGame
|
|
|
isfullScreen = true;
|
|
|
|
|
|
_ui.m_list.itemRenderer = RenderListItem;
|
|
|
+ _ui.m_list.onClickItem.Add(OnListItemClick);
|
|
|
|
|
|
_ui.m_btnGet.onClick.Add(OnBtnGetClick);
|
|
|
}
|
|
@@ -84,18 +85,19 @@ namespace GFGGame
|
|
|
UI_ComReward item = UI_ComReward.Proxy(obj);
|
|
|
item.m_loaIcon.url = ResPathUtil.GetIconPath(itemCfg);
|
|
|
item.m_txtCount.text = "x" + itemData.num.ToString();
|
|
|
+ item.target.data = itemCfg.id;
|
|
|
UI_ComReward.ProxyEnd();
|
|
|
}
|
|
|
-
|
|
|
+ private void OnListItemClick(EventContext context)
|
|
|
+ {
|
|
|
+ GObject obj = (context.data) as GObject;
|
|
|
+ GoodsItemTipsController.ShowItemTips((int)(obj.data));
|
|
|
+ }
|
|
|
private async void OnBtnGetClick()
|
|
|
{
|
|
|
bool result = await TravelSProxy.ReqGetTravelReward();
|
|
|
if (result)
|
|
|
{
|
|
|
- // GComponent travelViewUI = ViewManager.GetUIView(typeof(TravelView).Name).viewCom;
|
|
|
- // GButton btnPhoto = travelViewUI.GetChild("btnPhoto").asButton;
|
|
|
- // // UI_TravelUI travelViewUI = UI_TravelUI.Proxy(ViewManager.GetUIView(typeof(TravelView).Name).viewCom);
|
|
|
- // Vector2 vector2 = travelViewUI.TransformPoint(btnPhoto.xy, _ui.target);
|
|
|
_ui.m_t1.SetValue("start", _ui.m_comPostCard.target.x, _ui.m_comPostCard.target.y);
|
|
|
_ui.m_t0.SetValue("start", _ui.m_comPostCard.target.x, _ui.m_comPostCard.target.y);
|
|
|
_ui.m_t0.SetValue("end", _ui.m_btnGet.x - 240, _ui.m_btnGet.y);
|