Skip to content

Add map reveal trigger script in c##230

Merged
Rampastring merged 5 commits into
CnCNet:masterfrom
JoyfulShush:add-map-reveal-trigger-cs
Jul 17, 2025
Merged

Add map reveal trigger script in c##230
Rampastring merged 5 commits into
CnCNet:masterfrom
JoyfulShush:add-map-reveal-trigger-cs

Conversation

@JoyfulShush
Copy link
Copy Markdown
Contributor

With the intents of replacing and removing the INI script that adds a map reveal trigger, this script is written in C# in order to create a simple map reveal debug trigger.

Comment thread src/TSMapEditor/Config/Scripts/Add Map Reveal Trigger.cs Outdated
Comment thread src/TSMapEditor/Config/Scripts/Add Map Reveal Trigger.cs Outdated
Comment thread src/TSMapEditor/Config/Scripts/Add Map Reveal Trigger.cs Outdated
Comment thread src/TSMapEditor/Config/Scripts/Add Map Reveal Trigger.cs Outdated
Introduces a TriggersChanged event to the Map class, refactors trigger and tag addition/removal to use new methods, and updates TriggersWindow to handle trigger changes more robustly. This improves consistency and maintainability when managing triggers and their associated tags, and ensures UI updates correctly in response to trigger changes.
Copy link
Copy Markdown
Member

@Rampastring Rampastring left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good aside from one code style issue.

Comment thread src/TSMapEditor/UI/Windows/TriggersWindow.cs
Co-authored-by: Rami Pasanen <rampastring@outlook.com>
@Rampastring Rampastring merged commit 99581a9 into CnCNet:master Jul 17, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants