Beispiel #1
0
        private static void Load_Labels()
        {
            LabelList = new List <TextSprite>();
            string tex = "";

            if (Editor.Mouse_Static && (Editor.CurrentBlock != null))
            {
                tex = Textures.StaticTextureToLabelText(Editor.CurrentBlock.texturename);
            }
            if (Editor.Mouse_Entity)
            {
                tex = "Dog";
                if (Editor.CurrentEntity != null)
                {
                    tex = Textures.EntityTextureToLabelText(Editor.CurrentEntity.sqobject.texturename);
                }
            }
            if (Editor.Mouse_Items)
            {
                tex = "Player";
                if (Editor.CurrentCollectable != null)
                {
                    tex = Editor.CurrentCollectable.texturename;
                }
                else if ((Editor.CurrentBlock != null) && (Editor.CurrentBlock.texturename != "A"))
                {
                    tex = Editor.CurrentBlock.texturename;
                }
            }
            LabelList.Add(new TextSprite(tex, "Medium", new Vector2(90f, 525f), Color.Yellow)); //0
            tex = "";
            if (Editor.Mouse_Entity)
            {
                tex = "1";
                if (Editor.CurrentEntity != null)
                {
                    tex = Editor.CurrentEntity.Job.Substring(Editor.CurrentEntity.Job.Length - 1);
                }
            }
            LabelList.Add(new TextSprite(tex, "Medium", new Vector2(215f, 450f), Color.Yellow)); //1
            if (Editor.Mouse_Entity)
            {
                tex = "t";
                if (Editor.CurrentEntity.sqobject.Flipeffect == 0)
                {
                    tex = "f";
                }
            }
            LabelList.Add(new TextSprite(tex, "Medium", new Vector2(275f, 450f), Color.Yellow)); //2
            tex = "";
            if (Editor.Mouse_Static || Editor.Mouse_Items)
            {
                tex = Editor.BrushSize.ToString();
            }
            LabelList.Add(new TextSprite(tex, "Medium", new Vector2(335f, 450f), Color.Yellow)); //3
            tex = Level._backgroundTexture;
            LabelList.Add(new TextSprite(tex, "Medium", new Vector2(440f, 450f), Color.Yellow)); //4
            tex = "";
            if (Editor.Mouse_Entity)
            {
                tex = Editor.CurrentEntity.StartCheckpoint.ToString();
            }
            LabelList.Add(new TextSprite(tex, "Medium", new Vector2(540f, 450f), Color.Yellow)); //5
            tex = "";
            if (Editor.Mouse_Entity)
            {
                tex = Editor.CurrentEntity.StartCheckpoint.ToString();
            }
            LabelList.Add(new TextSprite(tex, "Medium", new Vector2(640f, 450f), Color.Yellow)); //6
        }