Ejemplo n.º 1
0
        public void SoundColorButtonClicked()
        {
            // Just cycle through colors for now
            if (canvasDelegate == null)
            {
                return;
            }
            SoundMarker selectedSound = canvasDelegate.objectSelection.selectedMarker;

            if (selectedSound == null)
            {
                return;
            }

            selectedSound.SetToNextColor();

            Color newCol = selectedSound.color;

            repositionImage.color = newCol;
            soundIconImage.color  = newCol;
            soundColorImage.color = newCol;
            minRadiusSlider.SetColorTint(newCol);
            maxRadiusSlider.SetColorTint(newCol);

            UnityEngine.UI.ColorBlock cols = soundSrcButton.colors;
            cols.normalColor      = newCol;
            cols.highlightedColor = newCol.ColorWithBrightness(-0.15f);
            cols.pressedColor     = newCol.ColorWithBrightness(-0.3f);
            soundSrcButton.colors = cols;

            canvasDelegate.objectSelection.SetSelectionRadiusColor(newCol);
        }
Ejemplo n.º 2
0
 public void SetSelectedSoundToNextColor()
 {
     if (selMarker == null)
     {
         return;
     }
     selMarker.SetToNextColor();
 }