public void OnClanLegendCupBtnClick() { cmd_clan_basedata cmdBasedata = LogicDataCenter.clanDataManager.ClanBaseData; int nSelfID = EntityFactory.MainHeroView.Property.GetNumProp(ENTITY_PROPERTY.PROPERTY_ID); if (cmdBasedata.lLegendCupID > 0) // 比赛中 { cmd_legendcup_view_single_cup cupdata = new cmd_legendcup_view_single_cup(); cupdata.nLegendCupID = cmdBasedata.lLegendCupID; ViewEventHelper.Instance.SendCommand <cmd_legendcup_view_single_cup>(GameLogicDef.GVIEWCMD_LEGENDCUP_VIEW_SINGLE_CUP, ref cupdata); } else { if (nSelfID == cmdBasedata.nShaikhID) // 免费发布、付费发布 { //UISystem.Instance.SendWndMessage(WndMsgID.WND_MSG_LEGENDCUP_CREATETYPE_SHOW, null); // 直接选择联盟杯赛 cmd_legendcup_req_create_cup_type cupType = new cmd_legendcup_req_create_cup_type(); cupType.byLegendCupType = (byte)ELegendCupType.emCupType_Clan; // 杯赛创建类型 cupType.nActorID = EntityFactory.MainHeroView.Property.GetNumProp(ENTITY_PROPERTY.PROPERTY_ID); ViewEventHelper.Instance.SendCommand <cmd_legendcup_req_create_cup_type>(GameLogicDef.GVIEWCMD_LEGENDCUP_CREATE_TYPE_REQ, ref cupType); } else // 等待发布 { UIUtil.ShowSystemMessage(EMChatTipID.CHAT_TIP_LEGENDCUP_CLAN_WAIT_SHAIKH_CREATE); } } }
private bool ConfirmCreateCupCallBack() { // 直接打开创建联盟杯赛界面 cmd_legendcup_req_create_cup_type cupType = new cmd_legendcup_req_create_cup_type(); cupType.byLegendCupType = (byte)ELegendCupType.emCupType_Clan; // 杯赛创建类型 cupType.nActorID = EntityFactory.MainHeroView.Property.GetNumProp(ENTITY_PROPERTY.PROPERTY_ID); ViewEventHelper.Instance.SendCommand <cmd_legendcup_req_create_cup_type>(GameLogicDef.GVIEWCMD_LEGENDCUP_CREATE_TYPE_REQ, ref cupType); return(true); }
public void OnClickConfirmBtn() { if (CupTypeBtnGroup.SelectedIndex < 0) { UIUtil.ShowSystemMessage(EMChatTipID.CHAT_TIP_LEGENDCUP_NOT_SELECT_ANY_CUP_TYPE); return; } cmd_legendcup_req_create_cup_type cupType = new cmd_legendcup_req_create_cup_type(); cupType.byLegendCupType = (byte)m_typeItem[CupTypeBtnGroup.SelectedIndex].CupCreateType; // 杯赛创建类型 cupType.nActorID = EntityFactory.MainHeroView.Property.GetNumProp(ENTITY_PROPERTY.PROPERTY_ID); ViewEventHelper.Instance.SendCommand <cmd_legendcup_req_create_cup_type>(GameLogicDef.GVIEWCMD_LEGENDCUP_CREATE_TYPE_REQ, ref cupType); }