UI: visible pause button + tighter, dimmer selection bracket

- 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 <noreply@anthropic.com>
This commit is contained in:
Leonid Pershin
2026-06-15 00:40:06 +03:00
co-authored by Claude Opus 4.8
parent 9f6b8a0554
commit 56f2c22932
3 changed files with 7 additions and 4 deletions
+1 -1
View File
@@ -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",
+1 -1
View File
@@ -135,7 +135,7 @@
"pause.mainmenu": "Главное меню",
"pause.quit": "Выход",
"pause.saved": "Сохранено: {0}",
"speed.pause": "",
"speed.pause": "Пауза",
"credits.title": "Авторы",
"credits.author": "mrleo1nid",
"credits.role": "Идея, код, движок mrgameeng",
+5 -2
View File
@@ -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<Transform2D>();