Exemplo n.º 1
0
        public static void InitHook(clothesFileControl __instance)
        {
            _folderTreeView.DefaultPath   = Path.Combine((UserData.Path), "coordinate/");
            _folderTreeView.CurrentFolder = _folderTreeView.DefaultPath;

            _customCoordinateFile = __instance;
            _uiObject             = __instance.gameObject;
            _sceneName            = Manager.Scene.AddSceneName;
        }
        internal static void InitHook(clothesFileControl __instance)
        {
            _folderTreeView.DefaultPath   = Path.Combine((UserData.Path), "coordinate/");
            _folderTreeView.CurrentFolder = _folderTreeView.DefaultPath;

            _customCoordinateFile = __instance;

            _hToggle = true; //weirdly enough required so file system would open the first time you use the preset per encounter
            GameObject.Find("Canvas/SubMenu/DressCategory/ClothChange").GetComponent <Button>().onClick.AddListener(EnablePreset);
            GameObject.Find("Canvas/clothesFileWindow/Window/WinRect/Load/btnCancel").GetComponent <Button>().onClick.AddListener(DisablePreset);
            GameObject.Find("Canvas/clothesFileWindow/Window/BasePanel/MenuTitle/btnClose").GetComponent <Button>().onClick.AddListener(DisablePreset);
        }