예제 #1
0
	public void Init( GameGuideData data)
	{
		StringBuilder sb = new StringBuilder( "UIPatchResources/GameGuide/");
		sb.Append( data.imagePath);
		Texture2D tex = ResourceLoad.Loadtexture( sb.ToString()) as Texture2D;
		image.SetTexture( tex);
		image.SetUVsFromPixelCoords( new Rect( 0.0f, 0.0f, tex.width, tex.height));
	}
예제 #2
0
	void OnRecoverCondition()
	{
#if false
		AsHudDlgMgr.Instance.CloseRecommendInfoDlg();	// #17479
		if( AsGameMain.useCashShop == true)
			AsHudDlgMgr.Instance.OpenCashStore( 0, AsEntityManager.Instance.UserEntity.GetProperty<eCLASS>( eComponentProperty.CLASS), eCashStoreMenuMode.USEITEM, 2, 4);
#endif
		AsChatFullPanel.Instance.Close();

		GameGuideData data = new GameGuideData();
		data.imagePath = "Guide_012";
		AsGameGuideManager.Instance.DisplayGuide( data);
	}
예제 #3
0
	//$yde
	void _FingerProc(GameGuideData _data)
	{
		if(_data == null)
		{
			Debug.LogError("AsGameGuideManager:: _FingerProc: _data is null");
			return;
		}

		string str = "UI/Optimization/FingerMove/Prefabs/";
		str = str + _data.imagePath;
		Object o = ResourceLoad.LoadGameObject(str);
		if(o == null)
		{
			Debug.LogError("AsGameGuideManager:: _FingerProc: prefab is not found. _data.index" + _data.index + ", _data.imagePath = " + _data.imagePath);
			return;
		}

		GameObject go = GameObject.Instantiate( ResourceLoad.LoadGameObject(str)) as GameObject;
		GameObject.Destroy(go, 3f);
	}
예제 #4
0
	public void LoadTable()
	{
		try
		{
			XmlElement root = AsTableBase.GetXmlRootElement( "Table/GameGuide");
			XmlNodeList nodes = root.ChildNodes;

			foreach( XmlNode node in nodes)
			{
				GameGuideData guideData = new GameGuideData( (XmlElement)node);
				
				if( true == dicGuide.ContainsKey( guideData.eType))
				{
					List<GameGuideData> lstGuide = dicGuide[ guideData.eType];
					lstGuide.Add( guideData);
				}
				else
				{
					List<GameGuideData> lstGuide = new List<GameGuideData>();
					lstGuide.Add( guideData);
					dicGuide.Add( guideData.eType, lstGuide);
				}
			}
		}
		catch( System.Exception e)
		{
			Debug.LogError(e);
			AsUtil.ShutDown( "AsLoadingTipManager:LoadTable");
		}
	}
예제 #5
0
	public void DisplayGuide( GameGuideData guideData)
	{
		if( true == AsUserInfo.Instance.IsDied())
			return;

		if( true == TargetDecider.CheckCurrentMapIsIndun() && eGameGuideType.Death == guideData.eType)
			return;
		
		if( null != curGuideDlg)
			curGuideDlg.Close();

		//$yde
		if(guideData.nameIdx == 0)
		{
			_FingerProc(guideData);
			return;
		}
		
		GameObject go = GameObject.Instantiate( ResourceLoad.LoadGameObject( "UI/AsGUI/GUI_GameGuide")) as GameObject;
		Debug.Assert( null != go);
		AsGameGuideDlg guideDlg = go.GetComponentInChildren<AsGameGuideDlg>();
		Debug.Assert( null != guideDlg);
		guideDlg.Init( guideData);
		curGuideDlg = guideDlg;
	}