2025-02-24 15:20:54 -05:00
|
|
|
using System;
|
2025-02-09 11:09:54 -05:00
|
|
|
using System.Collections;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
|
|
namespace Ichni.Editor
|
|
|
|
|
{
|
2025-02-13 02:04:41 -05:00
|
|
|
public abstract class StaticWindow : MonoBehaviour
|
2025-02-09 11:09:54 -05:00
|
|
|
{
|
2025-02-24 15:20:54 -05:00
|
|
|
public EnableButtonGroup enableButtonGroup;
|
|
|
|
|
|
|
|
|
|
protected virtual void Start()
|
|
|
|
|
{
|
|
|
|
|
if (enableButtonGroup != null)
|
|
|
|
|
{
|
|
|
|
|
enableButtonGroup.enableButton.onClick.AddListener(EnableWindow);
|
|
|
|
|
enableButtonGroup.disableButton.onClick.AddListener(DisableWindow);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public virtual void EnableWindow()
|
|
|
|
|
{
|
|
|
|
|
gameObject.SetActive(true);
|
|
|
|
|
enableButtonGroup.disableButton.gameObject.SetActive(true);
|
|
|
|
|
enableButtonGroup.enableButton.gameObject.SetActive(false);
|
|
|
|
|
}
|
2025-02-13 02:04:41 -05:00
|
|
|
|
2025-02-24 15:20:54 -05:00
|
|
|
public virtual void DisableWindow()
|
|
|
|
|
{
|
|
|
|
|
gameObject.SetActive(false);
|
|
|
|
|
enableButtonGroup.disableButton.gameObject.SetActive(false);
|
|
|
|
|
enableButtonGroup.enableButton.gameObject.SetActive(true);
|
|
|
|
|
}
|
2025-02-09 11:09:54 -05:00
|
|
|
}
|
|
|
|
|
}
|