Repository navigation
Hide pattern file from selector window? #2765
Replies: 4 comments 5 replies
|
sounds like what you are trying to define is patterns vs imported files. In its simplest form, an import contains custom types and functions and places no patterns in data. imports are located under the includes sub-folders and patterns are under the patterns sub-folder so that the list of patterns does not contain files to import. Although you are free to use any extensions you want for each patterns are usually given the hexpat extension while3 imports use .pat. look under the includes subfolder of your home folder (in local app data in windows) for examples of commonly used imports like std.io or type.time. |
|
One example of what you are looking for can be found in the GoldBox patterns where 7 files with the hexpat are listed in the patterns list but all the other that use .cs are not and are used as imports to the pattern files only. So they don't need to be in separate folder either. |
|
Create a new directory called "includes", next to the "patterns" directory and move those to includes. You can then just include them from normal patterns. example: include: https://codeberg.org/neptuwunium/bt/src/branch/develop/includes/FlyFF.hexpat The selector only enumerates the pattern directory. |



Uh oh!
There was an error while loading. Please reload this page.
I'm interested in creating a pattern for a pretty large file format. One of the things I want to do is to split the pattern into multiple files. One will be the one that reads the file and populates the Pattern Data pane, whereas the rest will just define the enums and structs that the main file will use.
One problem I've seen with this approach so far is that in the window that appears when you "Open pattern..." which provides a list of patterns in the "Patterns" folder, all of the pattern files I've created appear in the list. What I would like is for only the main pattern file to appear in that list.
Is there a Preprocessor directive or something available that can be used to hide a pattern file from that list? I didn't see anything like that when I looked at the docs.
All reactions