38 lines
809 B
C#
38 lines
809 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using FlaxEditor;
|
|
using FlaxEngine;
|
|
using FlaxEngine.GUI;
|
|
|
|
namespace Cabrito
|
|
{
|
|
// Container that keeps the focus on the input box
|
|
public class ConsoleContainerControl : ContainerControl
|
|
{
|
|
[HideInEditor]
|
|
public ConsoleInputTextBox inputBox;
|
|
|
|
public ConsoleContainerControl() : base()
|
|
{
|
|
|
|
}
|
|
|
|
public ConsoleContainerControl(float x, float y, float width, float height) : base(x, y, width, height)
|
|
{
|
|
}
|
|
|
|
public override void OnGotFocus()
|
|
{
|
|
base.OnGotFocus();
|
|
if (inputBox != null)
|
|
Focus(inputBox);
|
|
}
|
|
|
|
public override void OnLostFocus()
|
|
{
|
|
base.OnLostFocus();
|
|
}
|
|
}
|
|
}
|