| | |
| | | public void OnPlayerLoginOk()
|
| | | {
|
| | | serverInited = true;
|
| | | UpdateRedpoint();
|
| | | }
|
| | |
|
| | | public override void UnInit()
|
| | |
| | | }
|
| | |
|
| | |
|
| | | var config = Config.Instance.Get<FuncConfigConfig>("");
|
| | | if (config != null)
|
| | | {
|
| | | var config = Config.Instance.Get<FuncConfigConfig>("TalentResetBook");
|
| | | talentResetBook = int.Parse(config.Numerical1);
|
| | | talentResetBookCost = int.Parse(config.Numerical2);
|
| | | }
|
| | | }
|
| | |
|
| | | public int GetTalentType(int index)
|
| | |
| | | return true;
|
| | | }
|
| | |
|
| | | public void ProcessLevelUpError(int error)
|
| | | public void ProcessLevelUpError(int talentId, int error)
|
| | | {
|
| | | switch (error)
|
| | | {
|
| | | case 1:
|
| | | SysNotifyMgr.Instance.ShowTip("TalentHighestLevel");
|
| | | break;
|
| | | case 2:
|
| | | SysNotifyMgr.Instance.ShowTip("LackTalentPoint");
|
| | | break;
|
| | | case 3:
|
| | | SysNotifyMgr.Instance.ShowTip("LackTalentSeriesPoint");
|
| | | break;
|
| | | case 4:
|
| | | SysNotifyMgr.Instance.ShowTip("PreTalentLevelLimit");
|
| | | break;
|
| | | }
|
| | | }
|
| | |
| | | {
|
| | | talentPointUpdate();
|
| | | }
|
| | | UpdateRedpoint();
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | int error;
|
| | | if (!model.SatisfyLevelUp(model.selectSkill, out error))
|
| | | {
|
| | | model.ProcessLevelUpError(error);
|
| | | model.ProcessLevelUpError(model.selectSkill, error);
|
| | | return;
|
| | | }
|
| | | else
|
| | |
| | | }
|
| | | else
|
| | | {
|
| | | ConfirmCancel.ShowPopConfirm(Language.Get(Language.Get("Mail101")), Language.Get("LackTalentBook",
|
| | | ConfirmCancel.ShowPopConfirm(Language.Get("Mail101"), Language.Get("LackTalentBook",
|
| | | config.ItemName, model.talentResetBookCost), (bool isOk) =>
|
| | | {
|
| | | if (isOk)
|
| | | {
|
| | | if (UIHelper.GetMoneyCnt(1) < (ulong)model.talentResetBookCost)
|
| | | {
|
| | | WindowCenter.Instance.Open<RechargeTipWin>();
|
| | | }
|
| | | else
|
| | | {
|
| | | CA550_tagCMResetMasterSkill pak = new CA550_tagCMResetMasterSkill();
|
| | | GameNetSystem.Instance.SendInfo(pak);
|
| | | }
|
| | | }
|
| | | });
|
| | | }
|
| | | }
|