mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-06 13:11:53 +00:00
Editor window
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user