Skip to content
yokoe edited this page Jul 26, 2011 · 5 revisions

Dashboard

Show and hide dashboard

By calling +[Pankia launchDashboard], the Pankia dashboard will show up.

- (void)buttonClicked: (id)sender
{
    [Pankia launchDashboard];	
}

Delegate methods

You can hook different kinds of events on the dashboard.

- (void)dashboardWillAppear
- (void)dashboardDidAppear
- (void)dashboardWillDisappear
- (void)dashboardDidDisappear

Orientation

By default, the dashboard will be displayed as LandscapeLeft. Use setDashboardOrientation to change the setting. It is recommended that you set the orientation right after PankiaNet is initialized.

[Pankia initWithGameKey:GAME_KEY
             gameSecret:GAME_SECRET
                  title:GAME_TITLE 
               delegate:self
                options:launchOptions];
[Pankia setDashboardOrientation:UIInterfaceOrientationLandscapeRight];

Other settings

By default, dashboard includes the following features:

  1. Network Match
  2. Achievements
  3. Leaderboards
  4. Items
  5. Store

You can hide some of those features as appropriate. See Configuration for more details.

Clone this wiki locally