效果模块,以及代码位置整理
This commit is contained in:
13
Assets/Scripts/DynamicUI/MainUI/MainPage.cs
Normal file
13
Assets/Scripts/DynamicUI/MainUI/MainPage.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Ichni.Editor
|
||||
{
|
||||
public class MainPage : StaticWindow
|
||||
{
|
||||
public Canvas mainCanvas;
|
||||
public ToolBar toolBar;
|
||||
public ResolutionHints resolutionHints;
|
||||
}
|
||||
}
|
||||
11
Assets/Scripts/DynamicUI/MainUI/MainPage.cs.meta
Normal file
11
Assets/Scripts/DynamicUI/MainUI/MainPage.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: dcc87ae8f9fe04833b49d5d7396d9693
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
8
Assets/Scripts/DynamicUI/MainUI/ResolusionHints.meta
Normal file
8
Assets/Scripts/DynamicUI/MainUI/ResolusionHints.meta
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 77cef690bc8234daba9231732db8dfb4
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,32 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
|
||||
namespace Ichni.Editor
|
||||
{
|
||||
public partial class ResolutionHints : MonoBehaviour
|
||||
{
|
||||
public Image phoneFrame;
|
||||
public Image iPadFrame;
|
||||
public Image safeAreaFrame;
|
||||
}
|
||||
|
||||
public partial class ResolutionHints
|
||||
{
|
||||
public void SetPhoneFrame()
|
||||
{
|
||||
phoneFrame.gameObject.SetActive(!phoneFrame.gameObject.activeSelf);
|
||||
}
|
||||
|
||||
public void SetIPadFrame()
|
||||
{
|
||||
iPadFrame.gameObject.SetActive(!iPadFrame.gameObject.activeSelf);
|
||||
}
|
||||
|
||||
public void SetSafeAreaFrame()
|
||||
{
|
||||
safeAreaFrame.gameObject.SetActive(!safeAreaFrame.gameObject.activeSelf);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f39aaf316b5904be48688dae23e2e35f
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
8
Assets/Scripts/DynamicUI/MainUI/ToolBar.meta
Normal file
8
Assets/Scripts/DynamicUI/MainUI/ToolBar.meta
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 0a1982054ce8d4446bdac8d50130aa21
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
28
Assets/Scripts/DynamicUI/MainUI/ToolBar/ToolBar.cs
Normal file
28
Assets/Scripts/DynamicUI/MainUI/ToolBar/ToolBar.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
|
||||
namespace Ichni.Editor
|
||||
{
|
||||
public partial class ToolBar : MonoBehaviour
|
||||
{
|
||||
public Button projectInfoButton;
|
||||
public Button songInfoButton;
|
||||
public Button saveButton;
|
||||
public Button exportButton;
|
||||
|
||||
private void Start()
|
||||
{
|
||||
saveButton.onClick.AddListener(EditorManager.instance.projectManager.saveManager.Save);
|
||||
exportButton.onClick.AddListener(EditorManager.instance.projectManager.exportManager.Export);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public partial class ToolBar
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
11
Assets/Scripts/DynamicUI/MainUI/ToolBar/ToolBar.cs.meta
Normal file
11
Assets/Scripts/DynamicUI/MainUI/ToolBar/ToolBar.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 914dd73ddae7943148ea71537167542b
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user