From 56f2c2293297c8b82cbdf1cbdcd33ddd149634a1 Mon Sep 17 00:00:00 2001 From: Leonid Pershin Date: Mon, 15 Jun 2026 00:40:06 +0300 Subject: [PATCH] UI: visible pause button + tighter, dimmer selection bracket MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - speed.pause was "⏸" (U+23F8), a glyph the bitmap font lacks, so the pause button rendered blank/invisible (x1/x3/x6 are ASCII and showed). Use the word Pause/Пауза. - Selection bracket was radius x2.2 of the sprite''s bounding CIRCLE (half-diagonal), so it sat much larger than the entity, in a bright opaque blue. Shrink to x1.4 and mute the tint so it hugs the target without shouting. Co-Authored-By: Claude Opus 4.8 --- Mods/Core/Languages/en/ui.json | 2 +- Mods/Core/Languages/ru/ui.json | 2 +- src/LittleSim/Sim/SelectionBrackets.cs | 7 +++++-- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/Mods/Core/Languages/en/ui.json b/Mods/Core/Languages/en/ui.json index 80d01bd..4555178 100644 --- a/Mods/Core/Languages/en/ui.json +++ b/Mods/Core/Languages/en/ui.json @@ -135,7 +135,7 @@ "pause.mainmenu": "Main menu", "pause.quit": "Quit", "pause.saved": "Saved: {0}", - "speed.pause": "⏸", + "speed.pause": "Pause", "credits.title": "Credits", "credits.author": "mrleo1nid", "credits.role": "Concept, code, mrgameeng engine", diff --git a/Mods/Core/Languages/ru/ui.json b/Mods/Core/Languages/ru/ui.json index 6e4652e..b85e7ee 100644 --- a/Mods/Core/Languages/ru/ui.json +++ b/Mods/Core/Languages/ru/ui.json @@ -135,7 +135,7 @@ "pause.mainmenu": "Главное меню", "pause.quit": "Выход", "pause.saved": "Сохранено: {0}", - "speed.pause": "⏸", + "speed.pause": "Пауза", "credits.title": "Авторы", "credits.author": "mrleo1nid", "credits.role": "Идея, код, движок mrgameeng", diff --git a/src/LittleSim/Sim/SelectionBrackets.cs b/src/LittleSim/Sim/SelectionBrackets.cs index c51a4cc..e427e30 100644 --- a/src/LittleSim/Sim/SelectionBrackets.cs +++ b/src/LittleSim/Sim/SelectionBrackets.cs @@ -23,7 +23,8 @@ public sealed class SelectionBrackets SpriteFlip.X | SpriteFlip.Y, ]; - private static readonly Color Tint = new(150, 210, 255); + // Приглушённый голубой (раньше был ярче) — рамка обозначает выбор, но не «кричит». + private static readonly Color Tint = new(110, 150, 185); private readonly Entity[] _brackets = new Entity[4]; private readonly Texture2DRegion _region; @@ -53,7 +54,9 @@ public sealed class SelectionBrackets public void Show(Vector2 center, float radius) { // Квад чуть больше объекта — скобки садятся снаружи (как в RimWorld); арт-уголок ~⅓ ширины. - var scale = new Vector2(radius * 2.2f / _region.Width); + // radius — полудиагональ спрайта (описывающая окружность), поэтому множитель скромный, иначе + // рамка выходит заметно крупнее самой особи. + var scale = new Vector2(radius * 1.4f / _region.Width); for (var i = 0; i < _brackets.Length; i++) { ref var transform = ref _brackets[i].GetComponent();