found a name
This commit is contained in:
@@ -440,7 +440,7 @@ Camera:
|
|||||||
m_GameObject: {fileID: 519420028}
|
m_GameObject: {fileID: 519420028}
|
||||||
m_Enabled: 1
|
m_Enabled: 1
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
m_ClearFlags: 1
|
m_ClearFlags: 4
|
||||||
m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0}
|
m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0}
|
||||||
m_projectionMatrixMode: 1
|
m_projectionMatrixMode: 1
|
||||||
m_GateFitMode: 2
|
m_GateFitMode: 2
|
||||||
@@ -458,7 +458,7 @@ Camera:
|
|||||||
far clip plane: 1000
|
far clip plane: 1000
|
||||||
field of view: 60
|
field of view: 60
|
||||||
orthographic: 1
|
orthographic: 1
|
||||||
orthographic size: 20
|
orthographic size: 15
|
||||||
m_Depth: -1
|
m_Depth: -1
|
||||||
m_CullingMask:
|
m_CullingMask:
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
@@ -482,7 +482,7 @@ Transform:
|
|||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
m_GameObject: {fileID: 519420028}
|
m_GameObject: {fileID: 519420028}
|
||||||
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
||||||
m_LocalPosition: {x: 0, y: 0, z: -20}
|
m_LocalPosition: {x: 0, y: 0, z: -15}
|
||||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
m_Children: []
|
m_Children: []
|
||||||
m_Father: {fileID: 1835199860}
|
m_Father: {fileID: 1835199860}
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
namespace UntitledLogicGame
|
namespace CompuLogic
|
||||||
{
|
{
|
||||||
public class CameraManager : MonoBehaviour
|
public class CameraManager : MonoBehaviour
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ using System.Collections.Generic;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
namespace UntitledLogicGame
|
namespace CompuLogic
|
||||||
{
|
{
|
||||||
//public class TODO : MonoBehaviour
|
//public class TODO : MonoBehaviour
|
||||||
//{
|
//{
|
||||||
|
|||||||
@@ -2,9 +2,9 @@
|
|||||||
using System.Collections;
|
using System.Collections;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using UntitledLogicGame.Workspace;
|
using CompuLogic.Workspace;
|
||||||
|
|
||||||
namespace UntitledLogicGame
|
namespace CompuLogic
|
||||||
{
|
{
|
||||||
public class GameManager : MonoBehaviour
|
public class GameManager : MonoBehaviour
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -2,9 +2,9 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using UntitledLogicGame.Workspace;
|
using CompuLogic.Workspace;
|
||||||
|
|
||||||
namespace UntitledLogicGame
|
namespace CompuLogic
|
||||||
{
|
{
|
||||||
public class PointerManager : MonoBehaviour
|
public class PointerManager : MonoBehaviour
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ using UnityEngine;
|
|||||||
using UnityEngine.EventSystems;
|
using UnityEngine.EventSystems;
|
||||||
using UnityEngine.UI;
|
using UnityEngine.UI;
|
||||||
|
|
||||||
namespace UntitledLogicGame.UI
|
namespace CompuLogic.UI
|
||||||
{
|
{
|
||||||
public class UIDelete : UIToolbarButton, IPointerEnterHandler, IPointerExitHandler
|
public class UIDelete : UIToolbarButton, IPointerEnterHandler, IPointerExitHandler
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ using UnityEngine;
|
|||||||
using UnityEngine.EventSystems;
|
using UnityEngine.EventSystems;
|
||||||
using UnityEngine.UI;
|
using UnityEngine.UI;
|
||||||
|
|
||||||
namespace UntitledLogicGame.UI
|
namespace CompuLogic.UI
|
||||||
{
|
{
|
||||||
public class UIFolder : UIToolbarButton
|
public class UIFolder : UIToolbarButton
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -6,9 +6,9 @@ using TMPro;
|
|||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using UnityEngine.EventSystems;
|
using UnityEngine.EventSystems;
|
||||||
using UnityEngine.UI;
|
using UnityEngine.UI;
|
||||||
using UntitledLogicGame.Workspace;
|
using CompuLogic.Workspace;
|
||||||
|
|
||||||
namespace UntitledLogicGame.UI
|
namespace CompuLogic.UI
|
||||||
{
|
{
|
||||||
public class UIGate : UIToolbarButton
|
public class UIGate : UIToolbarButton
|
||||||
{
|
{
|
||||||
@@ -18,11 +18,12 @@ namespace UntitledLogicGame.UI
|
|||||||
get
|
get
|
||||||
{
|
{
|
||||||
if(_maxSize == null)
|
if(_maxSize == null)
|
||||||
_maxSize = GameManager.Instance.GateSprites.Select(s => s.rect.width).Max();
|
_maxSize = GameManager.Instance.GateSprites.Select(s => Math.Max(s.rect.width, s.rect.height)).Max();
|
||||||
return _maxSize.Value;
|
return _maxSize.Value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
private float? _maxSize;
|
private float? _maxSize;
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Unity Properties
|
#region Unity Properties
|
||||||
@@ -37,7 +38,7 @@ namespace UntitledLogicGame.UI
|
|||||||
{
|
{
|
||||||
var sprite = value.GetComponentInChildren<SpriteRenderer>().sprite;
|
var sprite = value.GetComponentInChildren<SpriteRenderer>().sprite;
|
||||||
Image.sprite = sprite;
|
Image.sprite = sprite;
|
||||||
Image.GetComponent<RectTransform>().sizeDelta = new Vector2(100f, 100 * sprite.rect.width / MaxSize);
|
Image.GetComponent<RectTransform>().sizeDelta = new Vector2(100f, 100 * Math.Max(sprite.rect.width, sprite.rect.height) / MaxSize);
|
||||||
gameObject.name = "UI_" + value.GateType.ToString();
|
gameObject.name = "UI_" + value.GateType.ToString();
|
||||||
Text.text = value.UIName;
|
Text.text = value.UIName;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,9 +3,9 @@ using System.Collections;
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using UntitledLogicGame.Workspace.Gates;
|
using CompuLogic.Workspace.Gates;
|
||||||
|
|
||||||
namespace UntitledLogicGame.UI
|
namespace CompuLogic.UI
|
||||||
{
|
{
|
||||||
public class UIManager : MonoBehaviour
|
public class UIManager : MonoBehaviour
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ using UnityEngine;
|
|||||||
using UnityEngine.EventSystems;
|
using UnityEngine.EventSystems;
|
||||||
using UnityEngine.UI;
|
using UnityEngine.UI;
|
||||||
|
|
||||||
namespace UntitledLogicGame.UI
|
namespace CompuLogic.UI
|
||||||
{
|
{
|
||||||
public class UIToolbarButton : MonoBehaviour, IPointerDownHandler
|
public class UIToolbarButton : MonoBehaviour, IPointerDownHandler
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ using System.Linq;
|
|||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using Random = UnityEngine.Random;
|
using Random = UnityEngine.Random;
|
||||||
|
|
||||||
namespace UntitledLogicGame
|
namespace CompuLogic
|
||||||
{
|
{
|
||||||
public static class Utils
|
public static class Utils
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ using System.Collections.Generic;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
namespace UntitledLogicGame.Workspace
|
namespace CompuLogic.Workspace
|
||||||
{
|
{
|
||||||
public class Anchor : MonoBehaviour
|
public class Anchor : MonoBehaviour
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ using System.Collections.Generic;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
namespace UntitledLogicGame.Workspace
|
namespace CompuLogic.Workspace
|
||||||
{
|
{
|
||||||
public class Cable : MonoBehaviour
|
public class Cable : MonoBehaviour
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -2,9 +2,9 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using UntitledLogicGame.Workspace.Gates;
|
using CompuLogic.Workspace.Gates;
|
||||||
|
|
||||||
namespace UntitledLogicGame.Workspace
|
namespace CompuLogic.Workspace
|
||||||
{
|
{
|
||||||
public class Gate : MonoBehaviour
|
public class Gate : MonoBehaviour
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -4,12 +4,12 @@ using System.Collections.Generic;
|
|||||||
using System.Globalization;
|
using System.Globalization;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using UntitledLogicGame.Workspace;
|
using CompuLogic.Workspace;
|
||||||
using UntitledLogicGame.Workspace.Gates;
|
using CompuLogic.Workspace.Gates;
|
||||||
using YamlDotNet.Serialization;
|
using YamlDotNet.Serialization;
|
||||||
using YamlDotNet.Serialization.NamingConventions;
|
using YamlDotNet.Serialization.NamingConventions;
|
||||||
|
|
||||||
namespace UntitledLogicGame.Workspace
|
namespace CompuLogic.Workspace
|
||||||
{
|
{
|
||||||
public class GatePrefabFactory : MonoBehaviour
|
public class GatePrefabFactory : MonoBehaviour
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -2,9 +2,9 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using UntitledLogicGame.Workspace.Gates;
|
using CompuLogic.Workspace.Gates;
|
||||||
|
|
||||||
namespace UntitledLogicGame.Workspace
|
namespace CompuLogic.Workspace
|
||||||
{
|
{
|
||||||
public class GateSprite : MonoBehaviour
|
public class GateSprite : MonoBehaviour
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
|
||||||
namespace UntitledLogicGame.Workspace.Gates
|
namespace CompuLogic.Workspace.Gates
|
||||||
{
|
{
|
||||||
public abstract class GateDefinition
|
public abstract class GateDefinition
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace UntitledLogicGame.Workspace.Gates
|
namespace CompuLogic.Workspace.Gates
|
||||||
{
|
{
|
||||||
#region 000 - Technical
|
#region 000 - Technical
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
namespace UntitledLogicGame.Workspace.Gates
|
namespace CompuLogic.Workspace.Gates
|
||||||
{
|
{
|
||||||
public enum GateType
|
public enum GateType
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
|
||||||
namespace UntitledLogicGame.Workspace.Gates
|
namespace CompuLogic.Workspace.Gates
|
||||||
{
|
{
|
||||||
public class InputState : State
|
public class InputState : State
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ using System.Collections.Generic;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
namespace UntitledLogicGame.Workspace
|
namespace CompuLogic.Workspace
|
||||||
{
|
{
|
||||||
public class InputGate : Gate
|
public class InputGate : Gate
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ using System.Collections.Generic;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
namespace UntitledLogicGame.Workspace
|
namespace CompuLogic.Workspace
|
||||||
{
|
{
|
||||||
public class OutputGate : Gate
|
public class OutputGate : Gate
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ PlayerSettings:
|
|||||||
useOnDemandResources: 0
|
useOnDemandResources: 0
|
||||||
accelerometerFrequency: 60
|
accelerometerFrequency: 60
|
||||||
companyName: DefaultCompany
|
companyName: DefaultCompany
|
||||||
productName: Untitled Logic Game
|
productName: CompuLogic
|
||||||
defaultCursor: {fileID: 0}
|
defaultCursor: {fileID: 0}
|
||||||
cursorHotspot: {x: 0, y: 0}
|
cursorHotspot: {x: 0, y: 0}
|
||||||
m_SplashScreenBackgroundColor: {r: 0.13725491, g: 0.12156863, b: 0.1254902, a: 1}
|
m_SplashScreenBackgroundColor: {r: 0.13725491, g: 0.12156863, b: 0.1254902, a: 1}
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
TODO
|
TODO
|
||||||
|
-(1) finish gate book
|
||||||
|
-(1) mux/demux svg
|
||||||
|
-(1) change fonts
|
||||||
-(2) named anchors (dezoom hide ?)
|
-(2) named anchors (dezoom hide ?)
|
||||||
-(3) clocks (1Hz, 5Hz, 10Hz, etc.)
|
-(3) clocks (1Hz, 5Hz, 10Hz, etc.)
|
||||||
-(3) generic rect gates
|
|
||||||
-(3) state gates (automatic prefab ?)
|
|
||||||
-(3) cable overlap (same/diff circuit)
|
-(3) cable overlap (same/diff circuit)
|
||||||
-(5) cable management
|
-(5) cable management
|
||||||
-(5) buses
|
-(5) buses
|
||||||
-(?) find a name
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user