This commit is contained in:
Philip Abbey
2025-07-24 20:56:08 +01:00
parent a686e1a104
commit 0d73de494e
2 changed files with 13 additions and 5 deletions

View File

@ -154,7 +154,7 @@ class BackgroundServiceDelegate extends System.ServiceDelegate {
(Properties.getValue("api_url") as Lang.String) + "/webhook/" + (Properties.getValue("webhook_id") as Lang.String), (Properties.getValue("api_url") as Lang.String) + "/webhook/" + (Properties.getValue("webhook_id") as Lang.String),
{ {
"type" => "update_location", "type" => "update_location",
"data" => data, "data" => data
}, },
{ {
:method => Communications.HTTP_REQUEST_METHOD_POST, :method => Communications.HTTP_REQUEST_METHOD_POST,

View File

@ -43,9 +43,10 @@ class PinDigit extends WatchUi.Selectable {
var height = stepY - (marginY * 2); var height = stepY - (marginY * 2);
var button = new PinDigitButton({ var button = new PinDigitButton({
:width => width, :width => width,
:height => height, :height => height,
:label => digit :label => digit,
:touched => false
}); });
var buttonTouched = new PinDigitButton({ var buttonTouched = new PinDigitButton({
@ -89,7 +90,14 @@ class PinDigit extends WatchUi.Selectable {
//! &emsp; + those required by `Drawable.initialize()`<br> //! &emsp; + those required by `Drawable.initialize()`<br>
//! ``}` //! ``}`
// //
function initialize(options) { function initialize(
options as {
:width as Lang.Float,
:height as Lang.Float,
:label as Lang.Number,
:touched as Lang.Boolean
}
) {
Drawable.initialize(options); Drawable.initialize(options);
mText = options[:label]; mText = options[:label];
mTouched = options[:touched]; mTouched = options[:touched];