/// <summary> /// 打开消息提示 /// </summary> /// <param name="type">类型</param> //例如飞翼传IconHintMgr.TYPE_WING_SKIN /// <param name="FunctionOpenMgr_id">等级锁</param> //例如飞翼传FunctionOpenMgr.WING /// <param name="num">显示的数量</param> /// <param name="isman">是否满格</param> public void showHint(int type, int FunctionOpenMgr_id = -1, int num = -1, bool isman = false) { //界面未初始化 if (!inituiisok) { hintinfo ht = new hintinfo(); ht.type = type; ht.FunctionOpenMgr_id = FunctionOpenMgr_id; ht.num = num; ht.isman = isman; lst_info.Add(ht); return; } if (FunctionOpenMgr_id > 0 && !FunctionOpenMgr.instance.Check(FunctionOpenMgr_id)) { return; } if (num > -1) { if (dic_hints_havenum.ContainsKey(type)) { dic_hints_havenum[type][1].SetActive(isman ? true : false); dic_hints_havenum[type][0].SetActive(isman ? false: true); if (!isman) { dic_hints_havenum[type][0].transform.GetChild(0).GetComponent <Text>().text = num.ToString(); } } else { return; } } else { if (dic_hints.ContainsKey(type)) { dic_hints[type].SetActive(true); } else { return; } } }
public void showHint(int type, int FunctionOpenMgr_id = -1, int num = -1, bool isman = false) { bool flag = !this.inituiisok; if (flag) { hintinfo item = default(hintinfo); item.type = type; item.FunctionOpenMgr_id = FunctionOpenMgr_id; item.num = num; item.isman = isman; this.lst_info.Add(item); } else { bool flag2 = FunctionOpenMgr_id > 0 && !FunctionOpenMgr.instance.Check(FunctionOpenMgr_id, false); if (!flag2) { bool flag3 = num > -1; if (flag3) { bool flag4 = this.dic_hints_havenum.ContainsKey(type); if (flag4) { this.dic_hints_havenum[type][1].SetActive(isman); this.dic_hints_havenum[type][0].SetActive(!isman); bool flag5 = !isman; if (flag5) { this.dic_hints_havenum[type][0].transform.GetChild(0).GetComponent <Text>().text = num.ToString(); } } } else { bool flag6 = this.dic_hints.ContainsKey(type); if (flag6) { this.dic_hints[type].SetActive(true); } } } } }