mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-06 05:01:53 +00:00
32 lines
423 B
Beef
32 lines
423 B
Beef
using System;
|
|
namespace GlitchyEditor.EditWindows
|
|
{
|
|
abstract class EditorWindow
|
|
{
|
|
protected Editor _editor;
|
|
|
|
protected bool _open = true;
|
|
protected bool _hasFocus;
|
|
|
|
public bool Open
|
|
{
|
|
get => _open;
|
|
set => _open = value;
|
|
}
|
|
|
|
public bool HasFocus
|
|
{
|
|
get => _hasFocus;
|
|
}
|
|
|
|
public void Show()
|
|
{
|
|
if(!_open)
|
|
return;
|
|
|
|
InternalShow();
|
|
}
|
|
|
|
protected abstract void InternalShow();
|
|
}
|
|
} |