diff --git a/Extra/features.txt b/Extra/features.txt index 4fa0058..61c150a 100644 --- a/Extra/features.txt +++ b/Extra/features.txt @@ -70,6 +70,20 @@ shallow_water shallow_water ≈LIGHTCYAN shoals_shallow_water9 +~RED +shallow_water +~BLUE +shallow_water +~LIGHTBLUE +shallow_water +~CYAN +shallow_water +~GREEN +shallow_water +~LIGHTGREEN +shallow_water +~LIGHTCYAN +shoals_shallow_water9 .RED floor .LIGHTGREEN diff --git a/FrameGenerator/MainGenerator.cs b/FrameGenerator/MainGenerator.cs index a637713..7a20006 100644 --- a/FrameGenerator/MainGenerator.cs +++ b/FrameGenerator/MainGenerator.cs @@ -187,7 +187,7 @@ private SKBitmap DrawMap(Model model) x += 20; } var overrides = GetOverridesForFrame(model.MonsterData, model.Location); - DrawTiles(g, model, 0, 32, model.LineLength, overrides);//draw the rest of the map + DrawTiles(g, model, 0, 32, model.LineLength, overrides, 0.75f);//draw the rest of the map } return bmp; @@ -201,7 +201,7 @@ private SKBitmap DrawTextBox(Model model, SKBitmap lastframe) { var font = new SKPaint { Typeface = SKTypeface.FromFamilyName("Courier New"), - TextSize = 12, + TextSize = 16, IsAntialias = true, }; var darkPen = new SKPaint() { @@ -655,6 +655,9 @@ private bool DrawCurrentTile(SKCanvas g, Model model, Dictionary TextSize = 24 * resize, }; + // centre character in bounding box + x += (32 - font.FontMetrics.XMax) / 2; + y -= (32 + font.FontMetrics.Top) / 2; g.WriteCharacter(tile, font, x, y, tileHighlight);//unhandled tile, write it as a character instead return false;