init
This commit is contained in:
commit
08fe329a7a
15 files changed
+434
No files matched your search
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<iq:manifest xmlns:iq="http://www.garmin.com/xml/connectiq" version="3">
|
||||
<iq:application
|
||||
id="b89b63dc63124c6e9326e68cd6c4e8bc"
|
||||
type="watch-app"
|
||||
name="Hockey Timer"
|
||||
entry="HockeyTimerApp"
|
||||
minApiLevel="3.2.0">
|
||||
<iq:products>
|
||||
<iq:product id="fenix7" />
|
||||
</iq:products>
|
||||
<iq:permissions />
|
||||
</iq:application>
|
||||
</iq:manifest>
|
||||
@@ -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