Ejemplo n.º 1
0
        public ConfigWidget drawConfigWidget()
        {
            //if user clicks on config icon while in AR setup, accept setup (same as ok button)
            acceptARConfig();
            mainController.deselect();

            // get radial menu
            // get ProgressWidget
            GameObject radialrefObject = GameObject.Find("GUI/Canvas/ProgressWidget");

            if (radialrefObject != null)
            {
                radialrefObject.gameObject.SetActive(false);
            }

            // copy values from global settings to config widget TODO: load it directly, see next line
            VPETSettings.mapValuesToObject(configWidget);

            // map values from preferences to config widget
            VPETSettings.mapValuesFromPreferences(configWidget);

            configWidget.Show();

            configWidget.initConfigWidget();
            UI.OnUIChanged.Invoke();
            return(configWidget);
        }
Ejemplo n.º 2
0
        private void splashFinished()
        {
            // draw main menu
            ui.drawMainMenuButton(true);

            // set values in config widget according to vpet setting
            ConfigWidget configWidget = ui.drawConfigWidget();

            VPETSettings.mapValuesToObject(configWidget);
            configWidget.initConfigWidget();
        }
Ejemplo n.º 3
0
        public ConfigWidget drawConfigWidget()
        {
            // get radial menu
            // get ProgressWidget
            GameObject radialrefObject = GameObject.Find("GUI/Canvas/ProgressWidget");

            if (radialrefObject != null)
            {
                radialrefObject.gameObject.SetActive(false);
            }

            // copy values from global settings to config widget
            VPETSettings.mapValuesToObject(configWidget);

            configWidget.Show();
            configWidget.initConfigWidget();

            return(configWidget);
        }
Ejemplo n.º 4
0
        private void splashFinished()
        {
            // draw main menu
            ui.drawMainMenuButton(true);



            /*
             * // HACK to invoke
             * MenuButton configButton = GameObject.Find("GUI/Canvas/UI/mainMenuObject/3_GeneralMenu_Settings_sel").GetComponent<MenuButton>();
             * configButton.onClick.Invoke();
             * configButton.Toggled = true;
             */



            // set values in config widget according to vpet setting
            ConfigWidget configWidget = ui.drawConfigWidget();

            VPETSettings.mapValuesToObject(configWidget);
            configWidget.initConfigWidget();
        }