Top메뉴, Toolbar #58
8
Assets/NewStudioPGD.meta
Normal file
8
Assets/NewStudioPGD.meta
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9372de26e0b42914693d16bc5756940f
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
1048
Assets/NewStudioPGD/NewStudio.unity
Normal file
1048
Assets/NewStudioPGD/NewStudio.unity
Normal file
File diff suppressed because it is too large
Load Diff
7
Assets/NewStudioPGD/NewStudio.unity.meta
Normal file
7
Assets/NewStudioPGD/NewStudio.unity.meta
Normal file
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: da3cfbbc493fa584d966b4b64ee3839e
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
8
Assets/NewStudioPGD/Prefabs.meta
Normal file
8
Assets/NewStudioPGD/Prefabs.meta
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: aaaff30873d6161488de14af0f2d2d10
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
6904
Assets/NewStudioPGD/Prefabs/Canvas_Static.prefab
Normal file
6904
Assets/NewStudioPGD/Prefabs/Canvas_Static.prefab
Normal file
File diff suppressed because it is too large
Load Diff
7
Assets/NewStudioPGD/Prefabs/Canvas_Static.prefab.meta
Normal file
7
Assets/NewStudioPGD/Prefabs/Canvas_Static.prefab.meta
Normal file
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f2aeca4b33a9e7948ab82c4f02cae2f2
|
||||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
8
Assets/NewStudioPGD/Scripts.meta
Normal file
8
Assets/NewStudioPGD/Scripts.meta
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d40a29733fa39c140bd24756d24d50e3
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
8
Assets/NewStudioPGD/Scripts/Command.meta
Normal file
8
Assets/NewStudioPGD/Scripts/Command.meta
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: af761925d50d5024fb038ceb9cb1e386
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
25
Assets/NewStudioPGD/Scripts/Command/ExitProgramCommand.cs
Normal file
25
Assets/NewStudioPGD/Scripts/Command/ExitProgramCommand.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace XED.Command
|
||||
{
|
||||
public class ExitProgramCommand : IIrreversibleCommand
|
||||
{
|
||||
public ExitProgramCommand()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public string id { get => throw new System.NotImplementedException(); set => throw new System.NotImplementedException(); }
|
||||
|
||||
public bool CanExecute()
|
||||
{
|
||||
throw new System.NotImplementedException();
|
||||
}
|
||||
|
||||
public void Execute()
|
||||
{
|
||||
Debug.Log("Exit");
|
||||
Application.Quit();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a5e265f61efc5e44f8dcaad35017208a
|
||||
8
Assets/NewStudioPGD/Scripts/UI.meta
Normal file
8
Assets/NewStudioPGD/Scripts/UI.meta
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7b2f4e9a44961314f97ab6ed193f2111
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
8
Assets/NewStudioPGD/Scripts/UI/Canvas.meta
Normal file
8
Assets/NewStudioPGD/Scripts/UI/Canvas.meta
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 11ad716c898895042b9e60cfb315cd6a
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
15
Assets/NewStudioPGD/Scripts/UI/Canvas/StudioCanvas_Static.cs
Normal file
15
Assets/NewStudioPGD/Scripts/UI/Canvas/StudioCanvas_Static.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using XED.Command;
|
||||
using XRLib.UI;
|
||||
|
||||
namespace XED.UI
|
||||
{
|
||||
public class StudioCanvas_Static : CanvasBase
|
||||
{
|
||||
public StudioPanel_Topbar studiopanel_topbar;
|
||||
|
||||
public override void AfterAwake()
|
||||
{
|
||||
//studiopanel_topbar.onClickExit += () => CommandInvoker.instance.Invoke(new ExitProgramCommand());
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7b45b7347fd0fe24f80dc309e5f1917a
|
||||
8
Assets/NewStudioPGD/Scripts/UI/Panel.meta
Normal file
8
Assets/NewStudioPGD/Scripts/UI/Panel.meta
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 57f9d4f8767e32144acafc24cabc8d0f
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
96
Assets/NewStudioPGD/Scripts/UI/Panel/StudioPanel_Topbar.cs
Normal file
96
Assets/NewStudioPGD/Scripts/UI/Panel/StudioPanel_Topbar.cs
Normal file
@@ -0,0 +1,96 @@
|
||||
using System;
|
||||
using UnityEngine.UI;
|
||||
using XRLib.UI;
|
||||
|
||||
namespace XED.UI
|
||||
{
|
||||
public class StudioPanel_Topbar : PanelBase
|
||||
{
|
||||
/*File*/
|
||||
public Button Button_NewProject;
|
||||
public Button Button_OpenProject;
|
||||
public Button Button_SaveProject;
|
||||
public Button Button_SaveAsProject;
|
||||
public Button Button_Exit;
|
||||
|
||||
public event Action onClickNewProject;
|
||||
public event Action onClickOpenProject;
|
||||
public event Action onClickSaveProject;
|
||||
public event Action onClickSaveAsProject;
|
||||
public event Action onClickExit;
|
||||
|
||||
/*Window*/
|
||||
public Button Button_DataStorage;
|
||||
public Button Button_DataUpdateSetting;
|
||||
|
||||
public event Action onClickDataStorage;
|
||||
public event Action onClickDataUpdateSetting;
|
||||
|
||||
/*Build*/
|
||||
public Button Button_Build;
|
||||
public Button Button_Run;
|
||||
|
||||
public event Action onClickBuild;
|
||||
public event Action onClickRun;
|
||||
|
||||
public override void AfterAwake()
|
||||
{
|
||||
Button_NewProject.onClick.AddListener(OnClickNewProject);
|
||||
Button_OpenProject.onClick.AddListener(OnClickOpenProject);
|
||||
Button_SaveProject.onClick.AddListener(OnClickSaveProject);
|
||||
Button_SaveAsProject.onClick.AddListener(OnClickSaveAsProject);
|
||||
Button_Exit.onClick.AddListener(OnClickExit);
|
||||
|
||||
Button_DataStorage.onClick.AddListener(OnClickDataStorage);
|
||||
Button_DataUpdateSetting.onClick.AddListener(OnClickDataUpdateSetting);
|
||||
|
||||
Button_Build.onClick.AddListener(OnClickBuild);
|
||||
Button_Run.onClick.AddListener(OnClickRun);
|
||||
}
|
||||
|
||||
private void OnClickNewProject()
|
||||
{
|
||||
onClickNewProject?.Invoke();
|
||||
}
|
||||
|
||||
private void OnClickOpenProject()
|
||||
{
|
||||
onClickOpenProject?.Invoke();
|
||||
}
|
||||
|
||||
private void OnClickSaveProject()
|
||||
{
|
||||
onClickSaveProject?.Invoke();
|
||||
}
|
||||
|
||||
private void OnClickSaveAsProject()
|
||||
{
|
||||
onClickSaveAsProject?.Invoke();
|
||||
}
|
||||
|
||||
private void OnClickExit()
|
||||
{
|
||||
onClickExit?.Invoke();
|
||||
}
|
||||
|
||||
private void OnClickDataStorage()
|
||||
{
|
||||
onClickOpenProject?.Invoke();
|
||||
}
|
||||
|
||||
private void OnClickDataUpdateSetting()
|
||||
{
|
||||
onClickSaveProject?.Invoke();
|
||||
}
|
||||
|
||||
private void OnClickBuild()
|
||||
{
|
||||
onClickSaveAsProject?.Invoke();
|
||||
}
|
||||
|
||||
private void OnClickRun()
|
||||
{
|
||||
onClickExit?.Invoke();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7f6987e1739948249a379338af8a6cbc
|
||||
Reference in New Issue
Block a user