public void Initialize(Window parent) { window_ = parent; InitializeArrowKeys(); InitializeCommands(); InitializeEmacsLikeKeys(); }
public void Initialize(Window window) { inputField = transform.Find("Input Field").GetComponent<CommandInputField>(); inputField.parentWindow = window; lineTypeToggleButton_ = transform.Find("Line Type Toggle Button").GetComponent<Button>(); lineTypeIcon_ = lineTypeToggleButton_.transform.Find("Line Type Icon").GetComponent<Image>(); singleLineIcon_ = Resources.Load<Sprite>("uREPL/Images/SingleLine"); multiLineIcon_ = Resources.Load<Sprite>("uREPL/Images/MultiLine"); }
void Awake() { InitObjects(); keyBinding_.Initialize(this); completion.AddCompletionFinishedListener(OnCompletionFinished); isWindowOpened_ = GetComponent<Canvas>().isActiveAndEnabled; if (isWindowOpened_) { selected = this; } }
public void Open() { selected = this; SetActive(true); inputField.Focus(); }
public void Close() { if (selected == this) { selected = null; } SetActive(false); }
public void Initialize(Window window) { parentWindow = window; }