예제 #1
0
    void SendReqPowerUpMsg()
    {
        CG_REQ_POWERUP packet = (CG_REQ_POWERUP)PacketDistributed.CreatePacket(MessageID.PACKET_CG_REQ_POWERUP);

        packet.Type = (int)BePowerData.BePowerType.BPTDEFINE_GEM;
        packet.Flag = 1;
        packet.SendPacket();
    }
예제 #2
0
    public void CombatNumClick()
    {
        //UIManager.ShowUI(UIInfo.CheckPowerRoot);
        CG_REQ_POWERUP packet = (CG_REQ_POWERUP)PacketDistributed.CreatePacket(MessageID.PACKET_CG_REQ_POWERUP);

        packet.Type = (int)BePowerData.BePowerType.BPTDEFINE_GEM;
        packet.Flag = 1;
        packet.SendPacket();
    }
예제 #3
0
    //游戏帮助
    public void OnHelpClick()
    {
        //UIManager.ShowUI(UIInfo.CheckPowerRoot);
        CG_REQ_POWERUP packet = (CG_REQ_POWERUP)PacketDistributed.CreatePacket(MessageID.PACKET_CG_REQ_POWERUP);

        packet.Type = (int)BePowerData.BePowerType.BPTDEFINE_GEM;
        packet.Flag = 1;
        packet.SendPacket();
        UIManager.CloseUI(UIInfo.SystemAndAutoFight);

        //string dicStr = "目前没有实现";
        // MessageBoxLogic.OpenOKCancelBox(dicStr, "", OnAccountOK, OnMessageBoxNO);
    }
예제 #4
0
    void OnTabChangedCall(TabButton button)
    {
        CG_REQ_POWERUP packet = (CG_REQ_POWERUP)PacketDistributed.CreatePacket(MessageID.PACKET_CG_REQ_POWERUP);

        packet.Flag = 0;
        if (button.name == "Tab1")
        {
            packet.Type = (int)BePowerData.BePowerType.BPTDEFINE_EQUIP;
            packet.SendPacket();
        }
        else if (button.name == "Tab2")
        {
            packet.Type = (int)BePowerData.BePowerType.BPTDEFINE_BELLE;
            packet.SendPacket();
        }
        else if (button.name == "Tab3")
        {
            packet.Type = (int)BePowerData.BePowerType.BPTDEFINE_GEM;
            packet.SendPacket();
        }
        else if (button.name == "Tab4")
        {
            packet.Type = (int)BePowerData.BePowerType.BPTDEFINE_XIAKE;
            packet.SendPacket();
        }
        else if (button.name == "Tab5")
        {
            packet.Type = (int)BePowerData.BePowerType.BPTDEFINE_SKILL;
            packet.SendPacket();
        }
        else if (button.name == "Tab6")
        {
            packet.Type = (int)BePowerData.BePowerType.BPTDEFINE_FELLOW;
            packet.SendPacket();
        }
    }