Exemplo n.º 1
0
    public override void show()
    {
#if UNITY_EDITOR
        Debug.LogError("=== show loading");
#endif

        GameManager.me.uiManager.menuCamera3.gameObject.SetActive(false);

        _startTime = RealTime.time;

        GameManager.me.playCamRenderImage.enabled = false;

        ready = false;

        base.show();

        removeSample();

        init();

        UIPlay.nowSkillEffectCamStatus = UIPlay.SKILL_EFFECT_CAM_STATUS.None;

        GameManager.soundManager.clearSound();

        lbTip.text = LoadingTipData.getTip();
    }
Exemplo n.º 2
0
    private void Awake()
    {
        InventoryViewer.ViewerList.Clear();
        System.GC.Collect();

        SceneManager.Instance.m_LoadingManager = this;

        LoadingTipData data = Resources.Load <LoadingTipData>("LoadingTipData");

        m_TipText.text = data.m_Tip[Random.Range(0, data.m_Tip.Length - 1)];
    }
Exemplo n.º 3
0
    void OnEnable()
    {
        if (m_ProGressbar != null)
        {
            m_ProGressbar.value = 0.0f;
            SetEffectPos();
        }

        int[]  idArray = GameMethod.GetRandIntArrayFromList(LoadingTipData.GetIdList(), 1);
        string tip     = ConfigReader.GetLoadingTipInfo(idArray[0]).Tip;

        labelTip.text = tip;
    }
Exemplo n.º 4
0
//	static List<int> showedArr =
    static void InitData_LoadingTipInfo()
    {
        loadingTipArr.Clear();

        string filePath = Application.persistentDataPath + "/Data/TipLoading.txt";

        List <LoadingTipData> temArr = ReflectionAssignment.LoadAndResolveData <LoadingTipData> (filePath);

        for (int i = 0; i < temArr.Count; i++)
        {
            LoadingTipData oneTem = temArr [i];
            if (oneTem != null)
            {
                loadingTipArr.Add(oneTem);
            }
        }
        if (temArr.Count == 0)
        {
            Debuger.LogError("TipLoading.txt no content ");
        }
    }
Exemplo n.º 5
0
    public ReadLoadingTipConfig(string xmlFilePath)
    {
        TextAsset xmlfile = Resources.Load(xmlFilePath) as TextAsset;

        if (!xmlfile)
        {
            Debug.LogError(" error infos: 没有找到指定的xml文件:" + xmlFilePath);
        }

        xmlDoc = new XmlDocument();
        xmlDoc.LoadXml(xmlfile.text);

        XmlNodeList infoNodeList = xmlDoc.SelectSingleNode("LoadingTips").ChildNodes;

        for (int i = 0; i < infoNodeList.Count; i++)//(XmlNode xNode in infoNodeList)
        {
            if ((infoNodeList[i] as XmlElement).GetAttributeNode("Num") == null)
            {
                continue;
            }

            string typeName = (infoNodeList[i] as XmlElement).GetAttributeNode("Num").InnerText;

            LoadingTipData stipInfo = new LoadingTipData();
            stipInfo.Num = Convert.ToInt32(typeName);
            foreach (XmlElement xEle in infoNodeList[i].ChildNodes)
            {
                #region 搜索
                switch (xEle.Name)
                {
                case "Content":
                    stipInfo.Tip = Convert.ToString(xEle.InnerText);
                    break;
                }
                #endregion
            }
            ConfigReader.loadingTipXmlInfoDic.Add(stipInfo.Num, stipInfo);
            LoadingTipData.AddIdList(stipInfo.Num);
        }
    }
Exemplo n.º 6
0
	public void LoadTable()
	{
		try
		{
			XmlElement root = AsTableBase.GetXmlRootElement( "Table/TipTable");
			XmlNodeList nodes = root.ChildNodes;

			foreach( XmlNode node in nodes)
			{
				LoadingTipData tipData = new LoadingTipData( (XmlElement)node);
				dataList.Add( tipData);
			}
		}
		catch( System.Exception e)
		{
			Debug.LogError(e);
			AsUtil.ShutDown( "AsLoadingTipManager:LoadTable");
		}
	}