コード例 #1
0
        //[MenuItem("Tools/面板/Buff编辑器")]
        public static void Init()
        {
            window = EditorWindow.GetWindow <BuffWindow>();   // 创建自定义窗体
            window.titleContent = new GUIContent("构建树视图");    // 窗口的标题
                                                              //window.minSize = new Vector2(t_width, t_height);
                                                              //window.maxSize = new Vector2(t_width + 40, t_height + 40);
            window.OnInit();
            window.Show();

            //_instance.GetAssets();
            // 创建树
        }
コード例 #2
0
        public void on_select(EToolBar tool_bar)
        {
            int select = tool_bar.SelectIndex;

            foreach (var info in _panel_map)
            {
                info.Value.Enabel = (info.Key == select);
            }

            if (select == 3)
            {
                BuffWindow.Init();
            }
        }