Keyboard Layout Display
Fully implemented procedurally generated keyboard layout display UI Fixed Granular Audio
This commit is contained in:
parent
2c4520000b
commit
c2a23b5f5e
58 changed files with 1240 additions and 422 deletions
|
|
@ -6,8 +6,8 @@ using UnityEngine.UI;
|
|||
|
||||
public class InputDisplayKey : MonoBehaviour
|
||||
{
|
||||
public TextMeshProUGUI First;
|
||||
public TextMeshProUGUI Second;
|
||||
public TextMeshProUGUI MainLabel;
|
||||
public TextMeshProUGUI AltLabel;
|
||||
public Image Fill;
|
||||
public Image Outline;
|
||||
public LayoutElement LayoutElement;
|
||||
|
|
|
|||
|
|
@ -2,38 +2,296 @@ using System;
|
|||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using MessagePack;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Serialization;
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
using UnityEngine.InputSystem;
|
||||
using UnityEngine.UI;
|
||||
using UnityEngine.UI.Extensions;
|
||||
using Unity.Mathematics;
|
||||
using static Unity.Mathematics.math;
|
||||
|
||||
public class InputDisplayLayout : MonoBehaviour
|
||||
{
|
||||
public VerticalLayoutGroup RowContainer;
|
||||
public TextAsset LayoutFile;
|
||||
public Prototype LabelPrototype;
|
||||
public Prototype LinePrototype;
|
||||
//public UILineRendererList LineRenderer;
|
||||
public Prototype RowPrototype;
|
||||
public Prototype RowSpacerPrototype;
|
||||
public int KeySize = 64;
|
||||
public Color DefaultColor;
|
||||
public Color HighlightColor;
|
||||
public float FillBrightness = .5f;
|
||||
public float FillAlpha;
|
||||
public float FillMultiplier = .25f;
|
||||
public float InactiveMultiplier = .333f;
|
||||
public int TestSteps = 5;
|
||||
public float TestPadding = 4;
|
||||
public float BoxLineExpand = -1;
|
||||
public Color GlobalColor;
|
||||
public float GlobalHueBuffer = .1f;
|
||||
|
||||
private Canvas _canvas;
|
||||
private Color _defaultInactiveColor;
|
||||
private InputLayout _inputLayout;
|
||||
private Dictionary<InputLayoutBindableKey, InputDisplayKey> _displayKeys = new Dictionary<InputLayoutBindableKey, InputDisplayKey>();
|
||||
private Dictionary<string, InputLayoutBindableKey> _bindKeys = new Dictionary<string, InputLayoutBindableKey>();
|
||||
private Dictionary<InputDisplayKey, InputAction> _actionMap = new Dictionary<InputDisplayKey, InputAction>();
|
||||
private Dictionary<InputAction, TextMeshProUGUI> _actionLabels = new Dictionary<InputAction, TextMeshProUGUI>();
|
||||
private Dictionary<InputAction, Color> _actionColors = new Dictionary<InputAction, Color>();
|
||||
private List<Rect> _reservedRects = new List<Rect>();
|
||||
private List<LayoutGroup> _layoutGroups = new List<LayoutGroup>();
|
||||
|
||||
private string FullKeyPath(string shortPath) => $"<Keyboard>/{shortPath}";
|
||||
private string ShortKeyPath(string fullPath) => fullPath.Substring(fullPath.LastIndexOf('/') + 1);
|
||||
|
||||
void Start()
|
||||
{
|
||||
_canvas = transform.root.GetComponent<Canvas>();
|
||||
_defaultInactiveColor = DefaultColor;
|
||||
_defaultInactiveColor.a *= InactiveMultiplier;
|
||||
var path = Path.Combine(ActionGameManager.GameDataDirectory.CreateSubdirectory("KeyboardLayouts").FullName, $"{LayoutFile.name}.msgpack");
|
||||
// _inputLayout = ParseJson(LayoutFile.text);
|
||||
RegisterResolver.Register();
|
||||
_inputLayout = MessagePackSerializer.Deserialize<InputLayout>(File.ReadAllBytes(path));
|
||||
DisplayLayout(_inputLayout);
|
||||
|
||||
foreach (var key in _inputLayout.GetBindableKeys())
|
||||
{
|
||||
var fullInputPath = FullKeyPath(key.InputSystemPath);
|
||||
_bindKeys[fullInputPath] = key;
|
||||
// var keyPress = new InputAction(binding: fullInputPath);
|
||||
// keyPress.started += context =>
|
||||
// {
|
||||
// var displayKey = _displayKeys[key];
|
||||
// displayKey.Outline.color = HighlightColor;
|
||||
// var fillColor = HighlightColor;
|
||||
// fillColor *= FillMultiplier;
|
||||
// fillColor.a = FillAlpha;
|
||||
// displayKey.Fill.color = fillColor;
|
||||
// };
|
||||
// keyPress.canceled += context =>
|
||||
// {
|
||||
// var displayKey = _displayKeys[key];
|
||||
// displayKey.Outline.color = DefaultColor;
|
||||
// var fillColor = DefaultColor;
|
||||
// fillColor *= FillMultiplier;
|
||||
// fillColor.a = FillAlpha;
|
||||
// displayKey.Fill.color = fillColor;
|
||||
// };
|
||||
// keyPress.Enable();
|
||||
}
|
||||
|
||||
var input = new AetheriaInput();
|
||||
// input.Global.Dock.performed += context => Debug.Log("Docking!");
|
||||
// input.Global.GalaxyMap.performed += context =>
|
||||
// {
|
||||
// input.Global.Dock.Disable();
|
||||
// var rebindOperation = input.Global.Dock.PerformInteractiveRebinding()
|
||||
// .WithControlsExcluding("Mouse")
|
||||
// .WithCancelingThrough("<Keyboard>/escape")
|
||||
// .OnMatchWaitForAnother(0.2f)
|
||||
// .Start();
|
||||
// Debug.Log("Rebinding Dock!");
|
||||
// rebindOperation.OnComplete(operation =>
|
||||
// {
|
||||
// Debug.Log("Rebinding Complete!");
|
||||
// input.Global.Dock.Enable();
|
||||
// });
|
||||
// };
|
||||
// input.Enable();
|
||||
|
||||
_layoutGroups.Add(RowContainer);
|
||||
// foreach (var group in _layoutGroups)
|
||||
// {
|
||||
// group.CalculateLayoutInputHorizontal();
|
||||
// group.CalculateLayoutInputVertical();
|
||||
// group.SetLayoutHorizontal();
|
||||
// group.SetLayoutVertical();
|
||||
// LayoutRebuilder.ForceRebuildLayoutImmediate(group.GetComponent<RectTransform>());
|
||||
// }
|
||||
// LayoutRebuilder.ForceRebuildLayoutImmediate(GetComponent<RectTransform>());
|
||||
Canvas.ForceUpdateCanvases();
|
||||
|
||||
Color.RGBToHSV(GlobalColor, out var hue, out var saturation, out var value);
|
||||
var actionIndex = 0;
|
||||
var actionCount = (float) input.asset.Count(a=>a.actionMap.name!="UI");
|
||||
foreach (var action in input.asset)
|
||||
{
|
||||
if(action.actionMap.name=="UI") continue;
|
||||
var h = frac(hue + GlobalHueBuffer + actionIndex++ / actionCount * (1 - GlobalHueBuffer * 2));
|
||||
if (action.actionMap.name == "Global")
|
||||
{
|
||||
h = hue;
|
||||
_actionColors[action] = GlobalColor;
|
||||
}
|
||||
else
|
||||
_actionColors[action] = Color.HSVToRGB(h, saturation, value);
|
||||
foreach (var binding in action.bindings)
|
||||
{
|
||||
if (_bindKeys.ContainsKey(binding.path))
|
||||
{
|
||||
var displayKey = _displayKeys[_bindKeys[binding.path]];
|
||||
displayKey.Fill.color = Color.HSVToRGB(h, saturation, FillBrightness);
|
||||
displayKey.Outline.gameObject.SetActive(true);
|
||||
displayKey.Outline.color = displayKey.MainLabel.color = displayKey.AltLabel.color = _actionColors[action];
|
||||
_actionMap[displayKey] = action;
|
||||
_reservedRects.Add(displayKey.GetComponent<RectTransform>().ScreenSpaceRect());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
var center = _actionMap.Keys.Aggregate(Vector2.zero, (v, displayKey) => v + (Vector2) displayKey.transform.position) / _actionMap.Keys.Count;
|
||||
|
||||
foreach (var x in _actionMap)
|
||||
{
|
||||
var key = x.Key;
|
||||
var action = x.Value;
|
||||
if(_actionLabels.ContainsKey(action)) continue;
|
||||
|
||||
var label = LabelPrototype.Instantiate<TextMeshProUGUI>();
|
||||
label.color = _actionColors[action];
|
||||
_actionLabels[action] = label;
|
||||
var labelRect = label.rectTransform;
|
||||
label.text = _actionMap[key].name.Replace(' ', '\n');
|
||||
LayoutRebuilder.ForceRebuildLayoutImmediate(labelRect);
|
||||
var pos = (Vector2) key.transform.position;
|
||||
var dir = (pos - center).normalized;
|
||||
label.transform.position = FindLabelPosition(key.GetComponent<RectTransform>(), labelRect, dir);
|
||||
}
|
||||
|
||||
foreach (var x in _actionMap)
|
||||
{
|
||||
var key = x.Key;
|
||||
var action = x.Value;
|
||||
|
||||
var keyBounds = key.Outline.rectTransform.GetBounds(BoxLineExpand);
|
||||
var labelPoint = (Vector2) _actionLabels[action].rectTransform.GetBounds().ClosestPoint(key.Outline.transform.position);
|
||||
var keyPoint = (Vector2) keyBounds.ClosestPoint(labelPoint);
|
||||
|
||||
var line = LinePrototype.Instantiate<UILineRenderer>();
|
||||
line.color = _actionColors[action];
|
||||
line.Points = new[] { keyPoint, labelPoint };
|
||||
}
|
||||
|
||||
//StartCoroutine(AssociateInputKeys(_inputLayout));
|
||||
}
|
||||
|
||||
private Vector2 FindLabelPosition(RectTransform key, RectTransform label, Vector2 dir)
|
||||
{
|
||||
var keyRect = key.ScreenSpaceRect();
|
||||
var labelRect = label.ScreenSpaceRect(TestPadding);
|
||||
var localRects = Overlap(key.ScreenSpaceRect(TestSteps * KeySize));
|
||||
var keyCenter = keyRect.center;
|
||||
for (int dist = KeySize; dist < TestSteps * KeySize; dist++)
|
||||
{
|
||||
for (float theta = 0; theta < PI * 2; theta += PI / 32)
|
||||
{
|
||||
for (int s = -1; s <= 1; s += 2)
|
||||
{
|
||||
var testPos = keyCenter + dir.Rotate(theta * s) * dist;
|
||||
var testRect = new Rect(testPos - labelRect.size / 2, labelRect.size);
|
||||
if(!localRects.Any(r => r.Overlaps(testRect)))
|
||||
{
|
||||
_reservedRects.Add(testRect);
|
||||
return testPos;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return Vector2.zero;
|
||||
}
|
||||
|
||||
private Rect[] Overlap(Rect rect) => _reservedRects.Where(r => r.Overlaps(rect)).ToArray();
|
||||
|
||||
public void DisplayLayout(InputLayout layout)
|
||||
{
|
||||
foreach (var row in layout.Rows)
|
||||
{
|
||||
if (row is InputLayoutKeyRow keyRow)
|
||||
{
|
||||
var displayRow = RowPrototype.Instantiate<InputDisplayRow>();
|
||||
_layoutGroups.Add(displayRow.LayoutGroup);
|
||||
foreach (var column in keyRow.Columns)
|
||||
{
|
||||
if (column is InputLayoutColumnSpacer)
|
||||
{
|
||||
displayRow.KeySpacerPrototype.Instantiate<LayoutElement>().preferredWidth = KeySize * column.Width;
|
||||
}
|
||||
else if (column is InputLayoutKey)
|
||||
{
|
||||
var displayKey = displayRow.KeyPrototype.Instantiate<InputDisplayKey>();
|
||||
displayKey.LayoutElement.preferredHeight = KeySize;
|
||||
displayKey.LayoutElement.preferredWidth = KeySize * column.Width;
|
||||
displayKey.Outline.gameObject.SetActive(false);
|
||||
displayKey.Outline.color = DefaultColor;
|
||||
var fillColor = DefaultColor;
|
||||
fillColor *= FillMultiplier;
|
||||
fillColor.a = FillAlpha;
|
||||
displayKey.MainLabel.color = displayKey.AltLabel.color = Color.Lerp(_defaultInactiveColor, fillColor, .5f);
|
||||
|
||||
if (column is InputLayoutBindableKey key)
|
||||
{
|
||||
_displayKeys[key] = displayKey;
|
||||
displayKey.MainLabel.text = key.MainLabel;
|
||||
displayKey.AltLabel.text = key.AltLabel;
|
||||
|
||||
if (column is InputLayoutMultiRowKey multiRowKey)
|
||||
{
|
||||
displayKey.Outline.rectTransform.anchorMin =
|
||||
displayKey.MainLabel.rectTransform.anchorMin =
|
||||
displayKey.AltLabel.rectTransform.anchorMin =
|
||||
displayKey.Fill.rectTransform.anchorMin = Vector2.down * (multiRowKey.Height - 1);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
fillColor.a *= InactiveMultiplier;
|
||||
displayKey.MainLabel.text = "";
|
||||
displayKey.AltLabel.text = "";
|
||||
}
|
||||
displayKey.Fill.color = fillColor;
|
||||
}
|
||||
else
|
||||
{
|
||||
throw new ArgumentOutOfRangeException(nameof(column));
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (row is InputLayoutRowSpacer rowSpacer)
|
||||
{
|
||||
RowSpacerPrototype.Instantiate<LayoutElement>().preferredHeight = KeySize * rowSpacer.Height;
|
||||
}
|
||||
else
|
||||
{
|
||||
throw new ArgumentOutOfRangeException(nameof(row));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public InputLayout ParseJson(string layout)
|
||||
{
|
||||
var rows = new List<InputLayoutRow>();
|
||||
var nextWidth = 1f;
|
||||
var nextHeight = 1f;
|
||||
var reader = new JsonTextReader(new StringReader(LayoutFile.text));
|
||||
var nextHeight = 1;
|
||||
var reader = new JsonTextReader(new StringReader(layout));
|
||||
|
||||
reader.Read();
|
||||
if (reader.TokenType != JsonToken.StartArray)
|
||||
{
|
||||
Debug.Log($"Unexpected JSON format in line {reader.LineNumber}:{reader.LinePosition}");
|
||||
return;
|
||||
}
|
||||
throw new JsonReaderException($"Unexpected JSON format in line {reader.LineNumber}:{reader.LinePosition}, expected: StartArray, received: {Enum.GetName(typeof(JsonToken), reader.TokenType)}");
|
||||
|
||||
while(reader.Read() && reader.TokenType != JsonToken.EndArray)
|
||||
{
|
||||
if (reader.TokenType != JsonToken.StartArray)
|
||||
{
|
||||
Debug.Log($"Unexpected JSON format in line {reader.LineNumber}:{reader.LinePosition}");
|
||||
return;
|
||||
}
|
||||
throw new JsonReaderException($"Unexpected JSON format in line {reader.LineNumber}:{reader.LinePosition}, expected: StartArray, received: {Enum.GetName(typeof(JsonToken), reader.TokenType)}");
|
||||
|
||||
var row = RowPrototype.Instantiate<InputDisplayRow>();
|
||||
var row = new InputLayoutKeyRow();
|
||||
var columns = new List<InputLayoutColumn>();
|
||||
|
||||
while (reader.Read() && reader.TokenType != JsonToken.EndArray)
|
||||
{
|
||||
|
|
@ -49,59 +307,92 @@ public class InputDisplayLayout : MonoBehaviour
|
|||
nextWidth = (float) (reader.ReadAsDouble() ?? 1.0);
|
||||
break;
|
||||
case "h":
|
||||
nextHeight = (float) (reader.ReadAsDouble() ?? 1.0);
|
||||
nextHeight = reader.ReadAsInt32() ?? 1;
|
||||
break;
|
||||
case "y":
|
||||
RowSpacerPrototype.Instantiate<LayoutElement>().preferredHeight = KeySize * (float) (reader.ReadAsDouble() ?? 0.0);
|
||||
row.transform.SetAsLastSibling();
|
||||
rows.Add(new InputLayoutRowSpacer{Height = (float) (reader.ReadAsDouble() ?? 0.0)});
|
||||
break;
|
||||
case "x":
|
||||
row.KeySpacerPrototype.Instantiate<LayoutElement>().preferredWidth = KeySize * (float) (reader.ReadAsDouble() ?? 0.0);
|
||||
columns.Add(new InputLayoutColumnSpacer{Width = (float) (reader.ReadAsDouble() ?? 0.0)});
|
||||
break;
|
||||
}
|
||||
}
|
||||
break;
|
||||
case JsonToken.String:
|
||||
var key = row.KeyPrototype.Instantiate<InputDisplayKey>();
|
||||
InputLayoutKey key;
|
||||
var v = reader.Value.ToString().Trim();
|
||||
if (!string.IsNullOrEmpty(v))
|
||||
{
|
||||
var labels = v.Split('\n');
|
||||
if (labels.Length == 2)
|
||||
{
|
||||
key.First.text = labels[1];
|
||||
key.Second.text = labels[0];
|
||||
}
|
||||
else
|
||||
{
|
||||
key.First.text = v;
|
||||
key.Second.text = "";
|
||||
}
|
||||
key = nextHeight != 1 ? new InputLayoutMultiRowKey {Height = nextHeight} : new InputLayoutBindableKey();
|
||||
nextHeight = 1;
|
||||
((InputLayoutBindableKey) key).MainLabel = labels.Length == 2 ? labels[1] : v;
|
||||
((InputLayoutBindableKey) key).AltLabel = labels.Length == 2 ? labels[0] : "";
|
||||
}
|
||||
else
|
||||
{
|
||||
key.First.text = "";
|
||||
key.Second.text = "";
|
||||
}
|
||||
key = new InputLayoutKey();
|
||||
|
||||
key.LayoutElement.preferredHeight = KeySize;
|
||||
key.LayoutElement.preferredWidth = KeySize * nextWidth;
|
||||
key.Width = nextWidth;
|
||||
columns.Add(key);
|
||||
nextWidth = 1f;
|
||||
if (Math.Abs(nextHeight - 1f) > .01f)
|
||||
{
|
||||
key.Outline.rectTransform.anchorMin =
|
||||
key.First.rectTransform.anchorMin =
|
||||
key.Second.rectTransform.anchorMin =
|
||||
key.Fill.rectTransform.anchorMin = Vector2.down * (nextHeight-1);
|
||||
}
|
||||
nextHeight = 1f;
|
||||
break;
|
||||
default:
|
||||
Debug.Log($"Unexpected JSON format in line {reader.LineNumber}:{reader.LinePosition}");
|
||||
return;
|
||||
throw new JsonReaderException($"Unexpected JSON format in line {reader.LineNumber}:{reader.LinePosition}");
|
||||
}
|
||||
}
|
||||
|
||||
row.Columns = columns.ToArray();
|
||||
rows.Add(row);
|
||||
}
|
||||
|
||||
return new InputLayout {Rows = rows.ToArray()};
|
||||
}
|
||||
|
||||
private IEnumerator AssociateInputKeys(InputLayout layout)
|
||||
{
|
||||
var path = "";
|
||||
var keyPress = new InputAction(binding: "/<Keyboard>/<button>");
|
||||
keyPress.performed += context =>
|
||||
{
|
||||
var keyName = ShortKeyPath(context.control.path);
|
||||
if (keyName == "anyKey") return;
|
||||
path = keyName;
|
||||
};
|
||||
keyPress.Enable();
|
||||
foreach (var row in layout.Rows)
|
||||
{
|
||||
if (row is InputLayoutKeyRow keyRow)
|
||||
{
|
||||
foreach (var column in keyRow.Columns)
|
||||
{
|
||||
if(column is InputLayoutBindableKey bindableKey)
|
||||
{
|
||||
_displayKeys[bindableKey].Outline.color = HighlightColor;
|
||||
var fillColor = HighlightColor;
|
||||
fillColor *= FillMultiplier;
|
||||
fillColor.a = FillAlpha;
|
||||
_displayKeys[bindableKey].Fill.color = fillColor;
|
||||
|
||||
path = "";
|
||||
while (string.IsNullOrEmpty(path)) yield return null;
|
||||
bindableKey.InputSystemPath = path;
|
||||
Debug.Log($"Bound \"{path}\" to \"{bindableKey.MainLabel}\"");
|
||||
|
||||
_displayKeys[bindableKey].Outline.color = DefaultColor;
|
||||
fillColor = DefaultColor;
|
||||
fillColor *= FillMultiplier;
|
||||
fillColor.a = FillAlpha;
|
||||
_displayKeys[bindableKey].Fill.color = fillColor;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
keyPress.Disable();
|
||||
|
||||
RegisterResolver.Register();
|
||||
File.WriteAllBytes(
|
||||
Path.Combine(ActionGameManager.GameDataDirectory.CreateSubdirectory("KeyboardLayouts").FullName, $"{LayoutFile.name}.msgpack"),
|
||||
MessagePackSerializer.Serialize(layout));
|
||||
}
|
||||
|
||||
void Update()
|
||||
|
|
|
|||
|
|
@ -1,9 +1,11 @@
|
|||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
|
||||
public class InputDisplayRow : MonoBehaviour
|
||||
{
|
||||
public HorizontalLayoutGroup LayoutGroup;
|
||||
public Prototype KeyPrototype;
|
||||
public Prototype KeySpacerPrototype;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,19 +1,75 @@
|
|||
|
||||
|
||||
using MessagePack;
|
||||
using System.Collections.Generic;
|
||||
using JsonKnownTypes;using MessagePack;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
[MessagePackObject, JsonObject(MemberSerialization.OptIn)]
|
||||
public class InputLayout
|
||||
{
|
||||
|
||||
[Key(0), JsonProperty("rows")] public InputLayoutRow[] Rows;
|
||||
|
||||
public IEnumerable<InputLayoutBindableKey> GetBindableKeys()
|
||||
{
|
||||
foreach (var row in Rows)
|
||||
{
|
||||
if (!(row is InputLayoutKeyRow keyRow)) continue;
|
||||
|
||||
foreach (var column in keyRow.Columns)
|
||||
{
|
||||
if (column is InputLayoutBindableKey bindableKey)
|
||||
{
|
||||
yield return bindableKey;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[JsonConverter(typeof(JsonKnownTypesConverter<InputLayoutRow>)),
|
||||
MessagePackObject,
|
||||
Union(0, typeof(InputLayoutRowSpacer)),
|
||||
Union(1, typeof(InputLayoutKeyRow))
|
||||
]
|
||||
public abstract class InputLayoutRow { }
|
||||
|
||||
[MessagePackObject, JsonObject(MemberSerialization.OptIn)]
|
||||
public class InputLayoutRowSpacer : InputLayoutRow
|
||||
{
|
||||
[Key(0), JsonProperty("height")] public float Height;
|
||||
}
|
||||
|
||||
[MessagePackObject, JsonObject(MemberSerialization.OptIn)]
|
||||
public class InputLayoutKey
|
||||
public class InputLayoutKeyRow : InputLayoutRow
|
||||
{
|
||||
[Key(0), JsonProperty("columns")] public InputLayoutColumn[] Columns;
|
||||
}
|
||||
|
||||
[JsonConverter(typeof(JsonKnownTypesConverter<InputLayoutColumn>)),
|
||||
MessagePackObject,
|
||||
Union(0, typeof(InputLayoutColumnSpacer)),
|
||||
Union(1, typeof(InputLayoutKey)),
|
||||
Union(2, typeof(InputLayoutBindableKey)),
|
||||
Union(3, typeof(InputLayoutMultiRowKey))
|
||||
]
|
||||
public abstract class InputLayoutColumn
|
||||
{
|
||||
[Key(0), JsonProperty("width")] public float Width;
|
||||
}
|
||||
|
||||
[MessagePackObject, JsonObject(MemberSerialization.OptIn)]
|
||||
public class InputLayoutColumnSpacer : InputLayoutColumn { }
|
||||
|
||||
[MessagePackObject, JsonObject(MemberSerialization.OptIn)]
|
||||
public class InputLayoutKey : InputLayoutColumn { }
|
||||
|
||||
[MessagePackObject, JsonObject(MemberSerialization.OptIn)]
|
||||
public class InputLayoutBindableKey : InputLayoutKey
|
||||
{
|
||||
[Key(1), JsonProperty("mainLabel")] public string MainLabel;
|
||||
[Key(2), JsonProperty("altLabel")] public string AltLabel;
|
||||
[Key(3), JsonProperty("path")] public string InputSystemPath;
|
||||
}
|
||||
|
||||
public class InputLayoutMultiRowKey : InputLayoutBindableKey
|
||||
{
|
||||
[Key(0), JsonProperty("mainLabel")] public string MainLabel;
|
||||
[Key(1), JsonProperty("altLabel")] public string AltLabel;
|
||||
[Key(2), JsonProperty("path")] public string InputSystemPath;
|
||||
[Key(3), JsonProperty("width")] public float Width;
|
||||
[Key(4), JsonProperty("height")] public int Height;
|
||||
}
|
||||
|
|
@ -86,7 +86,7 @@ Material:
|
|||
- _Mode: 0
|
||||
- _OcclusionStrength: 1
|
||||
- _Parallax: 0.02
|
||||
- _Scale: 0.5
|
||||
- _Scale: 5.4798894
|
||||
- _SmoothnessTextureChannel: 0
|
||||
- _SpecularHighlights: 1
|
||||
- _SrcBlend: 1
|
||||
|
|
|
|||
|
|
@ -69,14 +69,6 @@
|
|||
"processors": "",
|
||||
"interactions": ""
|
||||
},
|
||||
{
|
||||
"name": "EnterWormhole",
|
||||
"type": "Button",
|
||||
"id": "c918ac22-b029-4805-9c85-e615a52641f2",
|
||||
"expectedControlType": "Button",
|
||||
"processors": "",
|
||||
"interactions": ""
|
||||
},
|
||||
{
|
||||
"name": "Toggle Shield",
|
||||
"type": "Button",
|
||||
|
|
@ -116,6 +108,14 @@
|
|||
"expectedControlType": "",
|
||||
"processors": "",
|
||||
"interactions": ""
|
||||
},
|
||||
{
|
||||
"name": "Enter Wormhole",
|
||||
"type": "Button",
|
||||
"id": "b907857f-d1d2-455d-912b-8de9a64f0f3a",
|
||||
"expectedControlType": "Button",
|
||||
"processors": "",
|
||||
"interactions": ""
|
||||
}
|
||||
],
|
||||
"bindings": [
|
||||
|
|
@ -152,17 +152,6 @@
|
|||
"isComposite": false,
|
||||
"isPartOfComposite": true
|
||||
},
|
||||
{
|
||||
"name": "up",
|
||||
"id": "8180e8bd-4097-4f4e-ab88-4523101a6ce9",
|
||||
"path": "<Keyboard>/upArrow",
|
||||
"interactions": "",
|
||||
"processors": "",
|
||||
"groups": ";Keyboard&Mouse",
|
||||
"action": "Move",
|
||||
"isComposite": false,
|
||||
"isPartOfComposite": true
|
||||
},
|
||||
{
|
||||
"name": "down",
|
||||
"id": "320bffee-a40b-4347-ac70-c210eb8bc73a",
|
||||
|
|
@ -174,17 +163,6 @@
|
|||
"isComposite": false,
|
||||
"isPartOfComposite": true
|
||||
},
|
||||
{
|
||||
"name": "down",
|
||||
"id": "1c5327b5-f71c-4f60-99c7-4e737386f1d1",
|
||||
"path": "<Keyboard>/downArrow",
|
||||
"interactions": "",
|
||||
"processors": "",
|
||||
"groups": ";Keyboard&Mouse",
|
||||
"action": "Move",
|
||||
"isComposite": false,
|
||||
"isPartOfComposite": true
|
||||
},
|
||||
{
|
||||
"name": "left",
|
||||
"id": "d2581a9b-1d11-4566-b27d-b92aff5fabbc",
|
||||
|
|
@ -196,17 +174,6 @@
|
|||
"isComposite": false,
|
||||
"isPartOfComposite": true
|
||||
},
|
||||
{
|
||||
"name": "left",
|
||||
"id": "2e46982e-44cc-431b-9f0b-c11910bf467a",
|
||||
"path": "<Keyboard>/leftArrow",
|
||||
"interactions": "",
|
||||
"processors": "",
|
||||
"groups": ";Keyboard&Mouse",
|
||||
"action": "Move",
|
||||
"isComposite": false,
|
||||
"isPartOfComposite": true
|
||||
},
|
||||
{
|
||||
"name": "right",
|
||||
"id": "fcfe95b8-67b9-4526-84b5-5d0bc98d6400",
|
||||
|
|
@ -218,17 +185,6 @@
|
|||
"isComposite": false,
|
||||
"isPartOfComposite": true
|
||||
},
|
||||
{
|
||||
"name": "right",
|
||||
"id": "77bff152-3580-4b21-b6de-dcd0c7e41164",
|
||||
"path": "<Keyboard>/rightArrow",
|
||||
"interactions": "",
|
||||
"processors": "",
|
||||
"groups": ";Keyboard&Mouse",
|
||||
"action": "Move",
|
||||
"isComposite": false,
|
||||
"isPartOfComposite": true
|
||||
},
|
||||
{
|
||||
"name": "",
|
||||
"id": "3ea4d645-4504-4529-b061-ab81934c3752",
|
||||
|
|
@ -298,7 +254,7 @@
|
|||
{
|
||||
"name": "",
|
||||
"id": "6e13d87d-e5bb-4363-b153-1e0c1e21e4eb",
|
||||
"path": "<Keyboard>/#(Y)",
|
||||
"path": "<Keyboard>/y",
|
||||
"interactions": "",
|
||||
"processors": "",
|
||||
"groups": "Keyboard&Mouse",
|
||||
|
|
@ -309,7 +265,7 @@
|
|||
{
|
||||
"name": "",
|
||||
"id": "e6e3164c-1b59-4eab-99d9-5a3bc294af0b",
|
||||
"path": "<Keyboard>/#(U)",
|
||||
"path": "<Keyboard>/u",
|
||||
"interactions": "",
|
||||
"processors": "",
|
||||
"groups": "Keyboard&Mouse",
|
||||
|
|
@ -320,7 +276,7 @@
|
|||
{
|
||||
"name": "",
|
||||
"id": "b55dd143-367d-4842-82c8-593c301bcd69",
|
||||
"path": "<Keyboard>/#(T)",
|
||||
"path": "<Keyboard>/t",
|
||||
"interactions": "",
|
||||
"processors": "",
|
||||
"groups": "Keyboard&Mouse",
|
||||
|
|
@ -331,7 +287,7 @@
|
|||
{
|
||||
"name": "",
|
||||
"id": "71ac6088-1e18-4810-86be-1179918dd4a2",
|
||||
"path": "<Keyboard>/#(H)",
|
||||
"path": "<Keyboard>/h",
|
||||
"interactions": "",
|
||||
"processors": "",
|
||||
"groups": "Keyboard&Mouse",
|
||||
|
|
@ -339,21 +295,10 @@
|
|||
"isComposite": false,
|
||||
"isPartOfComposite": false
|
||||
},
|
||||
{
|
||||
"name": "",
|
||||
"id": "95817d40-4c8d-4660-bd68-a93afe74b6e1",
|
||||
"path": "<Keyboard>/#(V)",
|
||||
"interactions": "",
|
||||
"processors": "",
|
||||
"groups": "Keyboard&Mouse",
|
||||
"action": "EnterWormhole",
|
||||
"isComposite": false,
|
||||
"isPartOfComposite": false
|
||||
},
|
||||
{
|
||||
"name": "",
|
||||
"id": "d59fb542-6ac5-466d-a668-67fd8c890232",
|
||||
"path": "<Keyboard>/#(G)",
|
||||
"path": "<Keyboard>/g",
|
||||
"interactions": "",
|
||||
"processors": "",
|
||||
"groups": "Keyboard&Mouse",
|
||||
|
|
@ -364,7 +309,7 @@
|
|||
{
|
||||
"name": "",
|
||||
"id": "8e8b5d19-20fd-43f3-88cf-6246f374e7cf",
|
||||
"path": "<Keyboard>/#(O)",
|
||||
"path": "<Keyboard>/o",
|
||||
"interactions": "",
|
||||
"processors": "",
|
||||
"groups": "Keyboard&Mouse",
|
||||
|
|
@ -375,7 +320,7 @@
|
|||
{
|
||||
"name": "",
|
||||
"id": "baa67cdf-3c91-46dd-965c-12370a897414",
|
||||
"path": "<Keyboard>/#(X)",
|
||||
"path": "<Keyboard>/x",
|
||||
"interactions": "",
|
||||
"processors": "",
|
||||
"groups": "Keyboard&Mouse",
|
||||
|
|
@ -404,6 +349,17 @@
|
|||
"action": "Tractor Beam",
|
||||
"isComposite": false,
|
||||
"isPartOfComposite": false
|
||||
},
|
||||
{
|
||||
"name": "",
|
||||
"id": "85857c0e-82fa-4889-895a-1e55c6dbe206",
|
||||
"path": "<Keyboard>/v",
|
||||
"interactions": "",
|
||||
"processors": "",
|
||||
"groups": "Keyboard&Mouse",
|
||||
"action": "Enter Wormhole",
|
||||
"isComposite": false,
|
||||
"isPartOfComposite": false
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
@ -898,9 +854,9 @@
|
|||
"interactions": ""
|
||||
},
|
||||
{
|
||||
"name": "MainMenu",
|
||||
"name": "Main Menu",
|
||||
"type": "Button",
|
||||
"id": "a626132e-6205-4abb-9a45-4cce6446958b",
|
||||
"id": "0515c617-9dff-406f-ab3e-763971d532d3",
|
||||
"expectedControlType": "Button",
|
||||
"processors": "",
|
||||
"interactions": ""
|
||||
|
|
@ -921,7 +877,7 @@
|
|||
{
|
||||
"name": "",
|
||||
"id": "2eb827dd-4707-4648-b7e5-cf1fd8fa00da",
|
||||
"path": "<Keyboard>/#(I)",
|
||||
"path": "<Keyboard>/i",
|
||||
"interactions": "",
|
||||
"processors": "",
|
||||
"groups": "Keyboard&Mouse",
|
||||
|
|
@ -932,7 +888,7 @@
|
|||
{
|
||||
"name": "",
|
||||
"id": "3279cef8-8bd1-49f2-984a-637d1f8522f6",
|
||||
"path": "<Keyboard>/#(C)",
|
||||
"path": "<Keyboard>/c",
|
||||
"interactions": "",
|
||||
"processors": "",
|
||||
"groups": "Keyboard&Mouse",
|
||||
|
|
@ -940,17 +896,6 @@
|
|||
"isComposite": false,
|
||||
"isPartOfComposite": false
|
||||
},
|
||||
{
|
||||
"name": "",
|
||||
"id": "7de0bb82-5492-49aa-aa56-8562b58ba8a8",
|
||||
"path": "<Keyboard>/escape",
|
||||
"interactions": "",
|
||||
"processors": "",
|
||||
"groups": "Keyboard&Mouse",
|
||||
"action": "MainMenu",
|
||||
"isComposite": false,
|
||||
"isPartOfComposite": false
|
||||
},
|
||||
{
|
||||
"name": "",
|
||||
"id": "f90929d5-d8d1-40dc-acc7-7ae294971d12",
|
||||
|
|
@ -961,6 +906,17 @@
|
|||
"action": "Galaxy Map",
|
||||
"isComposite": false,
|
||||
"isPartOfComposite": false
|
||||
},
|
||||
{
|
||||
"name": "",
|
||||
"id": "873dbfff-25b2-4747-ab9d-53d34324d660",
|
||||
"path": "<Keyboard>/escape",
|
||||
"interactions": "",
|
||||
"processors": "",
|
||||
"groups": "Keyboard&Mouse",
|
||||
"action": "Main Menu",
|
||||
"isComposite": false,
|
||||
"isPartOfComposite": false
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -77,6 +77,7 @@ edit by The Icon Z
|
|||
Resize by Markus
|
||||
Rotate by Rohith M
|
||||
up key by Dika Darma
|
||||
Mouse by nopixel
|
||||
|
||||
Other
|
||||
|
||||
|
|
|
|||
BIN
Assets/Resources/Sprites/Icons/Mouse.png
(Stored with Git LFS)
Normal file
BIN
Assets/Resources/Sprites/Icons/Mouse.png
(Stored with Git LFS)
Normal file
Binary file not shown.
96
Assets/Resources/Sprites/Icons/Mouse.png.meta
Normal file
96
Assets/Resources/Sprites/Icons/Mouse.png.meta
Normal file
|
|
@ -0,0 +1,96 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 98e3434b962a2854e914af9d244bc9c9
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 11
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
sRGBTexture: 1
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
vTOnly: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: -1
|
||||
aniso: -1
|
||||
mipBias: -100
|
||||
wrapU: -1
|
||||
wrapV: -1
|
||||
wrapW: -1
|
||||
nPOTScale: 1
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 0
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 0
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
flipbookRows: 1
|
||||
flipbookColumns: 1
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
ignorePngGamma: 0
|
||||
applyGammaDecoding: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 3
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
spritePackingTag:
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
@ -94,9 +94,9 @@
|
|||
{
|
||||
"x": 0.25
|
||||
},
|
||||
"7\nHome",
|
||||
"8\n↑",
|
||||
"9\nPgUp",
|
||||
"Home\n7",
|
||||
"↑\n8",
|
||||
"PgUp\n9",
|
||||
{
|
||||
"h": 2
|
||||
},
|
||||
|
|
@ -125,9 +125,9 @@
|
|||
{
|
||||
"x": 3.5
|
||||
},
|
||||
"4\n←",
|
||||
"←\n4",
|
||||
"5",
|
||||
"6\n→"
|
||||
"→\n6"
|
||||
],
|
||||
[
|
||||
{
|
||||
|
|
@ -155,9 +155,9 @@
|
|||
{
|
||||
"x": 1.25
|
||||
},
|
||||
"1\nEnd",
|
||||
"2\n↓",
|
||||
"3\nPgDn",
|
||||
"End\n1",
|
||||
"↓\n2",
|
||||
"PgDn\n3",
|
||||
{
|
||||
"h": 2
|
||||
},
|
||||
|
|
@ -208,7 +208,7 @@
|
|||
"x": 0.25,
|
||||
"w": 2
|
||||
},
|
||||
"0\nIns",
|
||||
".\nDel"
|
||||
"Ins\n0",
|
||||
"Del\n."
|
||||
]
|
||||
]
|
||||
|
|
@ -16392,7 +16392,7 @@ MonoBehaviour:
|
|||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1009503727}
|
||||
m_Enabled: 1
|
||||
m_Enabled: 0
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 62899f850307741f2a39c98a8b639597, type: 3}
|
||||
m_Name:
|
||||
|
|
@ -23687,12 +23687,12 @@ PrefabInstance:
|
|||
- target: {fileID: 878382121558056004, guid: 2758dfa2744d7ad4d8877545189d116e,
|
||||
type: 3}
|
||||
propertyPath: m_AnchorMax.y
|
||||
value: 0
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 878382121558056004, guid: 2758dfa2744d7ad4d8877545189d116e,
|
||||
type: 3}
|
||||
propertyPath: m_AnchorMin.y
|
||||
value: 0
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 878382121558056004, guid: 2758dfa2744d7ad4d8877545189d116e,
|
||||
type: 3}
|
||||
|
|
@ -23712,7 +23712,7 @@ PrefabInstance:
|
|||
- target: {fileID: 878382121558056004, guid: 2758dfa2744d7ad4d8877545189d116e,
|
||||
type: 3}
|
||||
propertyPath: m_AnchoredPosition.y
|
||||
value: 0
|
||||
value: -16
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 1713457305180270767, guid: 2758dfa2744d7ad4d8877545189d116e,
|
||||
type: 3}
|
||||
|
|
@ -24899,12 +24899,12 @@ PrefabInstance:
|
|||
- target: {fileID: 878382121558056004, guid: 2758dfa2744d7ad4d8877545189d116e,
|
||||
type: 3}
|
||||
propertyPath: m_AnchorMax.y
|
||||
value: 0
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 878382121558056004, guid: 2758dfa2744d7ad4d8877545189d116e,
|
||||
type: 3}
|
||||
propertyPath: m_AnchorMin.y
|
||||
value: 0
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 878382121558056004, guid: 2758dfa2744d7ad4d8877545189d116e,
|
||||
type: 3}
|
||||
|
|
@ -24924,7 +24924,7 @@ PrefabInstance:
|
|||
- target: {fileID: 878382121558056004, guid: 2758dfa2744d7ad4d8877545189d116e,
|
||||
type: 3}
|
||||
propertyPath: m_AnchoredPosition.y
|
||||
value: 0
|
||||
value: -16
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 1713457305180270767, guid: 2758dfa2744d7ad4d8877545189d116e,
|
||||
type: 3}
|
||||
|
|
@ -31280,8 +31280,8 @@ MonoBehaviour:
|
|||
m_EditorClassIdentifier:
|
||||
pattern: 12
|
||||
patternScale: 1
|
||||
activeSample: {x: 0.25, y: -0.3888889, z: -0.25, w: 0.16666669}
|
||||
activeIndex: 2
|
||||
activeSample: {x: 0.125, y: 0.2777778, z: -0.375, w: -0.05555555}
|
||||
activeIndex: 4
|
||||
--- !u!114 &2115559098
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
|
|
|
|||
|
|
@ -209,8 +209,8 @@ MonoBehaviour:
|
|||
m_Script: {fileID: 11500000, guid: e0aa077d998d3a249aefd2ed70f4d099, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
First: {fileID: 818051546}
|
||||
Second: {fileID: 405516092}
|
||||
MainLabel: {fileID: 818051546}
|
||||
AltLabel: {fileID: 405516092}
|
||||
Fill: {fileID: 2001795661}
|
||||
Outline: {fileID: 838176421}
|
||||
LayoutElement: {fileID: 187012182}
|
||||
|
|
@ -295,7 +295,7 @@ GameObject:
|
|||
- component: {fileID: 405516093}
|
||||
- component: {fileID: 405516092}
|
||||
m_Layer: 5
|
||||
m_Name: Second
|
||||
m_Name: Alt
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
|
|
@ -315,10 +315,10 @@ RectTransform:
|
|||
m_Father: {fileID: 187012181}
|
||||
m_RootOrder: 3
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMin: {x: 0, y: 0.5}
|
||||
m_AnchorMax: {x: 1, y: 1}
|
||||
m_AnchoredPosition: {x: -12, y: -12}
|
||||
m_SizeDelta: {x: -24, y: -24}
|
||||
m_SizeDelta: {x: -24, y: -12}
|
||||
m_Pivot: {x: 1, y: 1}
|
||||
--- !u!114 &405516092
|
||||
MonoBehaviour:
|
||||
|
|
@ -371,10 +371,10 @@ MonoBehaviour:
|
|||
m_fontSize: 20
|
||||
m_fontSizeBase: 20
|
||||
m_fontWeight: 400
|
||||
m_enableAutoSizing: 0
|
||||
m_fontSizeMin: 18
|
||||
m_fontSizeMax: 72
|
||||
m_fontStyle: 32
|
||||
m_enableAutoSizing: 1
|
||||
m_fontSizeMin: 12
|
||||
m_fontSizeMax: 20
|
||||
m_fontStyle: 0
|
||||
m_HorizontalAlignment: 4
|
||||
m_VerticalAlignment: 256
|
||||
m_textAlignment: 65535
|
||||
|
|
@ -428,6 +428,7 @@ GameObject:
|
|||
m_Component:
|
||||
- component: {fileID: 543472258}
|
||||
- component: {fileID: 543472259}
|
||||
- component: {fileID: 543472260}
|
||||
m_Layer: 5
|
||||
m_Name: Row Container
|
||||
m_TagString: Untagged
|
||||
|
|
@ -454,7 +455,7 @@ RectTransform:
|
|||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 1, y: 1}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: -64, y: -64}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!114 &543472259
|
||||
MonoBehaviour:
|
||||
|
|
@ -482,6 +483,185 @@ MonoBehaviour:
|
|||
m_ChildScaleWidth: 0
|
||||
m_ChildScaleHeight: 0
|
||||
m_ReverseArrangement: 0
|
||||
--- !u!114 &543472260
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 543472257}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 3245ec927659c4140ac4f8d17403cc18, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_HorizontalFit: 2
|
||||
m_VerticalFit: 2
|
||||
--- !u!1 &613373514
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 613373515}
|
||||
- component: {fileID: 613373519}
|
||||
- component: {fileID: 613373518}
|
||||
- component: {fileID: 613373517}
|
||||
- component: {fileID: 613373516}
|
||||
m_Layer: 5
|
||||
m_Name: Label
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &613373515
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 613373514}
|
||||
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 816403306}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!114 &613373516
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 613373514}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 1281fe44325f9b548aa42dc331b17266, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
--- !u!114 &613373517
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 613373514}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 3245ec927659c4140ac4f8d17403cc18, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_HorizontalFit: 2
|
||||
m_VerticalFit: 2
|
||||
--- !u!114 &613373518
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 613373514}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_RaycastTarget: 1
|
||||
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_Maskable: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_text: 'New
|
||||
|
||||
Texture'
|
||||
m_isRightToLeft: 0
|
||||
m_fontAsset: {fileID: 11400000, guid: 53555f7a2d5e745428813f1b1118734f, type: 2}
|
||||
m_sharedMaterial: {fileID: -2804126062856497447, guid: 53555f7a2d5e745428813f1b1118734f,
|
||||
type: 2}
|
||||
m_fontSharedMaterials: []
|
||||
m_fontMaterial: {fileID: 0}
|
||||
m_fontMaterials: []
|
||||
m_fontColor32:
|
||||
serializedVersion: 2
|
||||
rgba: 4294967295
|
||||
m_fontColor: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_enableVertexGradient: 0
|
||||
m_colorMode: 3
|
||||
m_fontColorGradient:
|
||||
topLeft: {r: 1, g: 1, b: 1, a: 1}
|
||||
topRight: {r: 1, g: 1, b: 1, a: 1}
|
||||
bottomLeft: {r: 1, g: 1, b: 1, a: 1}
|
||||
bottomRight: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_fontColorGradientPreset: {fileID: 0}
|
||||
m_spriteAsset: {fileID: 0}
|
||||
m_tintAllSprites: 0
|
||||
m_StyleSheet: {fileID: 0}
|
||||
m_TextStyleHashCode: -1183493901
|
||||
m_overrideHtmlColors: 0
|
||||
m_faceColor:
|
||||
serializedVersion: 2
|
||||
rgba: 4294967295
|
||||
m_fontSize: 14
|
||||
m_fontSizeBase: 14
|
||||
m_fontWeight: 400
|
||||
m_enableAutoSizing: 0
|
||||
m_fontSizeMin: 18
|
||||
m_fontSizeMax: 72
|
||||
m_fontStyle: 16
|
||||
m_HorizontalAlignment: 2
|
||||
m_VerticalAlignment: 512
|
||||
m_textAlignment: 65535
|
||||
m_characterSpacing: 0
|
||||
m_wordSpacing: 0
|
||||
m_lineSpacing: 0
|
||||
m_lineSpacingMax: 0
|
||||
m_paragraphSpacing: 0
|
||||
m_charWidthMaxAdj: 0
|
||||
m_enableWordWrapping: 1
|
||||
m_wordWrappingRatios: 0.4
|
||||
m_overflowMode: 0
|
||||
m_linkedTextComponent: {fileID: 0}
|
||||
parentLinkedComponent: {fileID: 0}
|
||||
m_enableKerning: 1
|
||||
m_enableExtraPadding: 0
|
||||
checkPaddingRequired: 0
|
||||
m_isRichText: 1
|
||||
m_parseCtrlCharacters: 1
|
||||
m_isOrthographic: 1
|
||||
m_isCullingEnabled: 0
|
||||
m_horizontalMapping: 0
|
||||
m_verticalMapping: 0
|
||||
m_uvLineOffset: 0
|
||||
m_geometrySortingOrder: 0
|
||||
m_IsTextObjectScaleStatic: 0
|
||||
m_VertexBufferAutoSizeReduction: 1
|
||||
m_useMaxVisibleDescender: 1
|
||||
m_pageToDisplay: 1
|
||||
m_margin: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_isUsingLegacyAnimationComponent: 0
|
||||
m_isVolumetricText: 0
|
||||
m_hasFontAssetChanged: 0
|
||||
m_baseMaterial: {fileID: 0}
|
||||
m_maskOffset: {x: 0, y: 0, z: 0, w: 0}
|
||||
--- !u!222 &613373519
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 613373514}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!1 &762724326
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
|
|
@ -530,10 +710,10 @@ MonoBehaviour:
|
|||
m_Script: {fileID: 11500000, guid: 0cd44c1031e13a943bb63640046fad76, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_UiScaleMode: 0
|
||||
m_UiScaleMode: 1
|
||||
m_ReferencePixelsPerUnit: 100
|
||||
m_ScaleFactor: 1
|
||||
m_ReferenceResolution: {x: 800, y: 600}
|
||||
m_ReferenceResolution: {x: 1920, y: 1080}
|
||||
m_ScreenMatchMode: 0
|
||||
m_MatchWidthOrHeight: 0
|
||||
m_PhysicalUnit: 3
|
||||
|
|
@ -573,7 +753,10 @@ RectTransform:
|
|||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 0, y: 0, z: 0}
|
||||
m_Children:
|
||||
- {fileID: 1225606406}
|
||||
- {fileID: 1104528364}
|
||||
- {fileID: 977013929}
|
||||
- {fileID: 816403306}
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 1
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
|
|
@ -582,6 +765,42 @@ RectTransform:
|
|||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: 0, y: 0}
|
||||
--- !u!1 &816403305
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 816403306}
|
||||
m_Layer: 5
|
||||
m_Name: Labels
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &816403306
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 816403305}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children:
|
||||
- {fileID: 613373515}
|
||||
m_Father: {fileID: 762724330}
|
||||
m_RootOrder: 3
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 1, y: 1}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!1 &818051544
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
|
|
@ -594,7 +813,7 @@ GameObject:
|
|||
- component: {fileID: 818051547}
|
||||
- component: {fileID: 818051546}
|
||||
m_Layer: 5
|
||||
m_Name: First
|
||||
m_Name: Main
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
|
|
@ -615,9 +834,9 @@ RectTransform:
|
|||
m_RootOrder: 2
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 1, y: 1}
|
||||
m_AnchoredPosition: {x: 12, y: -12}
|
||||
m_SizeDelta: {x: -24, y: -24}
|
||||
m_AnchorMax: {x: 1, y: 0.5}
|
||||
m_AnchoredPosition: {x: 12, y: 0}
|
||||
m_SizeDelta: {x: -24, y: -12}
|
||||
m_Pivot: {x: 0, y: 1}
|
||||
--- !u!114 &818051546
|
||||
MonoBehaviour:
|
||||
|
|
@ -673,7 +892,7 @@ MonoBehaviour:
|
|||
m_enableAutoSizing: 1
|
||||
m_fontSizeMin: 12
|
||||
m_fontSizeMax: 20
|
||||
m_fontStyle: 32
|
||||
m_fontStyle: 0
|
||||
m_HorizontalAlignment: 1
|
||||
m_VerticalAlignment: 1024
|
||||
m_textAlignment: 65535
|
||||
|
|
@ -792,6 +1011,183 @@ CanvasRenderer:
|
|||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 838176419}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!1 &890604314
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 890604315}
|
||||
- component: {fileID: 890604318}
|
||||
- component: {fileID: 890604317}
|
||||
- component: {fileID: 890604316}
|
||||
m_Layer: 5
|
||||
m_Name: Line
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &890604315
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 890604314}
|
||||
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 1225606406}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 1, y: 1}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: 0, y: 0}
|
||||
--- !u!114 &890604316
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 890604314}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 1281fe44325f9b548aa42dc331b17266, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
--- !u!114 &890604317
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 890604314}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 5b33b2e663e78774c9f0c9af55018725, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 2100000, guid: fcfc0ffd602442f42bddf109db9d2d20, type: 2}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_RaycastTarget: 0
|
||||
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_Maskable: 0
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_Sprite: {fileID: 21300000, guid: 0db2f052f2728c749bc0d25b8ca0af14, type: 3}
|
||||
m_improveResolution: 0
|
||||
m_Resolution: 5
|
||||
m_useNativeSize: 0
|
||||
m_points:
|
||||
- {x: 0, y: 0}
|
||||
- {x: 55.9, y: 51.63}
|
||||
- {x: 162.23, y: 51.63}
|
||||
- {x: 162.23, y: 248.6}
|
||||
lineThickness: 2
|
||||
relativeSize: 0
|
||||
lineList: 0
|
||||
lineCaps: 0
|
||||
bezierSegmentsPerCurve: 1
|
||||
LineJoins: 1
|
||||
BezierMode: 0
|
||||
drivenExternally: 0
|
||||
--- !u!222 &890604318
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 890604314}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!1 &977013928
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 977013929}
|
||||
- component: {fileID: 977013931}
|
||||
- component: {fileID: 977013930}
|
||||
m_Layer: 5
|
||||
m_Name: Lines
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 0
|
||||
--- !u!224 &977013929
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 977013928}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 762724330}
|
||||
m_RootOrder: 2
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 1, y: 1}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: 0, y: 0}
|
||||
--- !u!114 &977013930
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 977013928}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 34861a5dcec3dbf438f8288be97dd133, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_RaycastTarget: 1
|
||||
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_Maskable: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_Sprite: {fileID: 0}
|
||||
m_improveResolution: 0
|
||||
m_Resolution: 0
|
||||
m_useNativeSize: 0
|
||||
m_points:
|
||||
- {x: 0, y: 0}
|
||||
- {x: 10, y: 10}
|
||||
- {x: 20, y: 10}
|
||||
- {x: 20, y: 20}
|
||||
lineThickness: 1
|
||||
relativeSize: 0
|
||||
lineList: 1
|
||||
lineCaps: 0
|
||||
bezierSegmentsPerCurve: 10
|
||||
LineJoins: 0
|
||||
BezierMode: 0
|
||||
drivenExternally: 0
|
||||
--- !u!222 &977013931
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 977013928}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!1 &1017974192
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
|
|
@ -828,7 +1224,7 @@ Camera:
|
|||
m_Enabled: 1
|
||||
serializedVersion: 2
|
||||
m_ClearFlags: 2
|
||||
m_BackGroundColor: {r: 0.18867922, g: 0.18867922, b: 0.18867922, a: 0}
|
||||
m_BackGroundColor: {r: 0.084905684, g: 0.084905684, b: 0.084905684, a: 0}
|
||||
m_projectionMatrixMode: 1
|
||||
m_GateFitMode: 2
|
||||
m_FOVAxisMode: 0
|
||||
|
|
@ -905,7 +1301,7 @@ RectTransform:
|
|||
m_Children:
|
||||
- {fileID: 543472258}
|
||||
m_Father: {fileID: 762724330}
|
||||
m_RootOrder: 0
|
||||
m_RootOrder: 1
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 1, y: 0.5}
|
||||
|
|
@ -924,10 +1320,60 @@ MonoBehaviour:
|
|||
m_Script: {fileID: 11500000, guid: 5ac50145a005ca340837d054dc1d03f3, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
RowContainer: {fileID: 543472259}
|
||||
LayoutFile: {fileID: 4900000, guid: 44459239c373d2c449a479e84867648a, type: 3}
|
||||
LabelPrototype: {fileID: 613373516}
|
||||
LinePrototype: {fileID: 890604316}
|
||||
RowPrototype: {fileID: 1437310508}
|
||||
RowSpacerPrototype: {fileID: 341206685}
|
||||
KeySize: 80
|
||||
KeySize: 64
|
||||
DefaultColor: {r: 0.75, g: 0.9210527, b: 1, a: 1}
|
||||
HighlightColor: {r: 1, g: 0.4464876, b: 0.050000012, a: 1}
|
||||
FillBrightness: 0.25
|
||||
FillAlpha: 0.75
|
||||
FillMultiplier: 0.25
|
||||
InactiveMultiplier: 0.2
|
||||
TestSteps: 3
|
||||
TestPadding: 0
|
||||
BoxLineExpand: -4
|
||||
GlobalColor: {r: 0.47999993, g: 0.9, b: 0.27, a: 1}
|
||||
GlobalHueBuffer: 0.1
|
||||
--- !u!1 &1225606405
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 1225606406}
|
||||
m_Layer: 5
|
||||
m_Name: Lines
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &1225606406
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1225606405}
|
||||
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children:
|
||||
- {fileID: 890604315}
|
||||
m_Father: {fileID: 762724330}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 1, y: 1}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!1 &1315472063
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
|
|
@ -1077,6 +1523,7 @@ MonoBehaviour:
|
|||
m_Script: {fileID: 11500000, guid: 6b0e4442eab42ac4e97e2c69d5c99ebc, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
LayoutGroup: {fileID: 1437310510}
|
||||
KeyPrototype: {fileID: 187012183}
|
||||
KeySpacerPrototype: {fileID: 1644964260}
|
||||
--- !u!114 &1437310510
|
||||
|
|
|
|||
|
|
@ -802,8 +802,8 @@ Transform:
|
|||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 741153267}
|
||||
m_LocalRotation: {x: 0.015506926, y: 0.9502416, z: -0.30741316, w: 0.047933295}
|
||||
m_LocalPosition: {x: -117.52003, y: -77.08742, z: 149.09026}
|
||||
m_LocalRotation: {x: 0.015506903, y: 0.9502416, z: -0.30741313, w: 0.04793323}
|
||||
m_LocalPosition: {x: -117.51999, y: -77.08743, z: 149.09026}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children:
|
||||
- {fileID: 412917866}
|
||||
|
|
@ -1304,8 +1304,8 @@ Transform:
|
|||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 965376321}
|
||||
m_LocalRotation: {x: 0.015506926, y: 0.9502416, z: -0.30741316, w: 0.047933295}
|
||||
m_LocalPosition: {x: -117.52003, y: -77.08742, z: 149.09026}
|
||||
m_LocalRotation: {x: 0.015506903, y: 0.9502416, z: -0.30741313, w: 0.04793323}
|
||||
m_LocalPosition: {x: -117.51999, y: -77.08743, z: 149.09026}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
|
|
@ -1453,8 +1453,8 @@ MonoBehaviour:
|
|||
m_EditorClassIdentifier:
|
||||
pattern: 12
|
||||
patternScale: 1
|
||||
activeSample: {x: -0.375, y: -0.055555552, z: 0.25, w: -0.3888889}
|
||||
activeIndex: 3
|
||||
activeSample: {x: -0.3125, y: -0.35185185, z: 0.3125, w: 0.2037037}
|
||||
activeIndex: 11
|
||||
--- !u!114 &965376331
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
|
|
|
|||
|
|
@ -82,14 +82,6 @@ public class @AetheriaInput : IInputActionCollection, IDisposable
|
|||
""processors"": """",
|
||||
""interactions"": """"
|
||||
},
|
||||
{
|
||||
""name"": ""EnterWormhole"",
|
||||
""type"": ""Button"",
|
||||
""id"": ""c918ac22-b029-4805-9c85-e615a52641f2"",
|
||||
""expectedControlType"": ""Button"",
|
||||
""processors"": """",
|
||||
""interactions"": """"
|
||||
},
|
||||
{
|
||||
""name"": ""Toggle Shield"",
|
||||
""type"": ""Button"",
|
||||
|
|
@ -129,6 +121,14 @@ public class @AetheriaInput : IInputActionCollection, IDisposable
|
|||
""expectedControlType"": """",
|
||||
""processors"": """",
|
||||
""interactions"": """"
|
||||
},
|
||||
{
|
||||
""name"": ""Enter Wormhole"",
|
||||
""type"": ""Button"",
|
||||
""id"": ""b907857f-d1d2-455d-912b-8de9a64f0f3a"",
|
||||
""expectedControlType"": ""Button"",
|
||||
""processors"": """",
|
||||
""interactions"": """"
|
||||
}
|
||||
],
|
||||
""bindings"": [
|
||||
|
|
@ -165,17 +165,6 @@ public class @AetheriaInput : IInputActionCollection, IDisposable
|
|||
""isComposite"": false,
|
||||
""isPartOfComposite"": true
|
||||
},
|
||||
{
|
||||
""name"": ""up"",
|
||||
""id"": ""8180e8bd-4097-4f4e-ab88-4523101a6ce9"",
|
||||
""path"": ""<Keyboard>/upArrow"",
|
||||
""interactions"": """",
|
||||
""processors"": """",
|
||||
""groups"": "";Keyboard&Mouse"",
|
||||
""action"": ""Move"",
|
||||
""isComposite"": false,
|
||||
""isPartOfComposite"": true
|
||||
},
|
||||
{
|
||||
""name"": ""down"",
|
||||
""id"": ""320bffee-a40b-4347-ac70-c210eb8bc73a"",
|
||||
|
|
@ -187,17 +176,6 @@ public class @AetheriaInput : IInputActionCollection, IDisposable
|
|||
""isComposite"": false,
|
||||
""isPartOfComposite"": true
|
||||
},
|
||||
{
|
||||
""name"": ""down"",
|
||||
""id"": ""1c5327b5-f71c-4f60-99c7-4e737386f1d1"",
|
||||
""path"": ""<Keyboard>/downArrow"",
|
||||
""interactions"": """",
|
||||
""processors"": """",
|
||||
""groups"": "";Keyboard&Mouse"",
|
||||
""action"": ""Move"",
|
||||
""isComposite"": false,
|
||||
""isPartOfComposite"": true
|
||||
},
|
||||
{
|
||||
""name"": ""left"",
|
||||
""id"": ""d2581a9b-1d11-4566-b27d-b92aff5fabbc"",
|
||||
|
|
@ -209,17 +187,6 @@ public class @AetheriaInput : IInputActionCollection, IDisposable
|
|||
""isComposite"": false,
|
||||
""isPartOfComposite"": true
|
||||
},
|
||||
{
|
||||
""name"": ""left"",
|
||||
""id"": ""2e46982e-44cc-431b-9f0b-c11910bf467a"",
|
||||
""path"": ""<Keyboard>/leftArrow"",
|
||||
""interactions"": """",
|
||||
""processors"": """",
|
||||
""groups"": "";Keyboard&Mouse"",
|
||||
""action"": ""Move"",
|
||||
""isComposite"": false,
|
||||
""isPartOfComposite"": true
|
||||
},
|
||||
{
|
||||
""name"": ""right"",
|
||||
""id"": ""fcfe95b8-67b9-4526-84b5-5d0bc98d6400"",
|
||||
|
|
@ -231,17 +198,6 @@ public class @AetheriaInput : IInputActionCollection, IDisposable
|
|||
""isComposite"": false,
|
||||
""isPartOfComposite"": true
|
||||
},
|
||||
{
|
||||
""name"": ""right"",
|
||||
""id"": ""77bff152-3580-4b21-b6de-dcd0c7e41164"",
|
||||
""path"": ""<Keyboard>/rightArrow"",
|
||||
""interactions"": """",
|
||||
""processors"": """",
|
||||
""groups"": "";Keyboard&Mouse"",
|
||||
""action"": ""Move"",
|
||||
""isComposite"": false,
|
||||
""isPartOfComposite"": true
|
||||
},
|
||||
{
|
||||
""name"": """",
|
||||
""id"": ""3ea4d645-4504-4529-b061-ab81934c3752"",
|
||||
|
|
@ -311,7 +267,7 @@ public class @AetheriaInput : IInputActionCollection, IDisposable
|
|||
{
|
||||
""name"": """",
|
||||
""id"": ""6e13d87d-e5bb-4363-b153-1e0c1e21e4eb"",
|
||||
""path"": ""<Keyboard>/#(Y)"",
|
||||
""path"": ""<Keyboard>/y"",
|
||||
""interactions"": """",
|
||||
""processors"": """",
|
||||
""groups"": ""Keyboard&Mouse"",
|
||||
|
|
@ -322,7 +278,7 @@ public class @AetheriaInput : IInputActionCollection, IDisposable
|
|||
{
|
||||
""name"": """",
|
||||
""id"": ""e6e3164c-1b59-4eab-99d9-5a3bc294af0b"",
|
||||
""path"": ""<Keyboard>/#(U)"",
|
||||
""path"": ""<Keyboard>/u"",
|
||||
""interactions"": """",
|
||||
""processors"": """",
|
||||
""groups"": ""Keyboard&Mouse"",
|
||||
|
|
@ -333,7 +289,7 @@ public class @AetheriaInput : IInputActionCollection, IDisposable
|
|||
{
|
||||
""name"": """",
|
||||
""id"": ""b55dd143-367d-4842-82c8-593c301bcd69"",
|
||||
""path"": ""<Keyboard>/#(T)"",
|
||||
""path"": ""<Keyboard>/t"",
|
||||
""interactions"": """",
|
||||
""processors"": """",
|
||||
""groups"": ""Keyboard&Mouse"",
|
||||
|
|
@ -344,7 +300,7 @@ public class @AetheriaInput : IInputActionCollection, IDisposable
|
|||
{
|
||||
""name"": """",
|
||||
""id"": ""71ac6088-1e18-4810-86be-1179918dd4a2"",
|
||||
""path"": ""<Keyboard>/#(H)"",
|
||||
""path"": ""<Keyboard>/h"",
|
||||
""interactions"": """",
|
||||
""processors"": """",
|
||||
""groups"": ""Keyboard&Mouse"",
|
||||
|
|
@ -352,21 +308,10 @@ public class @AetheriaInput : IInputActionCollection, IDisposable
|
|||
""isComposite"": false,
|
||||
""isPartOfComposite"": false
|
||||
},
|
||||
{
|
||||
""name"": """",
|
||||
""id"": ""95817d40-4c8d-4660-bd68-a93afe74b6e1"",
|
||||
""path"": ""<Keyboard>/#(V)"",
|
||||
""interactions"": """",
|
||||
""processors"": """",
|
||||
""groups"": ""Keyboard&Mouse"",
|
||||
""action"": ""EnterWormhole"",
|
||||
""isComposite"": false,
|
||||
""isPartOfComposite"": false
|
||||
},
|
||||
{
|
||||
""name"": """",
|
||||
""id"": ""d59fb542-6ac5-466d-a668-67fd8c890232"",
|
||||
""path"": ""<Keyboard>/#(G)"",
|
||||
""path"": ""<Keyboard>/g"",
|
||||
""interactions"": """",
|
||||
""processors"": """",
|
||||
""groups"": ""Keyboard&Mouse"",
|
||||
|
|
@ -377,7 +322,7 @@ public class @AetheriaInput : IInputActionCollection, IDisposable
|
|||
{
|
||||
""name"": """",
|
||||
""id"": ""8e8b5d19-20fd-43f3-88cf-6246f374e7cf"",
|
||||
""path"": ""<Keyboard>/#(O)"",
|
||||
""path"": ""<Keyboard>/o"",
|
||||
""interactions"": """",
|
||||
""processors"": """",
|
||||
""groups"": ""Keyboard&Mouse"",
|
||||
|
|
@ -388,7 +333,7 @@ public class @AetheriaInput : IInputActionCollection, IDisposable
|
|||
{
|
||||
""name"": """",
|
||||
""id"": ""baa67cdf-3c91-46dd-965c-12370a897414"",
|
||||
""path"": ""<Keyboard>/#(X)"",
|
||||
""path"": ""<Keyboard>/x"",
|
||||
""interactions"": """",
|
||||
""processors"": """",
|
||||
""groups"": ""Keyboard&Mouse"",
|
||||
|
|
@ -417,6 +362,17 @@ public class @AetheriaInput : IInputActionCollection, IDisposable
|
|||
""action"": ""Tractor Beam"",
|
||||
""isComposite"": false,
|
||||
""isPartOfComposite"": false
|
||||
},
|
||||
{
|
||||
""name"": """",
|
||||
""id"": ""85857c0e-82fa-4889-895a-1e55c6dbe206"",
|
||||
""path"": ""<Keyboard>/v"",
|
||||
""interactions"": """",
|
||||
""processors"": """",
|
||||
""groups"": ""Keyboard&Mouse"",
|
||||
""action"": ""Enter Wormhole"",
|
||||
""isComposite"": false,
|
||||
""isPartOfComposite"": false
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
@ -911,9 +867,9 @@ public class @AetheriaInput : IInputActionCollection, IDisposable
|
|||
""interactions"": """"
|
||||
},
|
||||
{
|
||||
""name"": ""MainMenu"",
|
||||
""name"": ""Main Menu"",
|
||||
""type"": ""Button"",
|
||||
""id"": ""a626132e-6205-4abb-9a45-4cce6446958b"",
|
||||
""id"": ""0515c617-9dff-406f-ab3e-763971d532d3"",
|
||||
""expectedControlType"": ""Button"",
|
||||
""processors"": """",
|
||||
""interactions"": """"
|
||||
|
|
@ -934,7 +890,7 @@ public class @AetheriaInput : IInputActionCollection, IDisposable
|
|||
{
|
||||
""name"": """",
|
||||
""id"": ""2eb827dd-4707-4648-b7e5-cf1fd8fa00da"",
|
||||
""path"": ""<Keyboard>/#(I)"",
|
||||
""path"": ""<Keyboard>/i"",
|
||||
""interactions"": """",
|
||||
""processors"": """",
|
||||
""groups"": ""Keyboard&Mouse"",
|
||||
|
|
@ -945,7 +901,7 @@ public class @AetheriaInput : IInputActionCollection, IDisposable
|
|||
{
|
||||
""name"": """",
|
||||
""id"": ""3279cef8-8bd1-49f2-984a-637d1f8522f6"",
|
||||
""path"": ""<Keyboard>/#(C)"",
|
||||
""path"": ""<Keyboard>/c"",
|
||||
""interactions"": """",
|
||||
""processors"": """",
|
||||
""groups"": ""Keyboard&Mouse"",
|
||||
|
|
@ -953,17 +909,6 @@ public class @AetheriaInput : IInputActionCollection, IDisposable
|
|||
""isComposite"": false,
|
||||
""isPartOfComposite"": false
|
||||
},
|
||||
{
|
||||
""name"": """",
|
||||
""id"": ""7de0bb82-5492-49aa-aa56-8562b58ba8a8"",
|
||||
""path"": ""<Keyboard>/escape"",
|
||||
""interactions"": """",
|
||||
""processors"": """",
|
||||
""groups"": ""Keyboard&Mouse"",
|
||||
""action"": ""MainMenu"",
|
||||
""isComposite"": false,
|
||||
""isPartOfComposite"": false
|
||||
},
|
||||
{
|
||||
""name"": """",
|
||||
""id"": ""f90929d5-d8d1-40dc-acc7-7ae294971d12"",
|
||||
|
|
@ -974,6 +919,17 @@ public class @AetheriaInput : IInputActionCollection, IDisposable
|
|||
""action"": ""Galaxy Map"",
|
||||
""isComposite"": false,
|
||||
""isPartOfComposite"": false
|
||||
},
|
||||
{
|
||||
""name"": """",
|
||||
""id"": ""873dbfff-25b2-4747-ab9d-53d34324d660"",
|
||||
""path"": ""<Keyboard>/escape"",
|
||||
""interactions"": """",
|
||||
""processors"": """",
|
||||
""groups"": ""Keyboard&Mouse"",
|
||||
""action"": ""Main Menu"",
|
||||
""isComposite"": false,
|
||||
""isPartOfComposite"": false
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -1029,12 +985,12 @@ public class @AetheriaInput : IInputActionCollection, IDisposable
|
|||
m_Player_TargetNext = m_Player.FindAction("Target Next", throwIfNotFound: true);
|
||||
m_Player_TargetNearest = m_Player.FindAction("Target Nearest", throwIfNotFound: true);
|
||||
m_Player_ToggleHeatsinks = m_Player.FindAction("Toggle Heatsinks", throwIfNotFound: true);
|
||||
m_Player_EnterWormhole = m_Player.FindAction("EnterWormhole", throwIfNotFound: true);
|
||||
m_Player_ToggleShield = m_Player.FindAction("Toggle Shield", throwIfNotFound: true);
|
||||
m_Player_OverrideShutdown = m_Player.FindAction("Override Shutdown", throwIfNotFound: true);
|
||||
m_Player_Ping = m_Player.FindAction("Ping", throwIfNotFound: true);
|
||||
m_Player_HideUI = m_Player.FindAction("Hide UI", throwIfNotFound: true);
|
||||
m_Player_TractorBeam = m_Player.FindAction("Tractor Beam", throwIfNotFound: true);
|
||||
m_Player_EnterWormhole = m_Player.FindAction("Enter Wormhole", throwIfNotFound: true);
|
||||
// UI
|
||||
m_UI = asset.FindActionMap("UI", throwIfNotFound: true);
|
||||
m_UI_Navigate = m_UI.FindAction("Navigate", throwIfNotFound: true);
|
||||
|
|
@ -1052,7 +1008,7 @@ public class @AetheriaInput : IInputActionCollection, IDisposable
|
|||
m_Global_GalaxyMap = m_Global.FindAction("Galaxy Map", throwIfNotFound: true);
|
||||
m_Global_Inventory = m_Global.FindAction("Inventory", throwIfNotFound: true);
|
||||
m_Global_Dock = m_Global.FindAction("Dock", throwIfNotFound: true);
|
||||
m_Global_MainMenu = m_Global.FindAction("MainMenu", throwIfNotFound: true);
|
||||
m_Global_MainMenu = m_Global.FindAction("Main Menu", throwIfNotFound: true);
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
|
|
@ -1110,12 +1066,12 @@ public class @AetheriaInput : IInputActionCollection, IDisposable
|
|||
private readonly InputAction m_Player_TargetNext;
|
||||
private readonly InputAction m_Player_TargetNearest;
|
||||
private readonly InputAction m_Player_ToggleHeatsinks;
|
||||
private readonly InputAction m_Player_EnterWormhole;
|
||||
private readonly InputAction m_Player_ToggleShield;
|
||||
private readonly InputAction m_Player_OverrideShutdown;
|
||||
private readonly InputAction m_Player_Ping;
|
||||
private readonly InputAction m_Player_HideUI;
|
||||
private readonly InputAction m_Player_TractorBeam;
|
||||
private readonly InputAction m_Player_EnterWormhole;
|
||||
public struct PlayerActions
|
||||
{
|
||||
private @AetheriaInput m_Wrapper;
|
||||
|
|
@ -1128,12 +1084,12 @@ public class @AetheriaInput : IInputActionCollection, IDisposable
|
|||
public InputAction @TargetNext => m_Wrapper.m_Player_TargetNext;
|
||||
public InputAction @TargetNearest => m_Wrapper.m_Player_TargetNearest;
|
||||
public InputAction @ToggleHeatsinks => m_Wrapper.m_Player_ToggleHeatsinks;
|
||||
public InputAction @EnterWormhole => m_Wrapper.m_Player_EnterWormhole;
|
||||
public InputAction @ToggleShield => m_Wrapper.m_Player_ToggleShield;
|
||||
public InputAction @OverrideShutdown => m_Wrapper.m_Player_OverrideShutdown;
|
||||
public InputAction @Ping => m_Wrapper.m_Player_Ping;
|
||||
public InputAction @HideUI => m_Wrapper.m_Player_HideUI;
|
||||
public InputAction @TractorBeam => m_Wrapper.m_Player_TractorBeam;
|
||||
public InputAction @EnterWormhole => m_Wrapper.m_Player_EnterWormhole;
|
||||
public InputActionMap Get() { return m_Wrapper.m_Player; }
|
||||
public void Enable() { Get().Enable(); }
|
||||
public void Disable() { Get().Disable(); }
|
||||
|
|
@ -1167,9 +1123,6 @@ public class @AetheriaInput : IInputActionCollection, IDisposable
|
|||
@ToggleHeatsinks.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnToggleHeatsinks;
|
||||
@ToggleHeatsinks.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnToggleHeatsinks;
|
||||
@ToggleHeatsinks.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnToggleHeatsinks;
|
||||
@EnterWormhole.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnEnterWormhole;
|
||||
@EnterWormhole.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnEnterWormhole;
|
||||
@EnterWormhole.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnEnterWormhole;
|
||||
@ToggleShield.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnToggleShield;
|
||||
@ToggleShield.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnToggleShield;
|
||||
@ToggleShield.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnToggleShield;
|
||||
|
|
@ -1185,6 +1138,9 @@ public class @AetheriaInput : IInputActionCollection, IDisposable
|
|||
@TractorBeam.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnTractorBeam;
|
||||
@TractorBeam.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnTractorBeam;
|
||||
@TractorBeam.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnTractorBeam;
|
||||
@EnterWormhole.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnEnterWormhole;
|
||||
@EnterWormhole.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnEnterWormhole;
|
||||
@EnterWormhole.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnEnterWormhole;
|
||||
}
|
||||
m_Wrapper.m_PlayerActionsCallbackInterface = instance;
|
||||
if (instance != null)
|
||||
|
|
@ -1213,9 +1169,6 @@ public class @AetheriaInput : IInputActionCollection, IDisposable
|
|||
@ToggleHeatsinks.started += instance.OnToggleHeatsinks;
|
||||
@ToggleHeatsinks.performed += instance.OnToggleHeatsinks;
|
||||
@ToggleHeatsinks.canceled += instance.OnToggleHeatsinks;
|
||||
@EnterWormhole.started += instance.OnEnterWormhole;
|
||||
@EnterWormhole.performed += instance.OnEnterWormhole;
|
||||
@EnterWormhole.canceled += instance.OnEnterWormhole;
|
||||
@ToggleShield.started += instance.OnToggleShield;
|
||||
@ToggleShield.performed += instance.OnToggleShield;
|
||||
@ToggleShield.canceled += instance.OnToggleShield;
|
||||
|
|
@ -1231,6 +1184,9 @@ public class @AetheriaInput : IInputActionCollection, IDisposable
|
|||
@TractorBeam.started += instance.OnTractorBeam;
|
||||
@TractorBeam.performed += instance.OnTractorBeam;
|
||||
@TractorBeam.canceled += instance.OnTractorBeam;
|
||||
@EnterWormhole.started += instance.OnEnterWormhole;
|
||||
@EnterWormhole.performed += instance.OnEnterWormhole;
|
||||
@EnterWormhole.canceled += instance.OnEnterWormhole;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1434,12 +1390,12 @@ public class @AetheriaInput : IInputActionCollection, IDisposable
|
|||
void OnTargetNext(InputAction.CallbackContext context);
|
||||
void OnTargetNearest(InputAction.CallbackContext context);
|
||||
void OnToggleHeatsinks(InputAction.CallbackContext context);
|
||||
void OnEnterWormhole(InputAction.CallbackContext context);
|
||||
void OnToggleShield(InputAction.CallbackContext context);
|
||||
void OnOverrideShutdown(InputAction.CallbackContext context);
|
||||
void OnPing(InputAction.CallbackContext context);
|
||||
void OnHideUI(InputAction.CallbackContext context);
|
||||
void OnTractorBeam(InputAction.CallbackContext context);
|
||||
void OnEnterWormhole(InputAction.CallbackContext context);
|
||||
}
|
||||
public interface IUIActions
|
||||
{
|
||||
|
|
|
|||
|
|
@ -130,7 +130,7 @@ public class AetherDrive : Behavior
|
|||
var torqueRatio = actualRpmDelta / potentialRpmDelta;
|
||||
var draw = torqueRatio * Evaluate(_data.EnergyDraw) / 3;
|
||||
|
||||
Item.SetAudioParameter(SpecialAudioParameter.Intensity, max(max(_axis.x, _axis.y), _axis.z));
|
||||
Item.SetAudioParameter(SpecialAudioParameter.Intensity, max(max(abs(_axis.x), abs(_axis.y)), abs(_axis.z)));
|
||||
Item.SetAudioParameter(_data.RpmAudioParameter, (Rpm.x + Rpm.y + Rpm.z) / 3 / MaximumRpm);
|
||||
Item.SetAudioParameter(_data.TorqueRatioAudioParameter, max(max(torqueRatio.x, torqueRatio.y), torqueRatio.z));
|
||||
|
||||
|
|
|
|||
|
|
@ -77,4 +77,32 @@ public static class UnitySceneExtensions
|
|||
|
||||
public static Vector3 Flatland(this Vector2 v, float y = 0) => new Vector3(v.x,y,v.y);
|
||||
public static Vector2 Flatland(this Vector3 v) => new Vector2(v.x,v.z);
|
||||
|
||||
// public static Rect ScreenSpaceRect(this RectTransform transform)
|
||||
// {
|
||||
// var size= Vector2.Scale(transform.rect.size, transform.lossyScale);
|
||||
// var x= transform.position.x + transform.anchoredPosition.x;
|
||||
// var y= Screen.height - transform.position.y - transform.anchoredPosition.y;
|
||||
//
|
||||
// return new Rect(x, y, size.x, size.y);
|
||||
// }
|
||||
|
||||
private static Vector3[] _worldCorners = new Vector3[4];
|
||||
|
||||
public static Bounds GetBounds(this RectTransform transform, float expand = 0)
|
||||
{
|
||||
transform.GetWorldCorners(_worldCorners);
|
||||
var bounds = new Bounds(_worldCorners[0], Vector3.zero);
|
||||
for(int i = 1; i < 4; ++i)
|
||||
{
|
||||
bounds.Encapsulate(_worldCorners[i]);
|
||||
}
|
||||
bounds.size += new Vector3(expand, expand, 0);
|
||||
return bounds;
|
||||
}
|
||||
public static Rect ScreenSpaceRect(this RectTransform transform, float expand = 0)
|
||||
{
|
||||
var bounds = GetBounds(transform, expand);
|
||||
return new Rect(bounds.min, bounds.size);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ PluginImporter:
|
|||
- first:
|
||||
Standalone: Win64
|
||||
second:
|
||||
enabled: 0
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: None
|
||||
userData:
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ PluginImporter:
|
|||
- first:
|
||||
Standalone: Win64
|
||||
second:
|
||||
enabled: 0
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: None
|
||||
userData:
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ PluginImporter:
|
|||
- first:
|
||||
Standalone: Win64
|
||||
second:
|
||||
enabled: 0
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: None
|
||||
userData:
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ PluginImporter:
|
|||
- first:
|
||||
Standalone: Win64
|
||||
second:
|
||||
enabled: 0
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: None
|
||||
userData:
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ PluginImporter:
|
|||
- first:
|
||||
Standalone: Win64
|
||||
second:
|
||||
enabled: 0
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: None
|
||||
userData:
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ PluginImporter:
|
|||
- first:
|
||||
Standalone: Win64
|
||||
second:
|
||||
enabled: 0
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: None
|
||||
userData:
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ PluginImporter:
|
|||
- first:
|
||||
Standalone: Win64
|
||||
second:
|
||||
enabled: 0
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
userData:
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ PluginImporter:
|
|||
- first:
|
||||
Standalone: Win64
|
||||
second:
|
||||
enabled: 0
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
userData:
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ PluginImporter:
|
|||
- first:
|
||||
Standalone: Win64
|
||||
second:
|
||||
enabled: 0
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
userData:
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ PluginImporter:
|
|||
- first:
|
||||
Standalone: Win64
|
||||
second:
|
||||
enabled: 0
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
userData:
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ PluginImporter:
|
|||
- first:
|
||||
Standalone: Win64
|
||||
second:
|
||||
enabled: 0
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
userData:
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ PluginImporter:
|
|||
- first:
|
||||
Standalone: Win64
|
||||
second:
|
||||
enabled: 0
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
userData:
|
||||
|
|
|
|||
BIN
Assets/Wwise/Editor/ProjectData/AkWwiseProjectData.asset
(Stored with Git LFS)
BIN
Assets/Wwise/Editor/ProjectData/AkWwiseProjectData.asset
(Stored with Git LFS)
Binary file not shown.
Loading…
Reference in a new issue