示例#1
0
    public override void SetBasePos()
    {
        if (m_scriptScore)
        {
            m_scriptScore.SetPos(0.0f, 60.0f);
        }

        int PlatformType = DefineBaseManager.inst.GetPlatformType();

        if (PlatformType == (int)PLATFORM_TYPE.PLATFORM_ANDROID ||
            PlatformType == (int)PLATFORM_TYPE.PLATFORM_IPHONE)
        {
            EzGuiSetting.SetPosEzGui(m_btnGoReady, -120.0f, -40.0f);
            EzGuiSetting.SetPosEzGui(m_btnGoMain, 120.0f, -40.0f);
        }
        else
        {
            EzGuiSetting.SetPosEzGui(m_btnGoReady, 0.0f, -40.0f);
            EzGuiSetting.SetPosEzGui(m_btnGoMain, 0.0f, -40.0f);
        }
    }
示例#2
0
    public override void SetBasePos()
    {
        float Gap = DefineBaseManager.inst.KittyGap;

        EzGuiSetting.SetPosEzGui(m_btnPause, 0.0f, 0.0f);
        EzGuiSetting.SetPosEzGui(m_btnPlay, 0.0f, 0.0f);

        int   count    = Main.game.GetGameItemManager().GetServiceableActiveItemNum();
        float BasePosX = 150.0f;
        float BasePosY = 55.0f;

        int PlatformType = DefineBaseManager.inst.GetPlatformType();

        if (PlatformType == (int)PLATFORM_TYPE.PLATFORM_ANDROID ||
            PlatformType == (int)PLATFORM_TYPE.PLATFORM_IPHONE)
        {
            for (int i = 0; i < count; i++)
            {
                EzGuiSetting.SetPosEzGui(m_btnItem[i], BasePosX - BasePosX * i, BasePosY);
                EzGuiSetting.SetPosEzGui(m_txtItem[i], BasePosX - BasePosX * i - 35.0f, BasePosY + 15.0f);
            }
        }
        else
        {
            for (int i = 0; i < count; i++)
            {
                EzGuiSetting.SetPosEzGui(m_btnItem[i], 0.0f, BasePosY);
                EzGuiSetting.SetPosEzGui(m_txtItem[i], -35.0f, BasePosY + 15.0f);
            }
        }

        if (m_scriptScore)
        {
            m_scriptScore.SetPos(0.0f, 65.0f);
        }
    }