From bf238b11aef489ef5dd25203537fbee6bb5cc5af Mon Sep 17 00:00:00 2001 From: Brian Power Date: Mon, 12 Sep 2022 14:01:28 +1000 Subject: [PATCH 1/5] Resize map view so it fits in the window --- FrameGenerator/MainGenerator.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FrameGenerator/MainGenerator.cs b/FrameGenerator/MainGenerator.cs index a637713..609c084 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; From ce5aac100c20b1b90dec2fcb10c8fec2e3352939 Mon Sep 17 00:00:00 2001 From: Brian Power Date: Mon, 12 Sep 2022 14:07:10 +1000 Subject: [PATCH 2/5] Embiggen menu text --- FrameGenerator/MainGenerator.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FrameGenerator/MainGenerator.cs b/FrameGenerator/MainGenerator.cs index 609c084..9326923 100644 --- a/FrameGenerator/MainGenerator.cs +++ b/FrameGenerator/MainGenerator.cs @@ -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() { From 9447e6f3cf6e77b256fc9e5c6408d622d3c882a2 Mon Sep 17 00:00:00 2001 From: Brian Power Date: Mon, 12 Sep 2022 14:36:52 +1000 Subject: [PATCH 3/5] Centre characters used for missing tiles --- FrameGenerator/MainGenerator.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/FrameGenerator/MainGenerator.cs b/FrameGenerator/MainGenerator.cs index 9326923..7a20006 100644 --- a/FrameGenerator/MainGenerator.cs +++ b/FrameGenerator/MainGenerator.cs @@ -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; From 45de76166169be06a4f8e1e1f1cdda5c74ef157e Mon Sep 17 00:00:00 2001 From: Brian Power Date: Mon, 12 Sep 2022 15:20:09 +1000 Subject: [PATCH 4/5] Shallow water character changed to ~ in DCSS 0.29 --- Extra/features.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Extra/features.txt b/Extra/features.txt index 4fa0058..9014b19 100644 --- a/Extra/features.txt +++ b/Extra/features.txt @@ -70,6 +70,16 @@ shallow_water shallow_water ≈LIGHTCYAN shoals_shallow_water9 +~RED +shallow_water +~CYAN +shallow_water +~GREEN +shallow_water +~LIGHTGREEN +shallow_water +~LIGHTCYAN +shoals_shallow_water9 .RED floor .LIGHTGREEN From 68b61f924fe1ebc727d7f36eb334d354189426a1 Mon Sep 17 00:00:00 2001 From: Brian Power Date: Mon, 19 Sep 2022 10:29:35 +1000 Subject: [PATCH 5/5] More water --- Extra/features.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Extra/features.txt b/Extra/features.txt index 9014b19..61c150a 100644 --- a/Extra/features.txt +++ b/Extra/features.txt @@ -72,6 +72,10 @@ shallow_water shoals_shallow_water9 ~RED shallow_water +~BLUE +shallow_water +~LIGHTBLUE +shallow_water ~CYAN shallow_water ~GREEN