コード例 #1
0
    private void OnErrorMessageboxChoice(ID_BUTTON buttonID)
    {
        if (buttonID == ID_BUTTON.ID_OK)
        {
            switch (_errorCode)
            {
            case 5001:                     //buy hc
                UIManager.Instance.CloseAllOpenUI();
                //UIManager.Instance.CloseUI(_uiToClose);
                UIManager.Instance.OpenUI("Store", 1);
                break;

            case 5002:                     //buy sc
                UIManager.Instance.CloseUI(_uiToClose);
                UIManager.Instance.OpenUI("Store", 2);
                break;

            case 5003:                     //expand bag
                FCUIInventoryItemList.OnClickIncrementButton();
                break;

            case 5004:                     //buy vitality
                UIManager.Instance.CloseUI(_uiToClose);
                if (FCTopBar.Instance != null)
                {
                    FCTopBar.Instance.BuyVitality();
                }
                break;
            }            //end switch
        }

        _errorCode = 0;
        _uiToClose = null;
    }
コード例 #2
0
 private void OnMessageBoxNotEnoughSpaceCallback(ID_BUTTON buttonID)
 {
     FCUIInventoryItemList.OnClickIncrementButton();
 }