Beispiel #1
0
 public override void Draw(Game1 game, GameTime gameTime)
 {
     TQMG.Color(0, 180, 255); // This effect was originall a bug, but in stead of fixing it, I decided to "seal" it in :P
     TQMG.SimpleTile(UI.back, 0, 0, UI.ScrWidth, UI.ScrHeight);
     TQMG.Color(255, 180, 0);
     UI.font32.DrawText($"All Textures! Starting at {spot.ToString("X2")}", UI.ScrWidth / 2, 50, TQMG_TextAlign.Center);
     TQMG.Color(180, 0, 255);
     UI.font20.DrawText("Prefix:", 10, 100);
     TQMG.Color(0, 18, 25);
     TQMG.DrawRectangle(10, 125, UI.ScrWidth - 20, 22);
     TQMG.Color(0, 180, 255);
     UI.font20.DrawText($"{prefix}|", 12, 126);
 }
        public override void Draw(Game1 game, GameTime gameTime)
        {
            var d = DateTime.Now.Second;
            var c = "|";
            var y = 100;

            if (d % 2 == 0)
            {
                c = "";
            }
            TQMG.Color(127, 127, 127);
            TQMG.SimpleTile(UI.back, 0, 0, UI.ScrWidth, UI.ScrHeight);
            TQMG.Color(255, 180, 0);
            font32.DrawText($"Object ({x},{y}): {obj.Cl("TeddyID")}", UI.ScrWidth / 2, 50, TQMG_TextAlign.Center);
            foreach (string key in ProjectData.ProjectConfig.List($"OBJECT.{obj.ObjType}"))
            {
                if (curField == "")
                {
                    curField = key;
                }
                var cur = "";
                var r   = (byte)180;
                var g   = (byte)0;
                var b   = (byte)255;
                if (key == curField)
                {
                    cur = c;
                    r   = 0;
                    g   = 180;
                    b   = 255;
                }
                TQMG.Color((byte)(r / 10), (byte)(g / 10), (byte)(b / 10));
                TQMG.DrawRectangle(250, y, UI.ScrWidth - 300, 21);
                TQMG.Color(r, g, b);
                font20.DrawText($"{obj.Cl(key)}{cur}", 252, y);
                TQMG.Color((byte)(255 - r), (byte)(255 - g), (byte)(255 - b));
                font20.DrawText(key, 240, y, TQMG_TextAlign.Right);
                if (muis.LeftButton == ButtonState.Pressed && muis.Y > y && muis.Y < y + 20)
                {
                    curField = key;
                }
                y += 23;
            }
        }
 public override void Draw(Game1 game, GameTime gameTime)
 {
     TQMG.Color(127, 127, 127);
     TQMG.SimpleTile(UI.back, 0, 0, UI.ScrWidth, UI.ScrHeight);
     TQMG.Color(255, 180, 0);
     Caption.Draw(UI.ScrWidth / 2, 25, TQMG_TextAlign.Center);
     foreach (ObjectItem item in ObjectItems)
     {
         TQMG.Color(180, 0, 255);
         if (mstate.X > item.x && mstate.X < item.x + 95 && mstate.Y > item.y && mstate.Y < item.y + 20)
         {
             TQMG.Color(0, 180, 255);
             if (mstate.LeftButton == ButtonState.Pressed)
             {
                 UI.CurrentObject = item.ObjName;
                 Main.ComeToMe();
                 UI.DontMouse = true;
             }
         }
         item.ObjText.Draw(item.x + 3, item.y);
     }
 }