init
This commit is contained in:
commit
13f4132d3c
58 files changed
+6291
No files matched your search
@@ -0,0 +1,35 @@
|
||||
import Toybox.Lang;
|
||||
using Toybox.WatchUi;
|
||||
using Toybox.WatchUi as Ui;
|
||||
using Toybox.Graphics;
|
||||
using Toybox.Graphics as Gfx;
|
||||
|
||||
module Rez {
|
||||
module Drawables {
|
||||
(:initialized) var greenCard as ResourceId;
|
||||
(:initialized) var redCard as ResourceId;
|
||||
(:initialized) var yellowCard as ResourceId;
|
||||
(:initialized) var pause as ResourceId;
|
||||
(:initialized) var play as ResourceId;
|
||||
(:initialized) var plus as ResourceId;
|
||||
(:initialized) var launcherIcon as ResourceId;
|
||||
} // Drawables
|
||||
|
||||
module Fonts {
|
||||
(:initialized) var SevenSegment as ResourceId;
|
||||
} // Fonts
|
||||
|
||||
module Layouts {
|
||||
function MainLayout(dc as Graphics.Dc) as Array<WatchUi.Drawable> {
|
||||
var local_Rez_Fonts_SevenSegment = (WatchUi.loadResource($.Rez.Fonts.SevenSegment) as WatchUi.FontResource);
|
||||
var rez_cmp_local_text_1193959466 = new WatchUi.Text({:color=>Graphics.COLOR_WHITE, :locX=>(dc.getWidth() * 0.5), :locY=>((dc.getHeight() - 94) * 0.5), :text=>$.Rez.Strings.timer, :justification=>Graphics.TEXT_JUSTIFY_CENTER, :font=>local_Rez_Fonts_SevenSegment});
|
||||
|
||||
return [rez_cmp_local_text_1193959466] as Array<WatchUi.Drawable>;
|
||||
}
|
||||
} // Layouts
|
||||
|
||||
module Strings {
|
||||
(:initialized) var timer as ResourceId;
|
||||
(:initialized) var AppName as ResourceId;
|
||||
} // Strings
|
||||
} // Rez
|
||||
Reference in new issue
Block a user