Navmap UI enhancements (#23777)

* label scaling wip

* beacon toggle, cleanup

* weh

* caw

* Smooth scaling, almost-selectable font size, Magnification count, zoom scale accuracy change, opacity

* never asked for individual font sizes

* zoom

* format

* Fixes CrewMonitor and PowerMonitor using the default tile color as text background instead of their custom tile colors

* font customisation, needs UI elements

* Station map rightclick now works

* UI scale will keep the local systems in line

* adjusting font size to UI scale

* typo

* fix RT version

* putting cache back in its place

* toggle labels moved to Examine
This commit is contained in:
Errant
2024-01-14 06:08:43 +01:00
committed by GitHub
parent c41bf7e27e
commit 40db236b82
5 changed files with 35 additions and 21 deletions

View File

@@ -9,7 +9,6 @@ public sealed partial class CrewMonitoringNavMapControl : NavMapControl
public NetEntity? Focus;
public Dictionary<NetEntity, string> LocalizedNames = new();
private Color _backgroundColor;
private Label _trackedEntityLabel;
private PanelContainer _trackedEntityPanel;
@@ -17,8 +16,7 @@ public sealed partial class CrewMonitoringNavMapControl : NavMapControl
{
WallColor = new Color(192, 122, 196);
TileColor = new(71, 42, 72);
_backgroundColor = Color.FromSrgb(TileColor.WithAlpha(0.8f));
_backgroundColor = Color.FromSrgb(TileColor.WithAlpha(_backgroundOpacity));
_trackedEntityLabel = new Label
{