Esempio n. 1
0
    private void SetBoardAnimation(float _Delta)
    {
        m_imgPopupBoard.SetTextureSize(m_bBaseSizeX * _Delta, m_bBaseSizeY * _Delta);
        m_imgPopupBackground.SetTextureSize((m_bBaseSizeX - 20.0f) * _Delta, (m_bBaseSizeY - 90.0f) * _Delta);

        m_imgPopupBoard.SetPosX(m_fStartPosX - (m_fStartPosX - m_fFinishPosX) * _Delta);
        m_imgPopupBoard.SetPosY(m_fStartPosY - (m_fStartPosY - m_fFinishPosY) * _Delta);
        m_imgPopupBackground.SetPosX(m_fStartPosX - (m_fStartPosX - m_fFinishPosX) * _Delta);
        m_imgPopupBackground.SetPosY(m_fStartPosY - (m_fStartPosY - m_fFinishPosY - 35.0f) * _Delta);
    }
Esempio n. 2
0
    private void SetItemSelect(bool IsValid)
    {
        if (Main.game.GetGameItemManager().GetUseActiveItem())
        {
            EzGuiSetting.SetValidEzGui(m_imgSelectBtn, IsValid);

            int ItemIdx = Main.game.GetGameItemManager().GetUseActiveItemIndex();
            for (int i = 0; i < m_btnItem.Length; i++)
            {
                if (ItemIdx == (int)m_btnItem[i].GetUIButton().Data)
                {
                    m_imgSelectBtn.SetPosX(m_btnItem[i].GetPosX());
                    m_imgSelectBtn.SetPosY(m_btnItem[i].GetPosY());
                }
            }
        }
        else
        {
            EzGuiSetting.SetValidEzGui(m_imgSelectBtn, false);
        }
    }