private static void OnShowMoneyTip(bool bSuccess, object param) { if (!bSuccess) { Module.Log.LogModule.ErrorLog("load MoneyTipRoot error"); return; } MonthSignItemIntroduce.Instance().ShowTooltips(); }
protected override void ItemClick(GameObject value) { int nItemType = -1; int nItemID = -1; int nCount = 0; for (int i = 0; i < m_ItemGrid.Length && i < m_ItemDataID.Length; i++) { if (m_ItemGrid[i].name == value.name) { nItemType = m_ItemType[i]; nItemID = m_ItemDataID[i]; nCount = m_ItemCount[i]; break; } } //Frozen状态只显示TIPS没有其他操作 if (m_bInFrozenState) { if (nItemType == (int)ItemType.ITEM_ITEM) { if (nItemID <= -1) { return; } GameItem item = new GameItem(); item.DataID = nItemID; MonthSignItemIntroduce.ShowMoneyTip(MoneyTipsLogic.MoneyType.ITEM_NONE, nItemID); if (item.IsEquipMent()) { //EquipTooltipsLogic.ShowEquipTooltip(item, EquipTooltipsLogic.ShowType.Info); } else { //ItemTooltipsLogic.ShowItemTooltip(item, ItemTooltipsLogic.ShowType.Info); } } else { MoneyTipsLogic.MoneyType tpye = MoneyTipsLogic.MoneyType.ITEM_NONE; switch ((ItemType)nItemType) { case ItemType.ITEM_EXP: tpye = MoneyTipsLogic.MoneyType.ITEM_EXP; break; case ItemType.ITEM_MONEY: tpye = MoneyTipsLogic.MoneyType.ITEM_MONEY; break; case ItemType.ITEM_YUANBAO: tpye = MoneyTipsLogic.MoneyType.ITEM_YUANBAO; break; } //MoneyTipsLogic.ShowMoneyTip(tpye, nCount); MonthSignItemIntroduce.ShowMoneyTip(tpye, nCount); } } else { int nowdayv = GameManager.gameManager.PlayerDataPool.DaySignInfo.m_nowDayIndex; if (nowdayv > m_ItemIndex) { System.Collections.Generic.Dictionary <int, Games.AwardActivity.DaySignInItem> m_DaySignInfoList = GameManager.gameManager.PlayerDataPool.DaySignInfo.m_DaySignInfoList; Games.AwardActivity.DaySignInItem daysignitem; if (m_DaySignInfoList.TryGetValue(m_ItemIndex, out daysignitem)) { // DaySignInStates states = (DaySignInStates)daysignitem.ItemStatus; if (daysignitem.ItemStatus == (int)DaySignInStates.NOTSIGNEN) { for (int i = 1; i < m_ItemIndex; ++i) { if (m_DaySignInfoList.TryGetValue(i, out daysignitem) && daysignitem.ItemStatus == (int)DaySignInStates.NOTSIGNEN) { GUIData.AddNotifyData2Client(false, "#{11515}"); return; } } } else if (daysignitem.ItemStatus == (int)DaySignInStates.VIPSIGNEDHALF) { for (int i = 1; i < m_ItemIndex; ++i) { if (m_DaySignInfoList.TryGetValue(i, out daysignitem) && (daysignitem.ItemStatus == (int)DaySignInStates.NOTSIGNEN || daysignitem.ItemStatus == (int)DaySignInStates.VIPSIGNEDHALF)) { GUIData.AddNotifyData2Client(false, "#{11515}"); return; } } } } } if (AwardLogic.Instance() != null) { AwardLogic.Instance().m_PopUpBox.AddItem((RewardAwardItem.ItemType)nItemType, nItemID, nCount, m_ItemIndex, (int)m_ItemStatus, vipLevel: m_nVipLevel, sureAction: ChangeChooseItem, isDefaultCanDoSign: m_bCanDoNormalSign); } } }
void Awake() { m_Instance = this; }