From 482e70b21a9ca5fa63880f73b576e26fe0d57eba Mon Sep 17 00:00:00 2001 From: Hubert Mattusch Date: Mon, 20 Mar 2023 19:57:08 +0100 Subject: [PATCH] add asmdef for uinty ui editor --- NEG/UI/UnityUi/Editor.meta | 8 ++++++++ .../Editor/NEG.UI.UnityUi.Editor.asmdef | 20 +++++++++++++++++++ .../Editor/NEG.UI.UnityUi.Editor.asmdef.meta | 7 +++++++ NEG/UI/UnityUi/MonoUiManager.cs | 2 ++ NEG/UI/UnityUi/WindowSlot/MonoWindowSlot.cs | 1 + 5 files changed, 38 insertions(+) create mode 100644 NEG/UI/UnityUi/Editor.meta create mode 100644 NEG/UI/UnityUi/Editor/NEG.UI.UnityUi.Editor.asmdef create mode 100644 NEG/UI/UnityUi/Editor/NEG.UI.UnityUi.Editor.asmdef.meta diff --git a/NEG/UI/UnityUi/Editor.meta b/NEG/UI/UnityUi/Editor.meta new file mode 100644 index 0000000..946dc6e --- /dev/null +++ b/NEG/UI/UnityUi/Editor.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: caeb30c40f1a46041b0ad218cb94902d +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/NEG/UI/UnityUi/Editor/NEG.UI.UnityUi.Editor.asmdef b/NEG/UI/UnityUi/Editor/NEG.UI.UnityUi.Editor.asmdef new file mode 100644 index 0000000..538cc41 --- /dev/null +++ b/NEG/UI/UnityUi/Editor/NEG.UI.UnityUi.Editor.asmdef @@ -0,0 +1,20 @@ +{ + "name": "NEG.UI.UnityUi.Editor", + "rootNamespace": "", + "references": [ + "GUID:e2aaf8effe1c9634d87b2edda6988a6a" + ], + "includePlatforms": [ + "Editor" + ], + "excludePlatforms": [], + "allowUnsafeCode": false, + "overrideReferences": false, + "precompiledReferences": [ + "" + ], + "autoReferenced": true, + "defineConstraints": [], + "versionDefines": [], + "noEngineReferences": false +} \ No newline at end of file diff --git a/NEG/UI/UnityUi/Editor/NEG.UI.UnityUi.Editor.asmdef.meta b/NEG/UI/UnityUi/Editor/NEG.UI.UnityUi.Editor.asmdef.meta new file mode 100644 index 0000000..4f9f09d --- /dev/null +++ b/NEG/UI/UnityUi/Editor/NEG.UI.UnityUi.Editor.asmdef.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: f8cf2e6d12f27fb47a577cb5a7537ccf +AssemblyDefinitionImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/NEG/UI/UnityUi/MonoUiManager.cs b/NEG/UI/UnityUi/MonoUiManager.cs index 6c26ed0..776361f 100644 --- a/NEG/UI/UnityUi/MonoUiManager.cs +++ b/NEG/UI/UnityUi/MonoUiManager.cs @@ -20,6 +20,8 @@ namespace NEG.UI.UnityUi //TODO: use default unity selection //TODO: window snaping to slots + //TODO: editor to auto add slots, buttons + private readonly MonoDefaultPopup defaultPopupPrefab; private readonly GameObject canvasPrefab; diff --git a/NEG/UI/UnityUi/WindowSlot/MonoWindowSlot.cs b/NEG/UI/UnityUi/WindowSlot/MonoWindowSlot.cs index 03e6b55..9c1a910 100644 --- a/NEG/UI/UnityUi/WindowSlot/MonoWindowSlot.cs +++ b/NEG/UI/UnityUi/WindowSlot/MonoWindowSlot.cs @@ -1,6 +1,7 @@ using NEG.UI.Area; using NEG.UI.Window; using NEG.UI.WindowSlot; +using System; using UnityEngine; using TNRD;