init
This commit is contained in:
commit
08fe329a7a
15 files changed
+434
No files matched your search
@@ -0,0 +1,33 @@
|
||||
using Toybox.Application as Application;
|
||||
using Toybox.Graphics as Graphics;
|
||||
using Toybox.WatchUi as WatchUi;
|
||||
|
||||
class HockeyTimerApp extends Application.AppBase {
|
||||
function initialize() {
|
||||
AppBase.initialize();
|
||||
}
|
||||
|
||||
function getInitialView() {
|
||||
return [ new HockeyTimerView() ];
|
||||
}
|
||||
}
|
||||
|
||||
class HockeyTimerView extends WatchUi.View {
|
||||
function onUpdate(dc) {
|
||||
dc.clear();
|
||||
dc.drawText(
|
||||
dc.getWidth() / 2,
|
||||
dc.getHeight() / 2 - 24,
|
||||
Graphics.FONT_SMALL,
|
||||
"PERIOD 1",
|
||||
Graphics.TEXT_JUSTIFY_CENTER
|
||||
);
|
||||
dc.drawText(
|
||||
dc.getWidth() / 2,
|
||||
dc.getHeight() / 2,
|
||||
Graphics.FONT_LARGE,
|
||||
"20:00",
|
||||
Graphics.TEXT_JUSTIFY_CENTER
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user