34 lines
798 B
Mason
34 lines
798 B
Mason
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
|
|
);
|
|
}
|
|
}
|