Example #1
0
	public void SetEndEffect( bool isEnable, eRESULTCODE _result = eRESULTCODE.eRESULT_MAX )
	{
		if( false == isEnable )
		{
			goEffectSucc.SetActiveRecursively( false );
			goEffectFailed.SetActiveRecursively( false );
			goEffectFailedBroken.SetActiveRecursively( false );
			return;
		}
		
		switch( _result )
		{
		case eRESULTCODE.eRESULT_ITEM_STRENGTHEN_SUCCESS:
			goEffectSucc.SetActiveRecursively( isEnable );
			break;
			
		case eRESULTCODE.eRESULT_ITEM_STRENGTHEN_FAIL:
			goEffectFailedBroken.SetActiveRecursively( isEnable );
			break;
			
		case eRESULTCODE.eRESULT_ITEM_STRENGTHEN_FAIL_PROTECT:
			goEffectFailed.SetActiveRecursively( isEnable );
			break;
		}
		
	}
Example #2
0
	public void ShowStrengthenPanel( GameObject go, eRESULTCODE resultCode, uint uniqKey)
	{
		// *(42) : Strengthen succeeded
		// +(43) : Strengthen failed
		// @(64) : Strengthen destroy
		switch( resultCode)
		{
		case eRESULTCODE.eRESULT_ITEM_STRENGTHEN_FAIL:
			_ShowNumberPanel( go, "@", 0, false, false, 1.0f, 1.2f);
			break;
		case eRESULTCODE.eRESULT_ITEM_STRENGTHEN_FAIL_PROTECT:
			_ShowNumberPanel( go, "+", 0, false, false, 1.0f, 1.2f);
			break;
		case eRESULTCODE.eRESULT_ITEM_STRENGTHEN_SUCCESS:
			_ShowNumberPanel( go, "*", 0, false, false, 1.0f, 1.2f);
			#region -GameGuide_Upgrade
			if( AsUserInfo.Instance.SavedCharStat.uniqKey_ == uniqKey)
				AsGameGuideManager.Instance.CheckUp( eGameGuideType.Upgrade, -1);
			#endregion
			break;
		}
	}
Example #3
0
	private void Trade_PrintErrSystemMsg(eRESULTCODE eResult)
	{
		switch( eResult)
		{
		case eRESULTCODE.eRESULT_FAIL_TRADE_NOT:
			AsChatManager.Instance.InsertChat( AsTableManager.Instance.GetTbl_String(62), eCHATTYPE.eCHATTYPE_SYSTEM);
			break;
		case eRESULTCODE.eRESULT_FAIL_TRADE_BADUSER:
			AsChatManager.Instance.InsertChat( AsTableManager.Instance.GetTbl_String(25), eCHATTYPE.eCHATTYPE_SYSTEM);
			break;
		case eRESULTCODE.eRESULT_FAIL_TRADE_REFUSE:
			AsChatManager.Instance.InsertChat( AsTableManager.Instance.GetTbl_String(63), eCHATTYPE.eCHATTYPE_SYSTEM);
			break;
		case eRESULTCODE.eRESULT_FAIL_TRADE_GAP:
			AsChatManager.Instance.InsertChat( AsTableManager.Instance.GetTbl_String(32), eCHATTYPE.eCHATTYPE_SYSTEM);
			break;
		case eRESULTCODE.eRESULT_FAIL_TRADE_IMPOSSIBLE_ITEM:
			AsChatManager.Instance.InsertChat( AsTableManager.Instance.GetTbl_String(29), eCHATTYPE.eCHATTYPE_SYSTEM);
			break;
		case eRESULTCODE.eRESULT_FAIL_TRADE_ALREADY_ITEM:
			AsChatManager.Instance.InsertChat( AsTableManager.Instance.GetTbl_String(64), eCHATTYPE.eCHATTYPE_SYSTEM);
			break;
		case eRESULTCODE.eRESULT_FAIL_TRADE_EMPTY_ITEM:
			AsChatManager.Instance.InsertChat( AsTableManager.Instance.GetTbl_String(65), eCHATTYPE.eCHATTYPE_SYSTEM);
			break;
		case eRESULTCODE.eRESULT_FAIL_TRADE_OVERGOLD:
			AsChatManager.Instance.InsertChat( AsTableManager.Instance.GetTbl_String(66), eCHATTYPE.eCHATTYPE_SYSTEM);
			break;
		case eRESULTCODE.eRESULT_FAIL_TRADE_NOTREADY:
			AsChatManager.Instance.InsertChat( AsTableManager.Instance.GetTbl_String(67), eCHATTYPE.eCHATTYPE_SYSTEM);
			break;
		case eRESULTCODE.eRESULT_FAIL_TRADE_INVENTORYFULL:
			AsHudDlgMgr.Instance.OpenTradeErrorMsgBox( AsTableManager.Instance.GetTbl_String(126), AsTableManager.Instance.GetTbl_String(31));
			break;
		case eRESULTCODE.eRESULT_FAIL_TRADE_OTHERNOTOK:
			AsEventNotifyMgr.Instance.CenterNotify.AddTradeMessage( AsTableManager.Instance.GetTbl_String(68));
			break;
		case eRESULTCODE.eRESULT_FAIL_TRADE_LOCK:
			AsChatManager.Instance.InsertChat( AsTableManager.Instance.GetTbl_String(69), eCHATTYPE.eCHATTYPE_SYSTEM);
			break;
		case eRESULTCODE.eRESULT_FAIL_TRADE_ALREADY_CANCEL:
			AsHudDlgMgr.Instance.OpenTradeErrorMsgBox( AsTableManager.Instance.GetTbl_String(1106), AsTableManager.Instance.GetTbl_String(26), true);
			break;
		}
	}
Example #4
0
    //소유하고 있는 gold보다 아이템이 비쌉니다.
   	//더이상 골드을 추가할 수 없습니다.
    void ItemBuyResultMessage(eRESULTCODE _result, bool _isSell)
    {
        string message = string.Empty;
        string title   = AsTableManager.Instance.GetTbl_String(126);
        switch (_result)
        {
            case eRESULTCODE.eRESULT_SUCC:
                {
                    if (_isSell == true)
                    {
                        AsSoundManager.Instance.PlaySound(AsSoundPath.ItemBuyResultGold, Vector3.zero, false);
                    }
                    else
                    {
						if (AsHudDlgMgr.Instance.npcStore != null)
						{
							AsHudDlgMgr.Instance.npcStore.RequestShopInfo();
							AsHudDlgMgr.Instance.npcStore.PlayDealSound();
						}
                    }
                }
                break;
            case eRESULTCODE.eRESULT_FAIL_SHOP_NOTGOLD:
                message = AsTableManager.Instance.GetTbl_String(1400);
                break;

            case eRESULTCODE.eRESULT_FAIL_SHOP_NOTCASH:
                message = AsTableManager.Instance.GetTbl_String(264);
                break;

            case eRESULTCODE.eRESULT_FAIL_SHOP_INVENTORYFULL:
                message = AsTableManager.Instance.GetTbl_String(1399);
                break;

            case eRESULTCODE.eRESULT_FAIL_SHOP_OVERGOLD:
                message = AsTableManager.Instance.GetTbl_String(205);
                break;

            case eRESULTCODE.eRESULT_FAIL_SHOP_IMPOSSIBLE_ITEM:
                message = AsTableManager.Instance.GetTbl_String(1415);
                break;

			case eRESULTCODE.eRESULT_FAIL_SHOP_HAVE_NOTITEM:
				message = AsTableManager.Instance.GetTbl_String(2193);
				break;
			case eRESULTCODE.eRESULT_FAIL_SHOP_BUY_LIMIT:
				message = AsTableManager.Instance.GetTbl_String(27);
				if (AsHudDlgMgr.Instance.IsOpenNpcStore)
					AsHudDlgMgr.Instance.npcStore.RequestShopInfo();
				break;

            default:
                message = _result.ToString();
                break;
        }

        if (message != string.Empty)
        {
            if (_result == eRESULTCODE.eRESULT_FAIL_SHOP_NOTCASH )
            {
                if (AsGameMain.useCashShop == true)
                    AsNotify.Instance.MessageBox(title, message, AsHudDlgMgr.Instance, "NotEnoughMiracleProcessInGame", AsNotify.MSG_BOX_TYPE.MBT_OKCANCEL, AsNotify.MSG_BOX_ICON.MBI_NOTICE);
                else
                    AsNotify.Instance.MessageBox(title, message, AsNotify.MSG_BOX_TYPE.MBT_OK);
            }
            else
                AsNotify.Instance.MessageBox(title, message, null, string.Empty, AsNotify.MSG_BOX_TYPE.MBT_OK, AsNotify.MSG_BOX_ICON.MBI_NOTICE);
        }
    }
	private void _Error(eRESULTCODE result)
	{
		switch( result)
		{
		case eRESULTCODE.eRESULT_FAIL_INDUN_NOTPARTY: break;
		case eRESULTCODE.eRESULT_FAIL_INDUN_OVERMEMBER: break;
		case eRESULTCODE.eRESULT_FAIL_INDUN_LEVEL: break;
		case eRESULTCODE.eRESULT_FAIL_INDUN_NOTEMPTYINDUN: break;
		case eRESULTCODE.eRESULT_FAIL_INDUN_SYSTEMWAIT: break;
		case eRESULTCODE.eRESULT_FAIL_INDUN_CHARACTER_DEATH: break;
		case eRESULTCODE.eRESULT_FAIL_INDUN_NOTCREATED: break;
		case eRESULTCODE.eRESULT_FAIL_INDUN_POSSIBLECONTENT: break;
		}
	}