Bugfixes & Reactive Refactor

Added credits display to trade screen
Fixed bug in inventory screen where a failed drag from a cargo bay would make the item disappear until a refresh is triggered
Changed behavior of Escape key to exit menu if a menu is open
Fixed zone map gravity isolines to correctly track maximum gravity depth
Refactored orbit and planet data to replace reactive variables with regular ones
This commit is contained in:
Reinier Vens 2025-07-18 00:21:33 +01:00
commit 6b0860b178
43 changed files with 1833 additions and 728 deletions

View file

@ -1,3 +1,4 @@
using static Unity.Mathematics.math;
using UnityEditor;
using UnityEngine;
using static UnityEditor.EditorGUILayout;
@ -14,6 +15,18 @@ public class IntInspector : BaseInspector<int>
}
}
public class UintInspector : BaseInspector<uint>
{
public override uint Inspect(string label, uint value, object parent, DatabaseInspector inspectorWindow)
{
using (new HorizontalScope())
{
GUILayout.Label(label, GUILayout.Width(width));
return (uint) max(DelayedIntField((int)value), 0);
}
}
}
public class RangedIntInspector : BaseInspector<int, InspectableRangedIntAttribute>
{
public override int Inspect(string label, int value, object parent, DatabaseInspector inspectorWindow, InspectableRangedIntAttribute attribute)