Ejemplo n.º 1
0
        public override void DrawTiledArea(KthuraObject obj, int ix = 0, int iy = 0, int scrollx = 0, int scrolly = 0)
        {
            var tx = GetTex(obj);

            TQMG.Color((byte)obj.R, (byte)obj.G, (byte)obj.B);
            //TQMG.SetAlphaFloat((float)obj.Alpha1000 / 1000);
            TQMG.SetAlpha((byte)obj.Alpha255);
            if (tx != null)
            {
                TQMG.Tile(tx, obj.insertx, obj.inserty, obj.x + ix - scrollx, obj.y + iy - scrolly, obj.w, obj.h, obj.AnimFrame);
            }
            TQMG.SetAlpha(255);
        }
Ejemplo n.º 2
0
 public override void Draw(GameTime gameTime)
 {
     TQMG.Color(255, 255, 255);
     if (BackGround != null)
     {
         TQMG.Tile(BackGround, 0, 0, 0, 0, TQMG.ScrWidth, TQMG.ScrHeight);
     }
     try {
         var y = ScrollUp - StartY;
         foreach (BCLine l in Line)
         {
             if (y > -30)
             {
                 //SysFont.DrawText(l.txt, 2, y);
                 l.Show(2, y);
             }
             y += 22;
         }
         TQMG.Color(255, 180, 0);
         SysFont.DrawText($">{TypingCommand}_", 2, y);
     } catch (Exception error) {
         Debug.WriteLine($"Exception during the debug log rendering!\n{error.Message}\nTraceback:\n{error.StackTrace}\n\n");
     }
 }