Наследование: UnityEngine.MonoBehaviour
Пример #1
0
 public void Initialize(Window parent)
 {
     window_ = parent;
     InitializeArrowKeys();
     InitializeCommands();
     InitializeEmacsLikeKeys();
 }
Пример #2
0
        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");
        }
Пример #3
0
        void Awake()
        {
            InitObjects();
            keyBinding_.Initialize(this);

            completion.AddCompletionFinishedListener(OnCompletionFinished);

            isWindowOpened_ = GetComponent<Canvas>().isActiveAndEnabled;
            if (isWindowOpened_) {
            selected = this;
            }
        }
Пример #4
0
 public void Open()
 {
     selected = this;
     SetActive(true);
     inputField.Focus();
 }
Пример #5
0
 public void Close()
 {
     if (selected == this) {
     selected = null;
     }
     SetActive(false);
 }
Пример #6
0
 public void Initialize(Window window)
 {
     parentWindow = window;
 }