Skip to content

Instantly share code, notes, and snippets.

@jishnu7
Created July 3, 2014 09:35
Show Gist options
  • Save jishnu7/eb1843813e2bd4e12f73 to your computer and use it in GitHub Desktop.
Save jishnu7/eb1843813e2bd4e12f73 to your computer and use it in GitHub Desktop.
building tutorial
tutorial.build({
// parent view
superview: this,
// screen name - used to get tutorial from data
type: "map_screen",
// milestone number - to identify tutorial
milestone: this._currentId,
// timeout for tutorial to start.
timeout: 1000,
// disable events to this view and sub view when tutorial is visible/processing
disable: mapView,
// auto start tutorial
autostart: false,
// pass positions if you want to get position from a view.
positions: {
milestone: {
// function to be called to get position
function: "getNodePosition",
// context for the function
context: this._adventureMap,
// parameters for the function
parameters: [this._currentId],
// action on click event
action: {
// function to be called
function: "onClickTag",
// context for the function
context: this,
// parameters to be passed
parameters: ["Player", {id: this._currentId}]
}
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment