Beispiel #1
0
 private void OnKeyboardClosed(object[] args)
 {
     if (activeKeyboard != this)
     {
         return;
     }
     keyboardShowing = false;
     activeKeyboard  = null;
 }
Beispiel #2
0
 public void ShowKeyboard(string inputtitle)
 {
     if (!keyboardShowing)
     {
         keyboardShowing = true;
         activeKeyboard  = this;
         //SteamVR.instance.overlay.ShowKeyboard(0, 0, inputtitle, 256, text, minimalMode, 0);
         SteamVR.instance.overlay.ShowKeyboardForOverlay(0, 0, 0, inputtitle, 140, "", false, 0);
     }
 }
        /// <summary>
        /// Ctor
        /// </summary>
        /// <param name="wizardManager">The wizard manager</param>
        /// <param name="model">The context to which we should save a keyboard</param>
        public ContextListViewModel( KeyboardEditor root, WizardManager wizardManager, IUriHistoryCollection contexts, IKeyboard keyboardToSave )
            : base(root, wizardManager, false)
        {
            _contexts = contexts;
            _keyboardtoSave = keyboardToSave;

            Next = new EndingStepViewModel( Root, WizardManager );

            ContextVms = new List<ContextViewModel>();
            foreach( var context in _contexts )
            {
                ContextVms.Add( new ContextViewModel( this, context ) );
            }
        }