예제 #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);
        }
예제 #2
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);
        }