public void Execute() { if (Result.HasMsg) { MorlnFloatingToast.Create(Result.Msg); } }
public void Execute(BindOAuthInfoOk cmd) { MorlnFloatingToast.Create("绑定成功"); if (ReinforcePanel.Instance == null)//我是独立面板时才刷新。如果附着于支援面板,则会立即被它干掉 { OnConfirmClick(); } }
public void Execute() { switch (Type) { case 0: MorlnFloatingToast.Create(Content); break; //TODO:其他弹出消息 } }
public void OnClearDownloadContentClick() { if (_hasChanged) { SystemSettings.SaveSettingsToHD(); } OnConfirmClick(); ConfigManager.DeleteAll(); MorlnFloatingToast.Create("清除成功"); MainController.Instance.ReLogin(); }
public void Execute() { CommonData.MyUser = CurrentUser; if (!CommonData.MyCharacterList.Contains(NewCharacter)) { CommonData.MyCharacterList.Add(NewCharacter); } if (EquipPanel.Instance) { EquipPanel.Instance.Execute(this); } MorlnFloatingToast.Create("购买新角色成功"); }
void OnUpgradeClick() { var canUpgradeNow = _skill.UnlockLevelList[_level] <= CommonData.MyUser.Level; UMengPlugin.UMengEvent(EventId.SKILL_UPGRADE, new Dictionary <string, object> { { "code", _skill.SkillCode }, { "level", _level }, { "can_upgrade", canUpgradeNow } }); if (canUpgradeNow) { var cost = _skill.UpgradeCostList[_level]; var afford = cost.DoIAfford(); var costLabel = string.Format(afford ? "{0}" : "[FF1010]{0}[-]", cost.GetCurrencyLabelWithIcon()); AlertDialog.Load("确认用" + costLabel + "升级这个技能吗", "不了", null, "升级", () => { if (afford) { Requester.Instance.Send(new UpgradeSkill(_skill.SkillCode)); } else { if (cost.Type == (int)CurrencyType.Coin) { MorlnFloatingToast.Create("您的金币不足了"); } else if (cost.Type == (int)CurrencyType.Diamond) { MorlnFloatingToast.Create("您的钻石不足了"); } else { MorlnFloatingToast.Create("您的货币不足了"); } } }); //Requester.Instance.Send(new UpgradeSkill(_skill.SkillCode)); } else { MorlnFloatingToast.Create("你的玩家等级需要达到" + _skill.UnlockLevelList[_level] + "级"); } }
public void Execute() { if (HasNicknameResult) { if (NicknameResult.Code == 10000) { SelectNicknamePanel.NicknameSelectOk = true; } else { if (NicknameResult.HasMsg) { MorlnFloatingToast.Create(NicknameResult.Msg); } } } }
void RefreshData() { _characterList.Clear(); _equipConfig = ConfigManager.GetConfig(ConfigManager.ConfigType.EquipConfig) as EquipConfig; _characterConfig = ConfigManager.GetConfig(ConfigManager.ConfigType.CharacterConfig) as CharacterConfig; if (_equipConfig == null || _characterConfig == null) { MorlnFloatingToast.Create("数据错误"); } else { _characterList.AddRange(CommonData.MyCharacterList.Select(x => x.CharacterCode)); _characterList.AddRange( _characterConfig.CharacterList.Select(x => x.CharacterCode) .Where(x => !CommonData.MyCharacterList.Exists(y => y.CharacterCode == x))); } }
void OnClick() { UMengPlugin.UMengEvent(EventId.PUSHLEVEL_CLICK_POINT, new Dictionary <string, object> { { "major", _majorId }, { "level", _subLevelData.SubLevelId } }); if (_subLevelUnlockInfo == null || !_subLevelUnlockInfo.Unlocked) { MorlnFloatingToast.Create("尚未解锁"); return; } GameData.LastChallengeMajorLevelID = _subLevelUnlockInfo.MajorLevelId;//记录点击了哪一个小关,用于从MatchUI返回到PushLevelUI GameData.LastChallengeSubLevelID = _subLevelUnlockInfo.SubLevelId; GameData.Reinforce1 = null; GameData.Reinforce1Portrait = null; GameData.Reinforce2 = null; GameData.Reinforce2Portrait = null; Requester.Instance.Send(new RequestChallenge(_subLevelUnlockInfo.MajorLevelId, _subLevelUnlockInfo.SubLevelId)); }