Various Improvements & Fixes

Map icons now have a constant size independent of zoom level
Galaxy Map now displays zone properties when clicking on a zone
Zone generator now uses half of nebula density, means smaller and more varied zones
Stations will refuse docking to entities with insufficient clearance
This commit is contained in:
Reinier Vens 2021-05-12 00:15:11 +01:00
commit 122e929214
25 changed files with 801 additions and 621 deletions

View file

@ -10,6 +10,7 @@ using TMPro;
using UnityEngine;
using UnityEngine.InputSystem;
using UnityEngine.UI;
using UniRx;
public class ContextMenu : MonoBehaviour
{
@ -32,14 +33,21 @@ public class ContextMenu : MonoBehaviour
private bool _dropdownRight;
private GameObject _dropdown;
private ContextMenuOption _currentDropdown;
private IDisposable _backgroundClickSubscription;
private void Start()
private void OnEnable()
{
if (CancelClickCatcher != null)
CancelClickCatcher.OnClick += data =>
_backgroundClickSubscription = CancelClickCatcher.OnClick.Subscribe(data =>
{
End();
};
});
}
private void OnDisable()
{
_backgroundClickSubscription?.Dispose();
_backgroundClickSubscription = null;
}
private void End()