Skip to content

Commit

Permalink
Update with splash screen
Browse files Browse the repository at this point in the history
  • Loading branch information
Wferr committed Jan 16, 2015
1 parent 2eb86d1 commit 3c33537
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
4 changes: 2 additions & 2 deletions appinfo.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
"type": "font"
},
{
"file": "images/splashlogo.png",
"name": "IMAGES_SPLASHLOGO_PNG",
"file": "images/splash.png",
"name": "IMAGES_SPLASH_PNG",
"type": "png"
}
]
Expand Down
Binary file added resources/images/splash.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed resources/images/splashlogo.png
Binary file not shown.
10 changes: 7 additions & 3 deletions src/app.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Requires
var UI = require('ui');
var ajax = require('ajax');
var Vector2 = require('vector2');
//var Settings = require('settings');
var teamNumber = ('2102');

Expand All @@ -10,13 +11,16 @@ var teamNumber = ('2102');
// Settings.option(teamNumber, "2102");
//});
// Static Cards
var splashWindow = new UI.Window({
title:'Fetching Data',
subtitle:'Please Wait'
var splashWindow = new UI.Window({ fullscreen: true});
var splashLogo = new UI.Image ({
posisiton: new Vector2 (0,0),
size: new Vector2 (144,168),
image: "images/splash.png"
});


// Display Splash Card
splashWindow.add(splashLogo);
splashWindow.show();

var apiId ="?X-TBA-App-Id=team2102:pebble-app:v01";
Expand Down

0 comments on commit 3c33537

Please sign in to comment.