コード例 #1
0
        protected void OnEnable()
        {
            BloxBlocksWindow.Instance = this;
            Texture2D image = plyEdGUI.LoadTextureResource("BloxEditor.res.icons.blox_mono" + (EditorGUIUtility.isProSkin ? "_p" : "") + ".png", typeof(BloxListWindow).Assembly, FilterMode.Point, TextureWrapMode.Clamp);

            base.titleContent = new GUIContent("Blocks", image);
        }
コード例 #2
0
        protected void OnEnable()
        {
            Debug.Log("OnEnable", "Blockwindows", Color.green);
            BloxBlocksWindow.Instance = this;
            Texture2D image = plyEdGUI.LoadTextureResource("BloxEditor.res.icons.blox_mono" + (plyEdGUI.IsDarkSkin() ? "_p" : "") + ".png", typeof(BloxListWindow).Assembly, FilterMode.Point, TextureWrapMode.Clamp);

            base.titleContent = new GUIContent("Blocks", image);
        }
コード例 #3
0
 public static void Close_BloxBlocksWindow()
 {
     BloxEdGlobal.BlocksListDocked = true;
     EditorPrefs.SetBool("Blox.BlocksListDocked", BloxEdGlobal.BlocksListDocked);
     if ((Object)BloxBlocksWindow.Instance != (Object)null)
     {
         BloxBlocksWindow.Instance.Close();
         BloxBlocksWindow.Instance = null;
     }
 }
コード例 #4
0
 public static void Close_BloxBlocksWindow()
 {
     Debug.Log("Close_BloxBlocksWindow", "Blockwindows", Color.green);
     BloxEdGlobal.BlocksListDocked = true;
     EditorPrefs.SetBool("Blox.BlocksListDocked", BloxEdGlobal.BlocksListDocked);
     if ((Object)BloxBlocksWindow.Instance != (Object)null)
     {
         BloxBlocksWindow.Instance.Close();
         BloxBlocksWindow.Instance = null;
     }
 }
コード例 #5
0
 public static void Show_BloxBlocksWindow()
 {
     BloxEdGlobal.BlocksListDocked = false;
     EditorPrefs.SetBool("Blox.BlocksListDocked", BloxEdGlobal.BlocksListDocked);
     if ((Object)BloxBlocksWindow.Instance == (Object)null)
     {
         BloxBlocksWindow obj   = BloxBlocksWindow.Instance = EditorWindow.GetWindow <BloxBlocksWindow>("Blocks");
         Texture2D        image = plyEdGUI.LoadTextureResource("BloxEditor.res.icons.blox_mono" + (EditorGUIUtility.isProSkin ? "_p" : "") + ".png", typeof(BloxListWindow).Assembly, FilterMode.Point, TextureWrapMode.Clamp);
         obj.titleContent = new GUIContent("Blocks", image);
     }
 }
コード例 #6
0
        protected void OnDestroy()
        {
            BloxBlocksWindow.Instance     = null;
            BloxEdGlobal.BlocksListDocked = true;
            EditorPrefs.SetBool("Blox.BlocksListDocked", BloxEdGlobal.BlocksListDocked);
            BloxEditorWindow instance = BloxEditorWindow.Instance;

            if ((object)instance != null)
            {
                instance.Repaint();
            }
        }
コード例 #7
0
 protected void OnFocus()
 {
     Debug.Log("OnFocus", "Blockwindows", Color.green);
     BloxBlocksWindow.Instance = this;
     base.wantsMouseMove       = true;
 }
コード例 #8
0
 protected void OnFocus()
 {
     BloxBlocksWindow.Instance = this;
     base.wantsMouseMove       = true;
 }