public void Init(SWNodeRemap _node)
 {
     hasRightup    = false;
     node          = _node;
     ePopup_texRes = new SWEnumPopup(new string[] { "128x128", "256x256", "512x512", "1024x1024" }, (int)node.data.reso, SWEditorUI.MainSkin.button,
                                     delegate(int index){
         node.data.reso = (SWTexResolution)index;
         pause          = true;
         EditorCoroutineRunner.StartEditorCoroutine(ResizeTex(node.data.reso));
     });
 }
        public static void ShowEditor(SWNodeRemap _node)
        {
            if (Instance != null)
            {
                Instance.Close();
            }
            var window = EditorWindow.GetWindow <SWWindowDrawRemap> (true, "Remap");

            window.Init(_node);
            window.InitOnce();
        }
 public void Init(SWNodeRemap _node)
 {
     node = _node;
     info = ScriptableObject.CreateInstance <RemapLineInfo>();
 }