창모드 시 최소화, 최대화, 닫기 버튼 비활성화 #206
@@ -1612,13 +1612,33 @@ PrefabInstance:
|
||||
m_RemovedComponents: []
|
||||
m_RemovedGameObjects: []
|
||||
m_AddedGameObjects: []
|
||||
m_AddedComponents: []
|
||||
m_AddedComponents:
|
||||
- targetCorrespondingSourceObject: {fileID: 4849584302742208544, guid: 13ace7584c1d4514cb2218354647e355, type: 3}
|
||||
insertIndex: -1
|
||||
addedObject: {fileID: 432313350}
|
||||
m_SourcePrefab: {fileID: 100100000, guid: 13ace7584c1d4514cb2218354647e355, type: 3}
|
||||
--- !u!224 &416036583 stripped
|
||||
RectTransform:
|
||||
m_CorrespondingSourceObject: {fileID: 7844719208258716390, guid: 96b73e9674fb61c489cee99ad24c044c, type: 3}
|
||||
m_PrefabInstance: {fileID: 455884375451432191}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!1 &432313348 stripped
|
||||
GameObject:
|
||||
m_CorrespondingSourceObject: {fileID: 4849584302742208544, guid: 13ace7584c1d4514cb2218354647e355, type: 3}
|
||||
m_PrefabInstance: {fileID: 396217241}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!114 &432313350
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 432313348}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: d6cdc4bdaa2849b469fdc34f85e08800, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
--- !u!1001 &445006263
|
||||
PrefabInstance:
|
||||
m_ObjectHideFlags: 0
|
||||
|
||||
@@ -49,8 +49,10 @@ namespace Studio.UI
|
||||
|
||||
public event Action onClickBuild;
|
||||
public event Action onClickRun;
|
||||
|
||||
|
||||
/*Window*/
|
||||
public Button Button_Minimize;
|
||||
public Button Button_Maximize;
|
||||
public Button Button_Close;
|
||||
|
||||
public event Action onClickClose;
|
||||
@@ -90,6 +92,13 @@ namespace Studio.UI
|
||||
Button_Close.onClick.AddListener(OnClickClose);
|
||||
}
|
||||
|
||||
public void ToggleWindowButton(bool isOn)
|
||||
{
|
||||
Button_Minimize.gameObject.SetActive(isOn);
|
||||
Button_Maximize.gameObject.SetActive(isOn);
|
||||
Button_Close.gameObject.SetActive(isOn);
|
||||
}
|
||||
|
||||
private void OnClickLogo()
|
||||
{
|
||||
Debug.Log("On TopMenu Click Logo");
|
||||
|
||||
30
Assets/Scripts/Studio/Utility/CheckScreenMode.cs
Normal file
30
Assets/Scripts/Studio/Utility/CheckScreenMode.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
using Studio.Manage;
|
||||
using Studio.UI;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Studio
|
||||
{
|
||||
public class CheckScreenMode : MonoBehaviour
|
||||
{
|
||||
Panel_StudioTopBar panel_studioTopbar;
|
||||
|
||||
public override void AfterAwake()
|
||||
{
|
||||
panel_studioTopbar = CanvasManager.instance.GetCanvas<Canvas_Static>().panel_studiotopbar;
|
||||
ToggleScreenMode();
|
||||
}
|
||||
|
||||
void Update()
|
||||
{
|
||||
if (Input.GetKeyDown(KeyCode.Return) && Input.GetKey(KeyCode.LeftAlt))
|
||||
{
|
||||
ToggleScreenMode();
|
||||
}
|
||||
}
|
||||
|
||||
void ToggleScreenMode()
|
||||
{
|
||||
panel_studioTopbar.ToggleWindowButton(Screen.fullScreenMode == FullScreenMode.FullScreenWindow);
|
||||
}
|
||||
}
|
||||
}
|
||||
2
Assets/Scripts/Studio/Utility/CheckScreenMode.cs.meta
Normal file
2
Assets/Scripts/Studio/Utility/CheckScreenMode.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d6cdc4bdaa2849b469fdc34f85e08800
|
||||
Reference in New Issue
Block a user