atom-achievements
atom-achievements copied to clipboard
Settings: trigger test achievement button
What do you think about adding a button to the settings view for achievements that allows you to trigger a test achievement?
The use case I have in mind for this is trying out different delay speeds for the achievement banner without having to trigger an actual achievement. I am sure there could be other use cases as well.
Thoughts?
I wondered about making a separate entry point for this. The view does not handle any of the storage, so implementing this is as simple as creating a binding to the {AchievementView}
's achieve
with some default argument. Here's what I would propose as a first step:
# Within Achiever:
atom.workspaceView.command "achievements:test", => @achievementsView.achieve({name: "Test", iconURL: "http://i.imgur.com/C25dnNr.png"})
The classic I'm bad at naming things is showing. Anything better than achievements:test
? :sweat_smile:
Not sure how much you've played with the settings view, but it's extremely limited at the moment. To the point that I'm tempted to give up on using the settings pane for atom-script and have people do configuration in other ways. Adding a button on the settings view seems impossible at the moment if I'm not mistaken.
On a side note but a similar vein, it would also be nice for package developers to be able to show achievements without earning them. Probably just with a different event name and entrypoint: atom.on 'achievement:spoof' @spoofAchieve