예제 #1
0
        private void ContentService_Saved(IContentService sender, SaveEventArgs <IContent> e)
        {
            var contentService = ApplicationContext.Current.Services.ContentService;
            var pageOrganizer  = new PageOrganizer();

            pageOrganizer.MoveToDatefolder(e, contentService, "News", "NewsList");
        }
예제 #2
0
    // Use this for initialization
    void Start()
    {
        // Grab the mesh renderer that's on the same object as this script.
        //meshRenderer = this.gameObject.GetComponentInChildren<MeshRenderer>();
        // Reset to origin.
        cursor.transform.localPosition      = Vector3.zero;
        cursorLight.transform.localPosition = Vector3.zero;
        cursor.SetActive(false);
        cursorLight.SetActive(false);
        HintText.text = "";
        HintText.gameObject.transform.localPosition    = new Vector3(0, 0, -0.03f);
        HintText.gameObject.transform.localEulerAngles = new Vector3(HintText.gameObject.transform.localEulerAngles.x + 90, HintText.gameObject.transform.localEulerAngles.y, HintText.gameObject.transform.localEulerAngles.z);

        pageOrganizer = GameObject.Find("PageOrganizer").GetComponent <PageOrganizer>();
    }
예제 #3
0
    void Awake()
    {
        EnableAudioHapticFeedback();

        InteractionManager.InteractionSourceDetected += InteractionManager_InteractionSourceDetected;
        InteractionManager.InteractionSourceLost     += InteractionManager_InteractionSourceLost;

        InteractionManager.InteractionSourcePressed  += InteractionManager_InteractionSourcePressed;
        InteractionManager.InteractionSourceReleased += InteractionManager_InteractionSourceReleased;

        FocusedGameObject = null;

        pageOrganizer = GameObject.Find("PageOrganizer").GetComponent <PageOrganizer>();
        //worldCursor = GameObject.Find("Cursor101").GetComponent<WorldCursor>();
    }
예제 #4
0
    // Use this for initialization
    void Awake()
    {
        hasTriggeredClose = false;
        pageOrganizer     = GameObject.Find("PageOrganizer").GetComponent <PageOrganizer>();

        Instance = this;

        // Hide the navigation arrows on the UI
        //navHandRingObj.SetActive(false);
        navCloseObj.SetActive(false);
        navLeftObj.SetActive(false);
        navRightObj.SetActive(false);

        // Set up a GestureRecognizer to detect Select gestures.
        NavigationRecognizer = new GestureRecognizer();
        NavigationRecognizer.SetRecognizableGestures(GestureSettings.Tap | GestureSettings.NavigationX | GestureSettings.NavigationY);
        //recognizer.Tapped += (args) =>
        //{
        //    // Inform the microphone manager
        //    //_spManager.switchTextUI();
        //    bool result = _micManager.switchTextUI();

        //    Debug.Log("GazeGestureManager:Tap, result:" + result);
        //};

        NavigationRecognizer.Tapped += NavigationRecognizer_Tapped;
        //NavigationRecognizer.NavigationStarted += NavigationRecognizer_NavigationStarted;
        //NavigationRecognizer.NavigationUpdated += NavigationRecognizer_NavigationUpdated;
        //NavigationRecognizer.NavigationCompleted += NavigationRecognizer_NavigationCompleted;
        //NavigationRecognizer.NavigationCanceled += NavigationRecognizer_NavigationCanceled;

        //NavigationRecognizer.StartCapturingGestures();

        // Instantiate the ManipulationRecognizer.
        ManipulationRecognizer = new GestureRecognizer();

        // Add the ManipulationTranslate GestureSetting to the ManipulationRecognizer's RecognizableGestures.
        ManipulationRecognizer.SetRecognizableGestures(
            GestureSettings.ManipulationTranslate);

        // Register for the Manipulation events on the ManipulationRecognizer.
        ManipulationRecognizer.ManipulationStarted   += ManipulationRecognizer_ManipulationStarted;
        ManipulationRecognizer.ManipulationUpdated   += ManipulationRecognizer_ManipulationUpdated;
        ManipulationRecognizer.ManipulationCompleted += ManipulationRecognizer_ManipulationCompleted;
        ManipulationRecognizer.ManipulationCanceled  += ManipulationRecognizer_ManipulationCanceled;

        ResetGestureRecognizers();
    }