This event is fired when API.unlockMedal is called. This will fire even if the server does not respond with a MEDAL_UNLOCKED event.
This event will be an instance of APIEvent
, and contain the following values:
- type:String - APIEvent.UNLOCK_MEDAL
- success:Boolean - Should always be true.
- data:Object - Containing the following properties:
- medal:Medal - The Medal Instance that was unlocked
- x:Number - An optional X position for a medal popup
- y:Number - An optional Y position for a medal popup