Menu Screen + UI Restyle
Created menu screen Created inventory tab with 2 cargo panes and properties panel Updated the style of every UI prefab Implemented Blurred UI material Implemented UI shaders for map layers Created Map tab (still needs input)
This commit is contained in:
parent
ac0361fd9b
commit
4f19189244
106 changed files with 11233 additions and 24584 deletions
|
|
@ -45,11 +45,11 @@ public class Shape
|
|||
{
|
||||
var newCells = new bool[width, height];
|
||||
|
||||
for (int x = 0; x < width && x < Width; x++)
|
||||
for (int x = 0; x < width; x++)
|
||||
{
|
||||
for (int y = 0; y < height && y < Height; y++)
|
||||
for (int y = 0; y < height; y++)
|
||||
{
|
||||
newCells[x, y] = Cells[x, y];
|
||||
newCells[x, y] = x >= Width || y >= Height || Cells[x, y];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -315,16 +315,22 @@ public class HardpointData : ITintInspector
|
|||
{
|
||||
get
|
||||
{
|
||||
if (_tintColors == null)
|
||||
{
|
||||
var hardpointTypes = ((HardpointType[]) Enum.GetValues(typeof(HardpointType)));
|
||||
_tintColors = hardpointTypes.ToDictionary(x => x,
|
||||
x => ColorMath.HsvToRgb(float3((float)(int)x/hardpointTypes.Length, 1, 1)));
|
||||
}
|
||||
|
||||
return _tintColors.ContainsKey(Type) ? _tintColors[Type] : _tintColors[HardpointType.Hull];
|
||||
return GetColor(Type);
|
||||
}
|
||||
}
|
||||
|
||||
public static float3 GetColor(HardpointType type)
|
||||
{
|
||||
if (_tintColors == null)
|
||||
{
|
||||
var hardpointTypes = ((HardpointType[]) Enum.GetValues(typeof(HardpointType)));
|
||||
_tintColors = hardpointTypes.ToDictionary(x => x,
|
||||
x => ColorMath.HsvToRgb(float3((float)(int)x/hardpointTypes.Length, 1, 1)));
|
||||
}
|
||||
|
||||
return _tintColors.ContainsKey(type) ? _tintColors[type] : _tintColors[HardpointType.Hull];
|
||||
}
|
||||
|
||||
private static Dictionary<HardpointType, float3> _tintColors;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue