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 notification.AddLegacyType & notification.GetLegacyTypes #1967

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Zaurzo
Copy link
Contributor

@Zaurzo Zaurzo commented May 14, 2023

The notice material types are hard-coded and we have such a small arsenal of these materials, it would be nice to have an easy way to add our own. This might be a useless addition, I'd like to see feedback on this.

@Zaurzo Zaurzo changed the title Add AddLegacyType & GetLegacyTypes Add notification.AddLegacyType & notification.GetLegacyTypes May 14, 2023
@robotboy655 robotboy655 added the Addition The pull request adds new functionality. label May 30, 2023
- Return the created IMaterial for the icon on success
- If the material is nil or an error, fallback to the generic notify icon and return false
@Zaurzo
Copy link
Contributor Author

Zaurzo commented Dec 9, 2023

Update I did 2 weeks ago:

On success, it will now return the IMaterial object that was created.
On fail, it will use the generic notify material and return false.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Addition The pull request adds new functionality.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants