Beispiel #1
0
        public static void OpenPopup(PWGUISettings guiSettings)
        {
            PWPopup.OpenPopup <PWBiomeMapSettingsPopup>();

            debug     = guiSettings.debug;
            controlId = guiSettings.GetHashCode();
        }
Beispiel #2
0
        public static void OpenPopup(Color color, PWGUISettings guiSettings)
        {
            PWPopup.OpenPopup <PWColorPicker>(new Vector2(windowSize.x, 340));

            PWColorPicker.currentColor  = color;
            PWColorPicker.controlId     = guiSettings.GetHashCode();
            PWColorPicker.thumbPosition = guiSettings.thumbPosition;
        }
Beispiel #3
0
        public static void OpenPopup(PWGUISettings guiSettings)
        {
            PWPopup.OpenPopup <PWSamplerSettingsPopup>();

            gradient   = guiSettings.gradient;
            filterMode = guiSettings.filterMode;
            texture    = guiSettings.texture;
            debug      = guiSettings.debug;
            controlId  = guiSettings.GetHashCode();
        }
Beispiel #4
0
        public static void OpenPopup(FilterMode filterMode, ScaleMode scaleMode, float scaleAspect, Material material, bool debug = false)
        {
            PWPopup.OpenPopup <PWTextureSettingsPopup>();

            PWTextureSettingsPopup.filterMode  = filterMode;
            PWTextureSettingsPopup.scaleMode   = scaleMode;
            PWTextureSettingsPopup.material    = material;
            PWTextureSettingsPopup.scaleAspect = scaleAspect;
            PWTextureSettingsPopup.debug       = debug;
        }