So I am not fully understanding a tutorial for implementing Mogade's leaderboards into my app. I have been following this Zorn Consulting WP& Leaderboards Using Mogade Tutorial but when I get to the (unfinished?) step: 12, I am at a loss for what to exactly code in order to 'process the scores.' I simply do not know how to get them to show into the listbox or how they mean to process them. This is where I am hoping I can get help from you guys.
If you look at the link and copy/paste what they have, as well as downloading Mogade's dlls from Mogade's website here and referencing them, it should be a couple minutes spent in total to get up to speed to where I am.
Here is how that class page I have currently looks like (for the final steps)
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Windows; using System.Windows.Controls; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Shapes; using Microsoft.Phone.Controls; using Mogade.JsonConverters; using Mogade.WindowsPhone; using Mogade; using System.IO; using System.IO.IsolatedStorage; using System.Threading; namespace theappimcreating { public partial class GlobalLeaderboardsPivotPage : PhoneApplicationPage { public GlobalLeaderboardsPivotPage() { InitializeComponent(); myApp.Mogade.GetLeaderboard(MogadeHelper.LeaderboardId(lb), scope, 1, r => Dispatcher.BeginInvoke(() => LeaderboardReceived(r, sp, lb, scope))); } private void LeaderboardReceived(Response<LeaderboardScores> response, StackPanel sp, Leaderboards lb, LeaderboardScope scope) { //check response.Success == true, and process scores. The number of scores return is //response.Data.Scores.Count if (response.Success == true) { //process the scores....how? How would the listbox be able to display them anyhow? } } }
}
So yes.. I am sorry if this is not the typical question for stackoverflow, but I am completely lost on this subject. I'm not sure if this is the best tutorial, but it was so far the one that seemed most complete to me.
Thank you for any help, the tutorial should be an easy copy and paste to get people up to speed.
No comments:
Post a Comment
Send us your comment related to the topic mentioned on the blog