public override void Initialize(ExplorerView explorerView, string path) { base.Initialize(explorerView, path); Label.text = new DirectoryInfo(path).Name; Button.onClick.AddListener(OnSelect); }
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; }
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); }
/// <summary> /// Updates one specific ViewAction's ExplorerView. /// </summary> protected virtual void UpdateView(ExplorerView view, string path) { view.Initialize(this, path); }
public virtual void Initialize(ExplorerView explorerView, string path) { ParentView = explorerView; Path = path; }