Esempio n. 1
0
		public ParticleReorder ()
		{
			order = 0;
			Color = CCColor3B.Black;
			RemoveChild(Background, true);
			Background = null;

			label = new LoadingLabel();
			AddChild(label, 10);
		}
        public LabelFNTFromHTTP()
        {
            m_time = 0;

            Color = new CCColor3B(128, 128, 128);
            Opacity = 255;

            loading = new LoadingLabel();
            AddChild(loading);

            Schedule(step);

            ScheduleOnce((dt) =>
            {
                if (!loading.Visible)
                    loading.RemoveFromParent();
                else
                {
                    loading.StopAllActions();
                    loading.Scale = 1;
                    loading.Text = "Loading Timeout";    
                }
            },
            5  // delay 5 seconds

                );
        }