Esempio n. 1
0
        public override void Initialize(ExplorerView explorerView, string path)
        {
            base.Initialize(explorerView, path);

            Label.text = new DirectoryInfo(path).Name;
            Button.onClick.AddListener(OnSelect);
        }
Esempio n. 2
0
        public override void Initialize(ExplorerView explorerView, string path)
        {
            base.Initialize(explorerView, path);
            string text = ShowExtention
                                ? System.IO.Path.GetFileName(path)
                                : System.IO.Path.GetFileNameWithoutExtension(path);

            text      = WrapText(text);
            Text.text = text;
        }
        public override void Initialize(ExplorerView explorerView, string path)
        {
            base.Initialize(explorerView, path);
            // TODO: Check if this is the proper way to get the folder name..
            // TODO: make this an ExplorerObject thing.
            string[] splittedPath = path.Split('\\', '/');
            string   text         = splittedPath[splittedPath.Length - ((path.EndsWith("\\") || path.EndsWith("/")) ? 2 : 1)];

            text      = WrapText(text);
            Text.text = text;
        }
Esempio n. 4
0
        public override void Initialize(ExplorerView explorerView, string path)
        {
            base.Initialize(explorerView, path);

            string name = ShowExtention
                                ? System.IO.Path.GetFileName(path)
                                : System.IO.Path.GetFileNameWithoutExtension(path);

            Label.text = name;

            Button.onClick.AddListener(OnSelect);
        }
Esempio n. 5
0
 /// <summary>
 ///		Updates one specific ViewAction's ExplorerView.
 /// </summary>
 protected virtual void UpdateView(ExplorerView view, string path)
 {
     view.Initialize(this, path);
 }
Esempio n. 6
0
 public virtual void Initialize(ExplorerView explorerView, string path)
 {
     ParentView = explorerView;
     Path       = path;
 }