1
0
Fork 0
mirror of https://github.com/shouptech/share-a-bike.git synced 2026-02-03 12:29:42 +00:00

Added help scene

This commit is contained in:
mikeshoup@gmail.com 2010-12-18 22:48:15 +00:00
parent caa235f93e
commit 6021f4afe2
5 changed files with 39 additions and 2 deletions

View file

@ -3,6 +3,9 @@ function MainAssistant(argFromPusher) {
MainAssistant.prototype = {
setup: function() {
// Setup Application Menu
this.controller.setupWidget(Mojo.Menu.appMenu, AddSubMenuAttr, AddSubMenuModel);
Ares.setupSceneAssistant(this);
this.radius = 0.5;

View file

@ -6,6 +6,9 @@ function MapSceneAssistant(argFromPusher) {
MapSceneAssistant.prototype = {
setup: function() {
// Setup Application Menu
this.controller.setupWidget(Mojo.Menu.appMenu, AddSubMenuAttr, AddSubMenuModel);
Ares.setupSceneAssistant(this);
this.$.kioskMap.setLongitude(this.gps.longitude);

View file

@ -2,6 +2,27 @@ function StageAssistant() {
}
StageAssistant.prototype.setup = function() {
// Setup Application Menu
AddSubMenuAttr = {omitDefaultItems: true};
AddSubMenuModel = {
visible: true,
items: [
Mojo.Menu.editItem,
Mojo.Menu.prefsItem,
{label: "Help", command: 'do-helpAddSub', shortcut: 'h'}
]
};
this.controller.pushScene({name: "main", disableSceneScroller: true});
this.controller.setWindowOrientation("free");
};
StageAssistant.prototype.handleCommand = function(event) {
if(event.type == Mojo.Event.command) {
switch(event.command) {
case 'do-helpAddSub':
this.controller.pushAppSupportInfoScene();
break;
}
}
};

View file

@ -1,9 +1,18 @@
{
"id": "com.mikeshoup.share-a-bike",
"version": "0.1.3",
"version": "0.1.5",
"vendor": "Mike Shoup",
"type": "web",
"main": "index.html",
"title": "Share-a-Bike",
"icon": "icon.png"
"icon": "icon.png" ,
"smallicon": "images/icon-32.png",
"copyright": "© Copyright 2010 Mike Shoup",
"support": {
"url": "http://code.google.com/p/share-a-bike/wiki/UsingShareABike",
"email": {
"address": "mike@mikeshoup.com",
"subject": "Share-a-bike Support"
}
}
}

View file

@ -9,5 +9,6 @@
<script src="ares.js" type="text/javascript"></script>
</head>
<body>
Loading, please wait...
</body>
</html>