Merge branch 'customeditorwindow-expose-constructor' of https://github.com/Zode/FlaxEngine into Zode-customeditorwindow-expose-constructor
This commit is contained in:
@@ -18,8 +18,8 @@ namespace FlaxEditor
|
|||||||
private readonly CustomEditorPresenter _presenter;
|
private readonly CustomEditorPresenter _presenter;
|
||||||
private CustomEditorWindow _customEditor;
|
private CustomEditorWindow _customEditor;
|
||||||
|
|
||||||
public Win(CustomEditorWindow customEditor)
|
public Win(CustomEditorWindow customEditor, bool hideOnClose, ScrollBars scrollBars)
|
||||||
: base(Editor.Instance, false, ScrollBars.Vertical)
|
: base(Editor.Instance, hideOnClose, scrollBars)
|
||||||
{
|
{
|
||||||
Title = customEditor.GetType().Name;
|
Title = customEditor.GetType().Name;
|
||||||
_customEditor = customEditor;
|
_customEditor = customEditor;
|
||||||
@@ -64,9 +64,9 @@ namespace FlaxEditor
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Initializes a new instance of the <see cref="CustomEditorWindow"/> class.
|
/// Initializes a new instance of the <see cref="CustomEditorWindow"/> class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
protected CustomEditorWindow()
|
protected CustomEditorWindow(bool hideOnClose = false, ScrollBars scrollBars = ScrollBars.Vertical)
|
||||||
{
|
{
|
||||||
_win = new Win(this);
|
_win = new Win(this, hideOnClose, scrollBars);
|
||||||
ScriptsBuilder.ScriptsReloadBegin += OnScriptsReloadBegin;
|
ScriptsBuilder.ScriptsReloadBegin += OnScriptsReloadBegin;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user