mirror of
https://github.com/shouptech/share-a-bike.git
synced 2026-02-03 20:39:43 +00:00
Added help scene
This commit is contained in:
parent
f50552f7eb
commit
b76cbb49fa
5 changed files with 39 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,5 +9,6 @@
|
|||
<script src="ares.js" type="text/javascript"></script>
|
||||
</head>
|
||||
<body>
|
||||
Loading, please wait...
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue