コード例 #1
0
 // Update is called once per frame
 void Update()
 {
     if (MoreActivityData.drawCardOk)
     {
         UpdateCoin();
         if (MoreActivityData.GetCardsData().contents_.Length == 0)
         {
             UIEventListener listener = null;
             for (int i = 0; i < cards.Length; ++i)
             {
                 cards[i].SetStatus(true);
                 listener           = UIEventListener.Get(cards[i].gameObject);
                 listener.parameter = i;
                 listener.onClick  += OnClickMask;
             }
         }
         if (drawCardObj != null)
         {
             MA_CardsItem card = drawCardObj.GetComponent <MA_CardsItem>();
             card.SetStatus(false);
             card.SetData(MoreActivityData.GetCardReward(crtIdx));
             EffectAPI.PlayUIEffect((EFFECT_ID)1066, card.got.transform, null, (GameObject eff) =>
             {
                 eff.transform.localPosition = Vector3.zero;
             });
             drawCardObj = null;
         }
         crtIdx = -1;
         MoreActivityData.drawCardOk = false;
     }
 }
コード例 #2
0
 void RefreshGstrengthenlevel(int babyid, int level)
 {
     if (Inst == null)
     {
         return;
     }
     Refresh(babyid);
     if (Inst.intensifyLevel_ == level)
     {
         EffectAPI.PlayUIEffect(EFFECT_ID.EFFECT_qianghuashibai, gameObject.transform, null, null);
     }
     else
     {
         EffectAPI.PlayUIEffect(EFFECT_ID.EFFECT_qianghuachenggong, gameObject.transform, null, null);
     }
     Inst.intensifyLevel_ = (uint)level;
     if (BagSystem.instance.GetItemMaxNum((uint)itemID()) >= itemCount())
     {
         enterBtn.isEnabled = true;
     }
     else
     {
         enterBtn.isEnabled = false;
     }
 }
コード例 #3
0
 public void AddSkillItems(Dictionary <int, List <COM_Skill> > sks)
 {
     foreach (KeyValuePair <int, List <COM_Skill> > pair in sks)
     {
         GameObject o = GameObject.Instantiate(sItem) as GameObject;
         o.SetActive(true);
         o.transform.parent = sGrrid.transform;
         SkillData    sdata = SkillData.GetMinxiLevelData(pair.Key);
         UITexture [] texs  = o.GetComponentsInChildren <UITexture>();
         foreach (UITexture te in texs)
         {
             if (te.name.Equals("skillIcon"))
             {
                 HeadIconLoader.Instance.LoadIcon(sdata._ResIconName, te);
             }
         }
         UILabel [] las = o.GetComponentsInChildren <UILabel>();
         foreach (UILabel la in las)
         {
             if (la.name.Equals("numLabel"))
             {
                 la.text = skillexp(pair.Value).ToString();
                 //StartCoroutine(NumScrollEffect(int.Parse(la.text),la));
             }
         }
         if (IsSkillLevelUp(pair.Value[0]))
         {
             EffectAPI.PlayUIEffect(EFFECT_ID.EFFECT_jinengshengji, o.transform);
         }
         o.transform.localPosition = new Vector3(0, 0, 0);
         o.transform.localScale    = new Vector3(1, 1, 1);
         sGrrid.repositionNow      = true;
     }
 }
コード例 #4
0
    void OnClickZGBtn(ButtonScript obj, object args, int param1, int param2)
    {
        if (!IsBagSystemContainsLottery())
        {
            PopText.Instance.Show(LanguageManager.instance.GetValue("meiyouguaguaka"));
            return;
        }
        EffectAPI.PlayUIEffect((EFFECT_ID)GlobalValue.EFFECT_Guaguaka, gameObject.transform);
        for (int k = 0; k < BagSystem.instance.BagItems.Length; k++)
        {
            if (BagSystem.instance.BagItems[k] == null)
            {
                continue;
            }
            ItemData idata = ItemData.GetData((int)BagSystem.instance.BagItems[k].itemId_);

            if (idata.subType_ == ItemSubType.IST_Lottery)
            {
                COM_Item citem = BagSystem.instance.GetItemByItemId((uint)idata.id_);
                NetConnection.Instance.useItem((uint)citem.slot_, 0, 1);
                isZGBtn = true;
            }
        }
        LotteryData ldata = LotteryData.GetData(ranking);

        BonusContent.text = ldata.Win_symbol;
        //tishiLabel.text = LanguageManager.instance.GetValue ("guagua").Replace("{n}",ldata.RewardName_);
    }
コード例 #5
0
 void OnMagicTupoEnvet(int level)
 {
     PopText.Instance.Show(LanguageManager.instance.GetValue("tupochenggong"));
     tupoObj.GetComponent <magicItemTupoUI>().UpdateMagicItem();
     tupoObj.GetComponent <magicItemTupoUI> ().suolianImg.gameObject.SetActive(false);
     EffectAPI.PlayUIEffect((EFFECT_ID)GlobalValue.EFFECT_UI_magicTupo, transform);
     //EffectAPI.PlayUIEffect ((EFFECT_ID)GlobalValue.EFFECT_magicTuposuolian,transform);
 }
コード例 #6
0
    private void MakeOk(COM_Item item)
    {
        GuideManager.Instance.ClearMask();
        topImg.gameObject.SetActive(true);
        PBPropImg.gameObject.SetActive(false);
        PropImg.gameObject.SetActive(false);
        EffectAPI.PlayUIEffect((EFFECT_ID)GlobalValue.EFFECT_chilun, transform, () => {
            topImg.gameObject.SetActive(false);
            compoundOkPanel.gameObject.SetActive(true);
            PBPropImg.gameObject.SetActive(true);
            PropImg.gameObject.SetActive(true);
            compoundOkPanel.GetComponent <BagTipsUI>().Item = item;
            if (item.itemId_ == MakeData.GetData(_selectSkillCell.MakeId).specialID_)
            {
                EffectAPI.PlayUIEffect((EFFECT_ID)GlobalValue.EFFECT_UI_juepinItem, transform, null);               //()=>{});
            }
        });

        MakeData make = MakeData.GetData(_selectSkillCell.MakeId);

        for (int i = 0; i < make.needItems.Length; i++)
        {
            int itemCount = BagSystem.instance.GetItemMaxNum(uint.Parse(make.needItems[i]));
            needItemsIcon[i].gameObject.transform.Find("num").GetComponent <UILabel>().text  = itemCount.ToString() + "/" + make.needItemNum[i];
            needItemsIcon[i].gameObject.transform.Find("num").GetComponent <UILabel>().color = Color.white;

            if (itemCount < int.Parse(make.needItemNum[i]))
            {
                needItemsIcon[i].gameObject.transform.Find("num").GetComponent <UILabel>().color = Color.red;
                isItemEnough = false;
            }
        }
        if (make.needMoney > GamePlayer.Instance.GetIprop(PropertyType.PT_Money))
        {
            compoundBtn.isEnabled = false;
        }

        //gemIcon.spriteName = "";
        //ItemIcon = 0;
        if (_gemItem != null && _gemItem.cellPane != null)
        {
            _gemItem.cellPane.gameObject.SetActive(false);
        }
        gemInfoObj.gameObject.SetActive(false);
        _gemId          = 0;
        gemName.text    = "";
        gemNameLab.text = LanguageManager.instance.GetValue("inlaygem");
        UpdataGemList();

        foreach (var x in chindCellList)
        {
            x.GetComponent <CompoundSkillCellUI>().updateRed();
        }

        GuideManager.Instance.ProcEvent(ScriptGameEvent.SGE_MainMakeItemOk);
    }
コード例 #7
0
 void OnEmployeeStarOk(Employee inst)
 {
     curEmployee = inst;
     EmployessSystem.instance.CurEmployee = curEmployee;
     PopText.Instance.Show(LanguageManager.instance.GetValue("shengxingok"));
     //	EffectAPI.PlayUIEffect((EFFECT_ID)GlobalValue.EFFECT_JinjieSuccess, gameObject.transform);
     blackImg.gameObject.SetActive(true);
     EffectAPI.PlayUIEffect((EFFECT_ID)GlobalValue.EFFECT_UI_employeeStarOk, gameObject.transform, () => { blackImg.gameObject.SetActive(false); });
     UpdataPanel();
 }
コード例 #8
0
 void CompoundOkEnvet(int id)
 {
     Item = BagSystem.instance.GetItemByInstId((int)item_.instId_);
     black.gameObject.SetActive(true);
     EffectAPI.PlayUIEffect((EFFECT_ID)GlobalValue.EFFECT_fuwenhecheng, gameObject.transform, () =>
     {
         black.gameObject.SetActive(false);
         GuideManager.Instance.ProcEvent(ScriptGameEvent.SGE_BagFuwenCombieSuccess);
     });
 }
コード例 #9
0
 void CrystalPropOKEnvent(bool b)
 {
     for (int i = 0; i < changeProp.Count; i++)
     {
         if (!lockNumList.Contains(i))
         {
             EffectAPI.PlayUIEffect((EFFECT_ID)GlobalValue.EFFECT_zhihuanKS, changeProp[i].transform, null, (GameObject eff) => { eff.transform.localPosition = Vector3.zero; });
         }
     }
     //lockNumList.Clear ();
     EffectAPI.PlayUIEffect((EFFECT_ID)GlobalValue.EFFECT_zhihuancg, gameObject.transform, () => {});
 }
コード例 #10
0
 void LevelUpEnvent(bool b)
 {
     if (b)
     {
         EffectAPI.PlayUIEffect((EFFECT_ID)GlobalValue.EFFECT_familyLevelUp, gameObject.transform, () => {});
     }
     else
     {
         EffectAPI.PlayUIEffect((EFFECT_ID)GlobalValue.EFFECT_zhihuanSb, gameObject.transform, () => {});
         UpdateInfo();
     }
 }
コード例 #11
0
    public static void SubmitQuestOk(int id)
    {
        QuestData q = QuestData.GetData(id);

        if (OnQuestEffectFinish != null)
        {
            OnQuestEffectFinish(id);
        }
        //DelTrackQues (id);
        EraseQuestInst(id);

        if (q.questKind_ == QuestKind.QK_Profession)
        {
            for (int i = 0; i < CompletedList.Count; ++i)
            {
                QuestData tmpQ = QuestData.GetData(CompletedList[i]);
                if (tmpQ.questKind_ == QuestKind.QK_Profession)
                {
                    CompletedList.RemoveAt(i);
                    break;
                }
            }
        }

        if (q.questKind_ != QuestKind.QK_Tongji)
        {
            if (!CompletedQuestList.Contains(id))
            {
                CompletedQuestList.Add(id);
                UpdateAcceptableQuests();
                if (OnQuestUpdate != null)
                {
                    OnQuestUpdate();
                }
                isDirty = true;
                GuideManager.Instance.ProcEvent(ScriptGameEvent.SGE_NpcRenwuSubmit, id);
                EffectAPI.PlayUIEffect((EFFECT_ID)GlobalValue.EFFECT_ComplishQuest, ApplicationEntry.Instance.uiRoot.transform);
            }
        }
        if (q.questType_ == QuestType.QT_GiveBaby || q.questType_ == QuestType.QT_GiveItem)
        {
            TurnOnUIPlanel.HideMe();
            NpcRenwuUI.SwithShowMe();
        }
        if (IsCopyEndId(id))
        {
            CopyTipsUI.SwithShowMe();
//			MessageBoxUI.ShowMe(LanguageManager.instance.GetValue("gongxitongguan"),()=>{
//				NetConnection.Instance.exitCopy();
//			},true,null,null,LanguageManager.instance.GetValue("likai"));
        }
    }
コード例 #12
0
 public static void StartGuildBattle(string otName, int otherCon, int selfCon)
 {
     battleState   = 2;
     selfwinCount  = selfCon;
     otherwinCount = otherCon;
     otherName     = otName;
     EffectAPI.PlayUIEffect((EFFECT_ID)GlobalValue.EFFECT_jiazuzhandoukaishi, ApplicationEntry.Instance.uiRoot.transform);
     GlobalInstanceFunction.isGuildBattleStart = false;
     if (startGuildBattleOk != null)
     {
         startGuildBattleOk(otherName, otherCon, selfCon);
     }
 }
コード例 #13
0
 public static void openBattle(string otehername, int num, int level)
 {
     //GlobalValue.Get (Constant.C_GuildBattleStartIntervalTime, out guildBatatleStateTime);
     battleState = 1;
     otherName   = otehername;
     otherNum    = num;
     otherlevel  = level;
     EffectAPI.PlayUIEffect((EFFECT_ID)GlobalValue.EFFECT_jiazhuzhankaiqi, ApplicationEntry.Instance.uiRoot.transform);
     if (updateGuildBattleEventOk != null)
     {
         updateGuildBattleEventOk(otehername);
     }
 }
コード例 #14
0
 public static void closeGuildBattle(bool isWinner)
 {
     battleState = 3;
     if (isWinner)
     {
         EffectAPI.PlayUIEffect((EFFECT_ID)GlobalValue.EFFECT_jiazuzhandoushengli, ApplicationEntry.Instance.uiRoot.transform);
     }
     else
     {
         EffectAPI.PlayUIEffect((EFFECT_ID)GlobalValue.EFFECT_jiazuzhanshibai, ApplicationEntry.Instance.uiRoot.transform);
     }
     //EffectAPI.PlayUIEffect ((EFFECT_ID)GlobalValue.EFFECT_jiazhuzhanjieshu, ApplicationEntry.Instance.uiRoot.transform);
 }
コード例 #15
0
    private void ShowEmployeeInfo()
    {
        EffectAPI.PlayUIEffect((EFFECT_ID)GlobalValue.EFFECT_UI_employeejinjie1, gameObject.transform, null, (GameObject obj) => { obj.transform.localPosition = new Vector3(0, 0, -1000f); });
        EffectAPI.PlayUIEffect((EFFECT_ID)GlobalValue.EFFECT_UI_employeejinjie2, gameObject.transform);
        Employee curEmployee = null;

        curEmployee = GamePlayer.Instance.GetEmployeeById(employeeInstId);
        if (curEmployee == null)
        {
            return;
        }

        //GameManager.Instance.GetActorClone((ENTITY_ID) EmployeeData.GetData(curEmployee.GetIprop(PropertyType.PT_TableId)).asset_id,
        //   (ENTITY_ID)curEmployee.WeaponAssetID, EntityType.ET_Emplyee, AssetLoadCallBack, new ParamData(curEmployee.InstId),"UI");
        nameLab.text       = curEmployee.InstName;
        jobIcon.spriteName = ((JobType)curEmployee.GetIprop(PropertyType.PT_Profession)).ToString();
        profssLab.text     = Profession.get((JobType)curEmployee.GetIprop(PropertyType.PT_Profession),
                                            curEmployee.GetIprop(PropertyType.PT_ProfessionLevel)).jobName_;
        pinzhiImg.spriteName = getPinzhiImg((int)curEmployee.quality_);
        zhanliLab.text       = curEmployee.GetIprop(PropertyType.PT_FightingForce).ToString();
        hpLab.text           = curEmployee.GetIprop(PropertyType.PT_HpMax).ToString();
        spiritLab.text       = curEmployee.GetIprop(PropertyType.PT_Spirit).ToString();
        magicLab.text        = curEmployee.GetIprop(PropertyType.PT_MpMax).ToString();
        critLab.text         = curEmployee.GetIprop(PropertyType.PT_Crit).ToString();
        attLab.text          = curEmployee.GetIprop(PropertyType.PT_Attack).ToString();
        hitLab.text          = curEmployee.GetIprop(PropertyType.PT_Hit).ToString();
        defenseLab.text      = curEmployee.GetIprop(PropertyType.PT_Defense).ToString();
        dodgeLab.text        = curEmployee.GetIprop(PropertyType.PT_Dodge).ToString();
        agileLab.text        = curEmployee.GetIprop(PropertyType.PT_Agile).ToString();
        counterpunchLab.text = curEmployee.GetIprop(PropertyType.PT_counterpunch).ToString();
        replyLab.text        = curEmployee.GetIprop(PropertyType.PT_Reply).ToString();

        Employee oldEmployee = EmployessSystem.instance._OldEmployee;

        if (oldEmployee == null)
        {
            return;
        }
        ShowAddProp(curEmployee.GetIprop(PropertyType.PT_HpMax), oldEmployee.GetIprop(PropertyType.PT_HpMax), addSmLab);
        ShowAddProp(curEmployee.GetIprop(PropertyType.PT_MpMax), oldEmployee.GetIprop(PropertyType.PT_MpMax), addMlLab);
        ShowAddProp(curEmployee.GetIprop(PropertyType.PT_Attack), oldEmployee.GetIprop(PropertyType.PT_Attack), addGjLab);
        ShowAddProp(curEmployee.GetIprop(PropertyType.PT_Defense), oldEmployee.GetIprop(PropertyType.PT_Defense), addFyLab);
        ShowAddProp(curEmployee.GetIprop(PropertyType.PT_Agile), oldEmployee.GetIprop(PropertyType.PT_Agile), addMjLab);
        ShowAddProp(curEmployee.GetIprop(PropertyType.PT_Reply), oldEmployee.GetIprop(PropertyType.PT_Reply), addHfLab);
        ShowAddProp(curEmployee.GetIprop(PropertyType.PT_Spirit), oldEmployee.GetIprop(PropertyType.PT_Spirit), addJsLab);
        ShowAddProp(curEmployee.GetIprop(PropertyType.PT_Crit), oldEmployee.GetIprop(PropertyType.PT_Crit), addBsLab);
        ShowAddProp(curEmployee.GetIprop(PropertyType.PT_Hit), oldEmployee.GetIprop(PropertyType.PT_Hit), addMzLab);
        ShowAddProp(curEmployee.GetIprop(PropertyType.PT_Dodge), oldEmployee.GetIprop(PropertyType.PT_Dodge), addSbLab);
        ShowAddProp(curEmployee.GetIprop(PropertyType.PT_counterpunch), oldEmployee.GetIprop(PropertyType.PT_counterpunch), addFjLab);
    }
コード例 #16
0
    void Start()
    {
        _EnterLable.text = LanguageManager.instance.GetValue("enter");
        nameLabel.transform.parent.gameObject.SetActive(false);
        babyTitle.gameObject.SetActive(false);
        huobanZhen.gameObject.SetActive(false);
        backSp.gameObject.SetActive(false);
        getTypeSp.gameObject.SetActive(false);
        CloseBtn.gameObject.SetActive(false);
        typeObj.SetActive(false);
        numObj.SetActive(false);
        gun1.gameObject.SetActive(false);
        gun2.gameObject.SetActive(false);
//        ShowGetBaby();
//        EffectAPI.PlayUIEffect(EFFECT_ID.EFFECT_GainBabyShine, transform, null, (GameObject obj) =>
//        {
//			if(!hasDestroy)
//			{
        //EffectLevel el = obj.AddComponent<EffectLevel>();
        //el.target = effLv;
//				GlobalInstanceFunction.Instance.Invoke(() =>
//				{
//					if(!hasDestroy)
//					{
        EffectAPI.PlayUIEffect(EFFECT_ID.EFFECT_GainBaby, transform, null, (GameObject go) =>
        {
            //EffectLevel el1 = go.AddComponent<EffectLevel>();
            //el1.target = effLv;
            GlobalInstanceFunction.Instance.Invoke(() =>
            {
                if (!hasDestroy)
                {
                    if (babyId != 0)
                    {
                        ShowGetBaby();
                    }
                    if (empId != 0)
                    {
                        ShowGetEmp();
                    }
                }
            }, 1.5f);
        });
//					}
//				}, 0.8f);
//			}
//        });
        UIManager.SetButtonEventHandler(CloseBtn.gameObject, EnumButtonEvent.OnClick, OnClickClose, 0, 0);
    }
コード例 #17
0
 private void OnSubmitDetail(ButtonScript obj, object args, int param1, int param2)
 {
     if (int.Parse(submitnum_.text) <= 0)
     {
         return;
     }
     NetConnection.Instance.presentGuildItem(int.Parse(submitnum_.text));
     EffectAPI.PlayUIEffect((EFFECT_ID)GlobalValue.EFFECT_familyCaiji, gameObject.transform, null,
                            (GameObject obj1) => {
         if (!submitDetail_.activeSelf)
         {
             Destroy(obj1);
         }
     });
 }
コード例 #18
0
    public static void AcceptQuestOk(COM_QuestInst quest)
    {
        NewQuest = true;
        InsertQuestInst(quest);
        UpdateAcceptableQuests();
        //AddTrackQues(quest);
        if (OnQuestUpdate != null)
        {
            OnQuestUpdate();
        }
        isDirty = true;

        GuideManager.Instance.ProcEvent(ScriptGameEvent.SGE_NpcRenwuAccept, quest.questId_);
        EffectAPI.PlayUIEffect((EFFECT_ID)GlobalValue.EFFECT_AcceptQuest, ApplicationEntry.Instance.uiRoot.transform);
    }
コード例 #19
0
 private void OnClickcreateP(ButtonScript obj, object args, int param1, int param2)
 {
     RolePanelObj.SetActive(false);
     CreatePlayerRole.ani.SetInteger("cameraState", 1);
     backBtn.gameObject.SetActive(true);
     createP.gameObject.SetActive(false);
     SetinfoBtnState(false);
     isCreateB = true;
     CreatePlayerRole.isCreate = true;
     SetIconShowState(true);
     playerInfoObg.SetActive(false);
     cRole.ShowPlayerObj();
     EffectAPI.PlayUIEffect((EFFECT_ID)GlobalValue.EFFECT_Butterfly, transform);
     SetPlayerObjActive(false);
 }
コード例 #20
0
    public void UpdateOpenSystemStr(int str)
    {
        if (MainPanle.Instance == null)
        {
            return;
        }

        if (MainPanle.Instance.gameObject.activeSelf)
        {
            return;
        }
        if (str == (int)OpenSubSystemFlag.OSSF_EmployeePos10 || str == (int)OpenSubSystemFlag.OSSF_EmployeePos15 || str == (int)OpenSubSystemFlag.OSSF_EmployeePos20)
        {
            EffectAPI.PlayUIEffect((EFFECT_ID)GlobalValue.EFFECT_kaiqihuoban, gameObject.transform, () => {});
        }
    }
コード例 #21
0
 void RefuseAction()
 {
     ClientLog.Instance.Log("宠物 No!");
     EffectAPI.PlayUIEffect((EFFECT_ID)GlobalValue.EFFECT_ChongwuNo, ApplicationEntry.Instance.uiRoot.transform, () =>
     {
     }, (GameObject go) =>
     {
         if (go != null && ActorObj != null)
         {
             go.transform.parent        = ActorObj.transform;
             go.transform.localScale    = Vector3.one;
             go.transform.localPosition = Vector3.zero;
         }
         //ClientLog.Instance.Log("宠物 No!  ContinueAction");
     });
     ContinueAction();
 }
コード例 #22
0
 public void ShowAttackType(SneakAttackType type)
 {
     if (type == SneakAttackType.SAT_SurpriseAttack)
     {
         EffectAPI.PlayUIEffect(EFFECT_ID.EFFECT_UIBeitouxi, ApplicationEntry.Instance.uiRoot.transform);
     }
     else if (type == SneakAttackType.SAT_SneakAttack)
     {
         EffectAPI.PlayUIEffect(EFFECT_ID.EFFECT_UITouxi, ApplicationEntry.Instance.uiRoot.transform);
     }
     //if (type != SneakAttackType.SAT_None && type != SneakAttackType.SAT_Max)
     //{
     //    attackType_.gameObject.SetActive(true);
     //    attackType_.spriteName = type.ToString();
     //    attackType_.MakePixelPerfect();
     //}
 }
コード例 #23
0
    void OnFamilyDataEvent(int num)
    {
        ConstructionItem cItem = null;

        for (int i = 0; i < itemPool_.Count; ++i)
        {
            cItem = itemPool_[i].GetComponent <ConstructionItem>();
            if (cItem != null)
            {
                cItem.UpdataInfo();
            }
        }

        if (detail_.gameObject.activeSelf)
        {
            detail_.SetData(detail_.data_.id_);
            EffectAPI.PlayUIEffect((EFFECT_ID)GlobalValue.EFFECT_familyLevelUp, detail_.transform, () => {});
        }
    }
コード例 #24
0
//	void OnClickRewardExplain(ButtonScript obj, object args, int param1, int param2)
//	{
//		RewardInfoObj.SetActive (true);
//	}
    void OnClickScratchReward(ButtonScript obj, object args, int param1, int param2)
    {
        EffectAPI.PlayUIEffect((EFFECT_ID)GlobalValue.EFFECT_Guaguaka, gameObject.transform);


        ScratchRewardBtn.gameObject.SetActive(false);
        ZGBtn.gameObject.SetActive(true);
        CloseBtn.gameObject.SetActive(true);
        Masksp.gameObject.SetActive(false);
        LotteryData ldata = LotteryData.GetData(ranking);

        BonusContent.text = ldata.Win_symbol;
        isZGBtn           = false;
        //tishiLabel.text = LanguageManager.instance.GetValue ("guagua").Replace("{n}",ldata.RewardName_);
        string str = LanguageManager.instance.GetValue("guagua") + itemnamestr + LanguageManager.instance.GetValue("guaguaend");

        PopText.Instance.Show(str);
        itemnamestr = "";
    }
コード例 #25
0
    public void AddSkillItems(List <COM_Skill> sk)
    {
        for (int i = 0; i < sk.Count; i++)
        {
            if (sk[i].skillExp_ <= 0)
            {
                continue;
            }
            GameObject o = GameObject.Instantiate(sItem) as GameObject;
            o.SetActive(true);
            o.name = o.name + i;
            SkillData    sdata = SkillData.GetMinxiLevelData((int)sk[i].skillID_);
            UITexture [] texs  = o.GetComponentsInChildren <UITexture>();
            foreach (UITexture te in texs)
            {
                if (te.name.Equals("skillIcon"))
                {
                    HeadIconLoader.Instance.LoadIcon(sdata._ResIconName, te);
                }
            }

            UILabel [] las = o.GetComponentsInChildren <UILabel>();
            foreach (UILabel la in las)
            {
                if (la.name.Equals("numLabel"))
                {
                    la.text = sk[i].skillExp_.ToString();
                    //StartCoroutine(NumScrollEffect((int)sk[i].skillExp_,la));
                }
            }

            if (IsSkillLevelUp(sk[i]))
            {
                EffectAPI.PlayUIEffect(EFFECT_ID.EFFECT_jinengshengji, o.transform);
            }

            o.transform.parent        = sGrrid.transform;
            o.transform.localPosition = new Vector3(0, 0, 0);
            o.transform.localScale    = new Vector3(1, 1, 1);
            sGrrid.repositionNow      = true;
        }
    }
コード例 #26
0
 void UpdateExamData(COM_Answer Answer)
 {
     if (Answer.isRigth_)
     {
         _RigthNum++;
         ExamSystem._RightNum = _RigthNum;
         EffectAPI.PlayUIEffect((EFFECT_ID)GlobalValue.EFFECT_UI_huidazhengque, pos.transform, null, (GameObject obj) => {
             obj.transform.localPosition = Vector3.zero;
         });
     }
     else
     {
         EffectAPI.PlayUIEffect((EFFECT_ID)GlobalValue.EFFECT_UI_huidacuowu, pos.transform, null, (GameObject obj) => {
             obj.transform.localPosition = Vector3.zero;
         });
     }
     ExamSystem._Qindex     = Answer.questionIndex_;
     _ObtainExpLable.text   = Answer.exp_.ToString();
     _ObtainMoneyLable.text = Answer.money_.ToString();
     ExamSystem._Qindex++;
     _CorrectRateLable.text = ExamSystem._RightNum + "/" + ExamSystem._Qindex;
     ResExamData(ExamSystem._Qindex);
     if (_RigthNum >= 10)
     {
         _TenNumLable.text = "1/1";
     }
     else
     {
         _TenNumLable.text = "0/1";
     }
     if (_RigthNum >= 20)
     {
         _TwentyNumLable.text = "1/1";
     }
     else
     {
         _TwentyNumLable.text = "0/1";
     }
 }
コード例 #27
0
    public static void LocalSubmitQuest(int id)
    {
        QuestData q = QuestData.GetData(id);

        if (q.questKind_ == QuestKind.QK_Profession)
        {
            return;
        }

        DropData dd = DropData.GetData(q.DropID_);

        if (dd.itemList.Count > BagSystem.instance.GetEmptySlotNum())
        {
            return;
        }

        if (OnQuestEffectFinish != null)
        {
            OnQuestEffectFinish(id);
        }

        EraseQuestInst(id);

        if (q.questKind_ != QuestKind.QK_Tongji)
        {
            if (!CompletedQuestList.Contains(id))
            {
                CompletedQuestList.Add(id);
                UpdateAcceptableQuests();
                if (OnQuestUpdate != null)
                {
                    OnQuestUpdate();
                }
                isDirty = true;
                GuideManager.Instance.ProcEvent(ScriptGameEvent.SGE_NpcRenwuSubmit, id);
                EffectAPI.PlayUIEffect((EFFECT_ID)GlobalValue.EFFECT_ComplishQuest, ApplicationEntry.Instance.uiRoot.transform);
            }
        }
    }
コード例 #28
0
    private void OnClickLevelUp(ButtonScript obj, object args, int param1, int param2)
    {
        if (selectCellUI == null)
        {
            return;
        }
        if (GamePlayer.Instance.GetIprop(PropertyType.PT_Money) < _familyLearnSkillPay)
        {
            return;
        }

        //	if(GamePlayer.Instance.GetSkillCore(selectCellUI.skillId_) == null)
        //{
        //	NetConnection.Instance.learnGuildSkill(selectCellUI.skillId_);
        //}
        //else
        //{
        NetConnection.Instance.levelupGuildSkill(selectCellUI.skillId_);
        EffectAPI.PlayUIEffect((EFFECT_ID)GlobalValue.EFFECT_familyZhufu, gameObject.transform, () => {});


        //}
    }
コード例 #29
0
    void Start()
    {
        stateSp.gameObject.SetActive(false);
        InitData();
        UIManager.SetButtonEventHandler(_Abtn.gameObject, EnumButtonEvent.OnClick, OnClickconfirm, 1, 0);
        UIManager.SetButtonEventHandler(_Bbtn.gameObject, EnumButtonEvent.OnClick, OnClickconfirm, 2, 0);
        UIManager.SetButtonEventHandler(_Cbtn.gameObject, EnumButtonEvent.OnClick, OnClickconfirm, 3, 0);
        UIManager.SetButtonEventHandler(_Dbtn.gameObject, EnumButtonEvent.OnClick, OnClickconfirm, 4, 0);
        UIManager.SetButtonEventHandler(_Closebtn.gameObject, EnumButtonEvent.OnClick, OnClickClose, 0, 0);
        UIManager.SetButtonEventHandler(_TenObj.gameObject, EnumButtonEvent.OnClick, ShowTips, _TenExamRight, 0);
        UIManager.SetButtonEventHandler(_TwentyObj.gameObject, EnumButtonEvent.OnClick, ShowTips, _TwentyExamRight, 0);

        _CorrectRateLable.text          = "";
        ExamSystem.InitExamData        += InitExam;
        ExamSystem.UpdateExam          += UpdateExamData;
        ExamSystem.UpdateActivityState += CloseActivity;
        InitExam(ExamSystem._Exam);
        if (ExamSystem._IsOpenExam)
        {
            EffectAPI.PlayUIEffect((EFFECT_ID)GlobalValue.EFFECT_UI_huodongkaishi, gameObject.transform, null, (GameObject obj) => {
                obj.transform.localPosition = Vector3.zero;
            });
        }
    }
コード例 #30
0
 public void Open()
 {
     EffectAPI.PlayUIEffect((EFFECT_ID)GlobalValue.EFFECT_Heji, effectPoint_);
 }