public override Sprite GetDebugOverlay(ObjectEntry obj) { var height = obj.SubType << 4; var bitmap = new BitmapBits(97, height + 1); bitmap.DrawSine(LevelData.ColorWhite, 48, -48, 48, 192, height + 48); bitmap.DrawSine(LevelData.ColorWhite, 48, -144, 48, 192, height + 144); return(new Sprite(bitmap, -48, 0)); }
public override Sprite GetDebugOverlay(ObjectEntry obj) { if (obj.SubType == 0) { var bitmap = new BitmapBits(225, 39); bitmap.DrawLine(LevelData.ColorWhite, 0, 0, 0, 38); bitmap.DrawLine(LevelData.ColorWhite, 0, 19, 224, 19); bitmap.DrawLine(LevelData.ColorWhite, 224, 0, 224, 38); return(new Sprite(bitmap, -112, -19)); } else { var height = obj.SubType << 8; var bitmap = new BitmapBits(225, height + 39); bitmap.DrawLine(LevelData.ColorWhite, 0, 0, 0, 38); bitmap.DrawLine(LevelData.ColorWhite, 0, 19, 112, 19); bitmap.DrawSine(LevelData.ColorWhite, 112, 19, 112, 128, height); bitmap.DrawLine(LevelData.ColorWhite, 112, height + 19, 224, height + 19); bitmap.DrawLine(LevelData.ColorWhite, 224, height, 224, height + 38); if (!obj.XFlip) { return(new Sprite(bitmap, -112, -19)); } var overlay = new Sprite(bitmap, -113, -20); overlay.Flip(true, true); return(overlay); } }
public override Sprite GetDebugOverlay(ObjectEntry obj) { var bitmap = new BitmapBits(137, 417); bitmap.DrawSine(LevelData.ColorWhite, 68, 0, 68, 128, 416); return(new Sprite(bitmap, -68, 0)); }
public override Sprite GetDebugOverlay(ObjectEntry obj) { var bitmap = new BitmapBits(225, 289); bitmap.DrawSine(LevelData.ColorWhite, 112, -32, 112, 128, 320); return(new Sprite(bitmap, -112, -144)); }