Esempio n. 1
0
    protected override void OnInitializationUI()
    {
        GuiExtendDialog dlg = GetComponent <GuiExtendDialog>();

        if (dlg != null)
        {
            dlg.callbackFuntion   += OnDialogReback;
            dlg.buttonSelectStatus = (GuiExtendDialog.DialogFlag)IGamerProfile.gameBaseDefine.platformChargeIntensityData.closeLevel_CharacterLevelSale_BtnIndex;
        }

        int currentSelectCharacterIndex = (int)m_UpgradeCharacterDt.id;
        int money = 0;

        switch (m_UpgradeCharacterDt.att)
        {
        case UiSceneSelectGameCharacter.CharacterAttribute.AttributeA:
        {
            money = IGamerProfile.gameCharacter.characterDataList[currentSelectCharacterIndex].LevelAToMoney.GetValue(
                IGamerProfile.Instance.playerdata.characterData[currentSelectCharacterIndex].levelA);
            break;
        }

        case UiSceneSelectGameCharacter.CharacterAttribute.AttributeB:
        {
            money = IGamerProfile.gameCharacter.characterDataList[currentSelectCharacterIndex].LevelBToMoney.GetValue(
                IGamerProfile.Instance.playerdata.characterData[currentSelectCharacterIndex].levelB);
            break;
        }
        }
        payMoney.Text = money.ToString();
    }
Esempio n. 2
0
    protected override void OnInitializationUI()
    {
        GuiExtendDialog dlg = GetComponent <GuiExtendDialog>();

        if (dlg != null)
        {
            dlg.callbackFuntion   += OnDialogReback;
            dlg.buttonSelectStatus = (GuiExtendDialog.DialogFlag)IGamerProfile.gameBaseDefine.platformChargeIntensityData.closeLevel_LoginAward_BtnIndex;
        }
        payMoney.Text = IGamerProfile.gameBaseDefine.gameParameter.loginAward.paymoney.ToString();
        for (int i = 0; i < skillCount.Length; i++)
        {
            skillCount[i].Text = IGamerProfile.gameBaseDefine.gameParameter.loginAward.skill[i].ToString();
        }

        awardIcon      = new GameObject[IGamerProfile.gameBaseDefine.gameParameter.loginAward.equip.Length];
        equipIndexList = new int[awardIcon.Length];
        for (int i = 0; i < awardIcon.Length; i++)
        {
            int equipIndex = FTLibrary.Command.FTRandom.Next(GameEquip.EquipMaxCount);
            equipIndexList[i] = equipIndex;
            awardIcon[i]      = LoadResource_UIPrefabs(string.Format("equip{0}icon.prefab", equipIndex + 1));
            GuiPlaneAnimationText num = awardIcon[i].GetComponentInChildren <GuiPlaneAnimationText>();
            num.Text = IGamerProfile.gameBaseDefine.gameParameter.loginAward.equip[i].ToString();
            awardIcon[i].transform.localPosition = equipposition[i].transform.localPosition;
        }
    }
Esempio n. 3
0
 protected override void OnInitializationUI()
 {
     GuiExtendDialog dlg = GetComponent<GuiExtendDialog>();
     if (dlg != null)
     {
         dlg.callbackFuntion += OnDialogReback;
     }
 }
Esempio n. 4
0
    protected override void OnInitializationUI()
    {
        GuiExtendDialog dlg = GetComponent <GuiExtendDialog>();

        if (dlg != null)
        {
            dlg.callbackFuntion   += OnDialogReback;
            dlg.buttonSelectStatus = (GuiExtendDialog.DialogFlag)IGamerProfile.gameBaseDefine.platformChargeIntensityData.closeLevel_RechargeAsk_BtnIndex;
        }
    }
    protected override void OnInitializationUI()
    {
        GuiExtendDialog dlg = GetComponent <GuiExtendDialog>();

        if (dlg != null)
        {
            dlg.callbackFuntion   += OnDialogReback;
            dlg.buttonSelectStatus = (GuiExtendDialog.DialogFlag)IGamerProfile.gameBaseDefine.platformChargeIntensityData.closeLevel_CharacterLevelSale_BtnIndex;
        }

        int currentSelectCharacterIndex = IGamerProfile.Instance.gameEviroment.characterIndex;
        int money = IGamerProfile.gameCharacter.characterDataList[currentSelectCharacterIndex].LevelToMoney.GetValue(
            IGamerProfile.Instance.playerdata.characterData[currentSelectCharacterIndex].level);

        payMoney.Text = money.ToString();
    }