destroyed proj
This commit is contained in:
23
Packages/SzafaKit/Editor/Oracle/OracleWindow.cs
Normal file
23
Packages/SzafaKit/Editor/Oracle/OracleWindow.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UIElements;
|
||||
|
||||
namespace SzafaKitEditor.Oracle {
|
||||
public class OracleWindow : EditorWindow {
|
||||
[SerializeField]
|
||||
private VisualTreeAsset m_VisualTreeAsset = default;
|
||||
|
||||
[MenuItem("Szafa/Oracle")]
|
||||
public static void ShowWindow() {
|
||||
OracleWindow wnd = GetWindow<OracleWindow>();
|
||||
wnd.titleContent = new GUIContent("OracleWindow");
|
||||
}
|
||||
|
||||
public void CreateGUI() {
|
||||
VisualElement root = rootVisualElement;
|
||||
|
||||
VisualElement labelFromUXML = m_VisualTreeAsset.Instantiate();
|
||||
root.Add(labelFromUXML);
|
||||
}
|
||||
}
|
||||
}
|
||||
13
Packages/SzafaKit/Editor/Oracle/OracleWindow.cs.meta
Normal file
13
Packages/SzafaKit/Editor/Oracle/OracleWindow.cs.meta
Normal file
@@ -0,0 +1,13 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e2bd75a497487ee49a0a51cc223c552d
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences:
|
||||
- m_VisualTreeAsset: {fileID: 9197481963319205126, guid: 852055ed179f6f546b9f0ff34d97f4fb,
|
||||
type: 3}
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
5
Packages/SzafaKit/Editor/Oracle/OracleWindow.uss
Normal file
5
Packages/SzafaKit/Editor/Oracle/OracleWindow.uss
Normal file
@@ -0,0 +1,5 @@
|
||||
.custom-label {
|
||||
font-size: 20px;
|
||||
-unity-font-style: bold;
|
||||
color: rgb(68, 138, 255);
|
||||
}
|
||||
11
Packages/SzafaKit/Editor/Oracle/OracleWindow.uss.meta
Normal file
11
Packages/SzafaKit/Editor/Oracle/OracleWindow.uss.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 56459608f8e71f140b0933d6689a0846
|
||||
ScriptedImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
script: {fileID: 12385, guid: 0000000000000000e000000000000000, type: 0}
|
||||
disableValidation: 0
|
||||
10
Packages/SzafaKit/Editor/Oracle/OracleWindow.uxml
Normal file
10
Packages/SzafaKit/Editor/Oracle/OracleWindow.uxml
Normal file
@@ -0,0 +1,10 @@
|
||||
<engine:UXML xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:engine="UnityEngine.UIElements" xmlns:editor="UnityEditor.UIElements" noNamespaceSchemaLocation="../../../../UIElementsSchema/UIElements.xsd" editor-extension-mode="False">
|
||||
<Style src="project://database/Packages/com.szafastudio.szafakit/Editor/Oracle/OracleWindow.uss?fileID=7433441132597879392&guid=56459608f8e71f140b0933d6689a0846&type=3#OracleWindow" />
|
||||
<engine:TabView>
|
||||
<engine:Tab label="General">
|
||||
<engine:Label text="Welcome to my szafa" style="-unity-font-style: bold; font-size: 48px;" />
|
||||
</engine:Tab>
|
||||
<engine:Tab label="Startup" />
|
||||
<engine:Tab label="Build" />
|
||||
</engine:TabView>
|
||||
</engine:UXML>
|
||||
10
Packages/SzafaKit/Editor/Oracle/OracleWindow.uxml.meta
Normal file
10
Packages/SzafaKit/Editor/Oracle/OracleWindow.uxml.meta
Normal file
@@ -0,0 +1,10 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 852055ed179f6f546b9f0ff34d97f4fb
|
||||
ScriptedImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
script: {fileID: 13804, guid: 0000000000000000e000000000000000, type: 0}
|
||||
26
Packages/SzafaKit/Editor/Oracle/SzKEngineEditor.cs
Normal file
26
Packages/SzafaKit/Editor/Oracle/SzKEngineEditor.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
using RebootKit.Engine;
|
||||
using UnityEditor;
|
||||
using UnityEditor.UIElements;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UIElements;
|
||||
|
||||
namespace SzafaKitEditor.Oracle {
|
||||
[CustomEditor(typeof(RR))]
|
||||
public class SzKEngineEditor : Editor {
|
||||
private EngineConfigAsset _engineConfigAsset;
|
||||
|
||||
public override VisualElement CreateInspectorGUI() {
|
||||
VisualElement inspector = new VisualElement();
|
||||
|
||||
_engineConfigAsset = Resources.Load<EngineConfigAsset>(RConsts.EngineConfigResourcesPath);
|
||||
if (_engineConfigAsset == null) {
|
||||
inspector.Add(new Label($"Couldn't load engine config from resources: {RConsts.EngineConfigResourcesPath}"));
|
||||
return inspector;
|
||||
}
|
||||
|
||||
inspector.Add(new Label("Config:"));
|
||||
InspectorElement.FillDefaultInspector(inspector, new SerializedObject(_engineConfigAsset), this);
|
||||
return inspector;
|
||||
}
|
||||
}
|
||||
}
|
||||
3
Packages/SzafaKit/Editor/Oracle/SzKEngineEditor.cs.meta
Normal file
3
Packages/SzafaKit/Editor/Oracle/SzKEngineEditor.cs.meta
Normal file
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6f2d98247b7f40e88946af3956c54a5e
|
||||
timeCreated: 1741081201
|
||||
Reference in New Issue
Block a user