Show() private method

private Show ( bool showAlpha ) : void
showAlpha bool
return void
Beispiel #1
0
 public static void Show(GUIView viewToUpdate, Color col, bool showAlpha)
 {
     ColorPicker.get.m_DelegateView = viewToUpdate;
     ColorPicker.color = col;
     ColorPicker.get.m_OriginalColor  = col;
     ColorPicker.get.m_ShowAlpha      = showAlpha;
     ColorPicker.get.m_ModalUndoGroup = Undo.GetCurrentGroup();
     if (ColorPicker.get.m_IsOSColorPicker)
     {
         OSColorPicker.Show(showAlpha);
     }
     else
     {
         ColorPicker get = ColorPicker.get;
         get.title = "Color";
         float y = (float)EditorPrefs.GetInt("CPickerHeight", (int)get.position.height);
         get.minSize = new Vector2(193f, y);
         get.maxSize = new Vector2(193f, y);
         get.InitIfNeeded();
         get.ShowAuxWindow();
     }
 }