Example #1
0
        static void DrawDefault()
        {
            var style = GUIStyleManager.GetCustomStyle(40, btnTexture: GUIStyleManager.ui_red_bt,
                                                       fontStyle: FontStyle.Normal);

            if (DrawToolBarConfig.mode == DrawToolBarConfig.MODE.DEFAULT)
            {
                DrawButton("Svn", ":D", GUIStyleManager.GetCustomStyle(80, btnTexture: GUIStyleManager.ui_red_bt, fontStyle: FontStyle.Normal), () =>
                {
                    if (DrawToolbar.enabled_ == false)
                    {
                        var v = EditorUtility.DisplayDialog("svn",
                                                            "Turn on svn manager?",
                                                            "yes", "no");

                        if (v)
                        {
                            EditorUtility.DisplayDialog("Ok!",
                                                        "enabled svn manager!",
                                                        "happy!");
                            DrawToolBarConfig.mode = DrawToolBarConfig.MODE.SVN;
                            PerformAction(true);
                        }
                        return;
                    }

                    DrawToolBarConfig.mode = DrawToolBarConfig.MODE.SVN;
                });
            }
        }
 static void DrawDefault()
 {
     if (DrawToolBarConfig.mode == DrawToolBarConfig.MODE.DEFAULT)
     {
         DrawButton("디버그 뷰", "TOOLTIP", GUIStyleManager.GetCustomStyle(100, btnTexture: GUIStyleManager.ui_red_bt, fontStyle: FontStyle.Bold), () =>
         {
             DrawToolBarConfig.mode = DrawToolBarConfig.MODE.DEBUG_VIEW;
         });
     }
 }
 static void OnRightUI()
 {
     GUILayout.FlexibleSpace();
     if (DrawToolBarRightConfig.mode == DrawToolBarRightConfig.MODE.DEFAULT)
     {
         DrawButton("깃허브", "TOOLTIP", GUIStyleManager.GetCustomStyle(64, 11, FontStyle.Bold, GUIStyleManager.ui_red_bt, 0, 255, 0), () =>
         {
             Application.OpenURL("http://github.com/shlifedev");
         });
         DrawButton("개발모드", "TOOLTIP", GUIStyleManager.GetCustomStyle(96, 11, FontStyle.Bold, GUIStyleManager.ui_blue_bt, 255, 255, 255), () =>
         {
             DrawToolBarRightConfig.mode = DrawToolBarRightConfig.MODE.DEVELOP;
         });
     }
 }
Example #4
0
 static void DrawCloseButton(System.Action onClick)
 {
     DrawButton(null, null, GUIStyleManager.GetCustomStyle(btnTexture: GUIStyleManager.ui_close, width: 25), onClick);
 }