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

@ -9,6 +9,7 @@ using System.Linq;
using TMPro;
using UnityEngine;
using UnityEngine.UI;
using UniRx;
public class DropdownMenu : MonoBehaviour
{
@ -22,14 +23,21 @@ public class DropdownMenu : MonoBehaviour
public float PaddingHeight;
private List<GameObject> _options = new List<GameObject>();
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()