Merge nibu/rtd-cut9-menu-lobby into integrated Cut 7+8+9
This commit is contained in:
commit
42b17c168e
25 changed files with 5150 additions and 90 deletions
|
|
@ -180,8 +180,31 @@ public partial class Hud : CanvasLayer
|
|||
_schematic.QueueRedraw();
|
||||
}
|
||||
|
||||
public void SetMatchHudActive(bool active)
|
||||
{
|
||||
Visible = active;
|
||||
if (!active)
|
||||
{
|
||||
if (_netPanel.Visible)
|
||||
{
|
||||
_netPanel.Visible = false;
|
||||
_callsignEdit.ReleaseFocus();
|
||||
_endpointEdit.ReleaseFocus();
|
||||
}
|
||||
if (_garageExpanded)
|
||||
{
|
||||
ToggleGarage();
|
||||
}
|
||||
ResetFeedback();
|
||||
}
|
||||
}
|
||||
|
||||
public override void _Process(double delta)
|
||||
{
|
||||
if (!Visible)
|
||||
{
|
||||
return;
|
||||
}
|
||||
float dt = (float)delta;
|
||||
_crosshair?.Advance(dt);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue