Skip to content

Allow script actions to use window for parameter selection#176

Merged
Rampastring merged 1 commit into
CnCNet:masterfrom
Starkku:feature/script-param-window
Jul 28, 2025
Merged

Allow script actions to use window for parameter selection#176
Rampastring merged 1 commit into
CnCNet:masterfrom
Starkku:feature/script-param-window

Conversation

@Starkku
Copy link
Copy Markdown
Contributor

@Starkku Starkku commented Jun 11, 2024

Pretty much what it says in the title, allows setting UseWindowSelection for script actions in ScriptActions.ini to use a selector window for the preset options (OptionN) key. Particularly useful (and needed) for certain Phobos script actions that use a list of values that far exceeds what the context menu can show.

A different button is displayed for opening the window on script actions that use it, from the one that opens the context menu.

Comment thread src/TSMapEditor/Config/UI/Windows/ScriptsWindow.ini Outdated
Comment thread src/TSMapEditor/UI/Windows/ScriptsWindow.cs
Comment thread src/TSMapEditor/UI/Windows/SelectScriptActionPresetOptionWindow.cs Outdated
Comment thread src/TSMapEditor/CCEngine/ScriptAction.cs Outdated
Comment thread src/TSMapEditor/CCEngine/ScriptAction.cs Outdated
@Starkku Starkku force-pushed the feature/script-param-window branch from 07f0e24 to e2d6c54 Compare July 22, 2025 18:05
@Starkku
Copy link
Copy Markdown
Contributor Author

Starkku commented Jul 22, 2025

Rebased and feedback addressed.

@Rampastring Rampastring merged commit e2ad574 into CnCNet:master Jul 28, 2025
1 check passed
@Starkku Starkku deleted the feature/script-param-window branch September 2, 2025 05:15
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