Skip to content
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

Add superweapon selector window and superweapon ID param type #177

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Starkku
Copy link
Contributor

@Starkku Starkku commented Jun 11, 2024

Changes superweapon parameter for trigger events & actions to use the window-based selector, as most YR projects tend to have much larger selection of superweapons available which exceeds what the context menu can comfortably show. I was initially going to make this optional and have default behaviour use the context menu still, but I figured that might make the code unnecessarily complicated. If that is preferrable however, I can make it happen.

Additionally added support for superweapon ID (section name) as a parameter type, which is used by one trigger event added by Ares.

if (swType == null)
return paramValue;

return swType.GetDisplayStringWithoutIndex();
Copy link
Collaborator

Choose a reason for hiding this comment

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

How about just .ToString()?

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