mirror of
https://github.com/RHeavenStudio/HeavenStudio.git
synced 2025-06-12 11:17:39 +02:00
Reset Event Property Value + Right Click Dropdown API + Confirm Quit (#563)
* * in name when changing value * Popup UI and quit basics * Quit button finalized, i think * fix * fixed * right click dropdown prefab * tryna getit to work * woohoo it works * value reset support for text areas * Color reset support * Enums and numbers supported * catchy tune fix
This commit is contained in:
@ -55,6 +55,11 @@ namespace HeavenStudio.Editor
|
||||
[SerializeField] private Button SortChronologicBTN;
|
||||
[SerializeField] private TMP_InputField SearchBar;
|
||||
|
||||
[Header("Confirm Quit")]
|
||||
[SerializeField] private GameObject _confirmQuitMain;
|
||||
[SerializeField] private Button _quitYes;
|
||||
[SerializeField] private Button _quitNo;
|
||||
|
||||
[SerializeField] private Button EditorThemeBTN;
|
||||
[SerializeField] private Button EditorSettingsBTN;
|
||||
|
||||
@ -144,6 +149,19 @@ namespace HeavenStudio.Editor
|
||||
(minigame.fxOnly ? ggs.fxActive : ggs.mgsActive).Add(GameIcon_.GetComponent<RectTransform>());
|
||||
}
|
||||
|
||||
public void ShowQuitPopUp(bool show)
|
||||
{
|
||||
_confirmQuitMain.SetActive(show);
|
||||
}
|
||||
|
||||
public bool ShouldQuit = false;
|
||||
|
||||
public void QuitGame()
|
||||
{
|
||||
ShouldQuit = true;
|
||||
Application.Quit();
|
||||
}
|
||||
|
||||
public void LateUpdate()
|
||||
{
|
||||
if (lastScreenSize != new Vector2(UnityEngine.Screen.width, UnityEngine.Screen.height))
|
||||
|
Reference in New Issue
Block a user