using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text.RegularExpressions; using Godot; namespace KeepersCompound.TMV.UI; public partial class TextureBrowser : Node { enum SortMode { Name, Family, Index, Count, } private Tree _folderTree; private LineEdit _searchBar; private MenuButton _sortMenu; private Button _openFolderButton; private MenuButton _browserMenu; private HFlowContainer _textureList; private TextureRect _previewTexture; private LineEdit _texturePath; private Button _texturePathCopyButton; private OptionButton _filterOptions; private LineEdit _fileType; private LineEdit _resolutionBox; private LineEdit _fileSizeBox; private string _searchFilterPrefix = ""; public override void _Ready() { // !HACK TEMP Context.Instance.PathManager.Init("/stuff/Games/thief/drive_c/GOG Games/TG ND 1.27 (MAPPING)/"); Context.Instance.SetCampaign("TheBlackParade_1_0"); _folderTree = GetNode("%FolderTree"); _searchBar = GetNode("%SearchBar"); _sortMenu = GetNode("%SortMenu"); _openFolderButton = GetNode