feat: fixed distance render, added "km" mark

This commit is contained in:
Saveliy Savenok 2024-11-23 14:52:15 +03:00
parent 32feab4483
commit 36ac898508
4 changed files with 10 additions and 4 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 139 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 933 B

View File

@ -13,12 +13,18 @@ export default function () {
src: 'misc/dist.PNG'
})
hmUI.createWidget(hmUI.widget.TEXT_IMG, {
x: moduleX + 150,
x: moduleX + 145,
y: moduleY,
font_array: secondaryFont,
h_space: 1,
align_h: hmUI.align.LEFT,
type: hmUI.data_type.DISTANCE
type: hmUI.data_type.DISTANCE,
dot_image: "misc/altDot.PNG"
})
hmUI.createWidget(hmUI.widget.IMG, {
x: moduleX + 243,
y: moduleY,
src: "misc/km.png"
})
}
}

View File

@ -6,12 +6,12 @@ export default function () {
console.log("[modules]: heartrate module init")
if (getScene() != SCENE_AOD) {
hmUI.createWidget(hmUI.widget.IMG, {
x: 10,
x: 20,
y: 365,
src: 'misc/hb.PNG'
})
hmUI.createWidget(hmUI.widget.TEXT_IMG, {
x: 100,
x: 105,
y: 365,
font_array: secondaryFont,
h_space: 1,