Esempio n. 1
0
        protected virtual void handlePathSelected(FileBrowserContainer container, string absolutePath)
        {
            IInspectablePath inspectablePath = (IInspectablePath)base.inspectable.value;

            inspectablePath.absolutePath = absolutePath;
            base.inspectable.value       = inspectablePath;
        }
        // Token: 0x060011DA RID: 4570 RVA: 0x00073F08 File Offset: 0x00072308
        protected override void handleBrowseButtonClicked(Sleek2ImageButton button)
        {
            InspectableDirectoryPath inspectableDirectoryPath = (InspectableDirectoryPath)base.inspectable.value;
            FileBrowserContainer     fileBrowserContainer     = DevkitWindowManager.addContainer <FileBrowserContainer>();

            fileBrowserContainer.transform.anchorMin = new Vector2(0.25f, 0.25f);
            fileBrowserContainer.transform.anchorMax = new Vector2(0.75f, 0.75f);
            fileBrowserContainer.mode          = EFileBrowserMode.DIRECTORY;
            fileBrowserContainer.searchPattern = null;
            fileBrowserContainer.selected      = new FileBrowserSelectedHandler(this.handlePathSelected);
        }