Пример #1
0
 public static void TryOpen()
 {
     if ((ulong)Globals.Instance.Player.Data.Level < (ulong)((long)GameConst.GetInt32(4)))
     {
         GameUIManager.mInstance.ShowMessageTip(Singleton<StringManager>.Instance.GetString("guild28", new object[]
         {
             GameConst.GetInt32(4)
         }), 0f, 0f);
         return;
     }
     GuildSubSystem expr_68 = Globals.Instance.Player.GuildSystem;
     expr_68.QueryGuildDataEvent = (GuildSubSystem.VoidCallback)Delegate.Combine(expr_68.QueryGuildDataEvent, new GuildSubSystem.VoidCallback(GUIGuildManageScene.OnQueryGuildData));
     MC2S_GetGuildData ojb = new MC2S_GetGuildData();
     Globals.Instance.CliSession.Send(901, ojb);
 }
Пример #2
0
 public static void GotoActivityFunction(EActivityValueType type)
 {
     switch (type)
     {
     case EActivityValueType.EAVT_Honor:
         GUIPVP4ReadyScene.TryOpen();
         break;
     case EActivityValueType.EAVT_Fragment:
         GameUIManager.mInstance.ChangeSession<GUIWorldMap>(null, false, true);
         break;
     case EActivityValueType.EAVT_KingReward:
         GUIKingRewardScene.TryOpen();
         break;
     case EActivityValueType.EAVT_Trial:
         GUITrailTowerSceneV2.TryOpen();
         break;
     case EActivityValueType.EAVT_Summon:
         GameUIManager.mInstance.ChangeSession<GUIRollSceneV2>(null, false, true);
         break;
     case EActivityValueType.EAVT_D2M:
         if ((ulong)Globals.Instance.Player.Data.Level < (ulong)((long)GameConst.GetInt32(15)))
         {
             GameUIManager.mInstance.ShowMessageTipByKey("d2mNeedLvl", 0f, 0f);
             return;
         }
         GameUIManager.mInstance.CreateSession<GUIAlchemy>(null);
         break;
     case EActivityValueType.EAVT_PetShopDiscount:
         GUIShopScene.TryOpen(EShopType.EShop_Common2);
         break;
     case EActivityValueType.EAVT_GuildSign:
     {
         if ((ulong)Globals.Instance.Player.Data.Level < (ulong)((long)GameConst.GetInt32(4)))
         {
             GameUIManager.mInstance.ShowMessageTip(Singleton<StringManager>.Instance.GetString("guild28", new object[]
             {
                 GameConst.GetInt32(4)
             }), 0f, 0f);
             return;
         }
         MC2S_GetGuildData ojb = new MC2S_GetGuildData();
         Globals.Instance.CliSession.Send(901, ojb);
         break;
     }
     case EActivityValueType.EAVT_SRDiscount:
         if (GUISoulReliquaryInfo.IsVisible)
         {
             GUIReward.Change2Reward(GUIReward.ERewardActivityType.ERAT_SoulReliquary);
         }
         else
         {
             GameUIManager.mInstance.ShowMessageTip(Singleton<StringManager>.Instance.GetString("activitySoulReliquaryCondition", new object[]
             {
                 GameConst.GetInt32(55)
             }), 0f, 0f);
         }
         break;
     }
 }
Пример #3
0
 public void OnGuildBtnClick(GameObject go)
 {
     Globals.Instance.EffectSoundMgr.Play("ui/ui_001");
     if ((ulong)Globals.Instance.Player.Data.Level < (ulong)((long)GameConst.GetInt32(4)))
     {
         GameUIManager.mInstance.ShowMessageTip(Singleton<StringManager>.Instance.GetString("guild28", new object[]
         {
             GameConst.GetInt32(4)
         }), 0f, 0f);
         return;
     }
     MC2S_GetGuildData ojb = new MC2S_GetGuildData();
     Globals.Instance.CliSession.Send(901, ojb);
 }
Пример #4
0
 private void OnRefreshBtnClick(GameObject go)
 {
     if (this.mBriefGuildData != null && this.mBriefGuildData.mIsRefreshBtn)
     {
         MC2S_GetGuildData ojb = new MC2S_GetGuildData();
         Globals.Instance.CliSession.Send(901, ojb);
     }
 }