-
-
Notifications
You must be signed in to change notification settings - Fork 110
Implement custom mission support with CampaignTagSelector #518
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
SadPencil
wants to merge
22
commits into
CnCNet:develop
Choose a base branch
from
SadPencil:feature-custom-mission
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 10 commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
35a20f2
Implement custom mission support with CampaignTagSelector
SadPencil 6d0945d
Merge branch 'develop' into feature-custom-mission
Starkku c5ec4fb
Disable fade between CampaignTagSelector/CampaignSelector
Starkku 8959f55
Migrate CampaignSelector to INItializableWindow
Starkku 2f022d7
Add return to campaign tag selector button to CampaignSelector
Starkku 34701a0
Adjust the mission config section names and decouple game mission con…
Starkku f8e604c
Enforce all-caps scenario names, game makes assumptions that they are
Starkku a5ac652
Allow staying on mission selector on game launch and generalize missi…
Starkku cbc73e2
Fix some remaining issues
Starkku a3e5eb8
Revert "Migrate CampaignSelector to INItializableWindow"
Starkku a93ea06
Merge branch 'develop' into feature-custom-mission
Starkku 82ac513
Rename lbCampaignListMissions to selectedMissions
SadPencil b051a1a
Create hard links for supplemental mission files
SadPencil 34a5675
Allow customized custom mission supplemental files
SadPencil bc67a62
Define no supplement files by default
SadPencil f9d2234
Add document for custom mission configurations
SadPencil a20c59d
make the compiler happy
SadPencil 73284e7
Add campaign tag selector documentation
SadPencil 75e85fa
make the compiler happy
SadPencil 92ea96f
Merge branch 'develop' into feature-custom-mission
Starkku 3da03c0
Use ls/pal file names from supplementary file definitions as defaults…
Starkku adfa44a
Allow use of disabled, placeholder campaign tag buttons
Starkku File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the reason to introduce new syntax like this? Can't you do the same with
,
as a separator or simple as separate keys?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems to be the only place where the list is processed as pairs. Therefore I want to use a different separator to notify modders. And | representing pairs is also used in Win32 OpenFileDialog
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The more confusing part is that the pairs are also separated from other pairs by |
The entire system also hinges on not defining more than one pair with same file extension. It cannot currently handle that.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The "pairs are also separated from other pairs" matches the same convention in https://learn.microsoft.com/en-us/dotnet/api/microsoft.win32.filedialog.filter
e.g.,
This can be ignored for now, left as another PR. The TS resolution things require a special handling so we can leave it as a future work.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think non-IT modders ever encountered that, so that diminishes the example. Why not define those all as separate keys?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, right. Regex is friendly to non-IT modders but "|" symbol is not.
Whatever. So what's the prefered way to express the setting?
csf,stringtable99.csf,pal,custommission.pal,shp,custommission.shp
or something?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I never claimed it is, regex is hostile to anyone, even IT people lol. In that case it provided flexbility though, in this case it doesn't provide flexibility.
I thought of something like
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would prefer the following, still making the setting in oneline
:
or=
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is somewhat better because it's possible to add new parameters without breaking backwards compatibility, but I am still not a fan of cramming everything in one line, it's not like we're constrained on storage space.