• Amministratore
  •  
    Support Ukraine
    If you experience any problems with the forum (it is not visible, there is no way to post messages, or some functionality does not work), please let us know. If you have problems with registration or you did not receive confirmation letter, let us know and we will activate your account manually.
    If you get an "The submitted form was invalid. Try submitting again" error, delete cookies, then try again.
     

Help with click shortcuts [GTR 3]

Topics related to the creation, development, and designing of the watch faces.

Moderatori: asoo, Watchmens

Regole del forum
When adding a new topic, use the template: Topic title [device name]
For example: How to create watch face [GTR 3 Pro]
All communication in this branch should only be in English.
Rispondi
jorixine
Messaggi: 17
Iscritto il: 18 dic 2021, 11:45
Località: bsas
Has thanked: 5 times
Been thanked: 1 time
Contatta:

Help with click shortcuts [GTR 3]

Messaggio da jorixine »

Hello!

I've been playing around with a pipboy watchface.

Modified the index.js file to customize AOD and worked fine, then I wanted to add clicks (shortcuts) to heart, steps and weather data.

I copied the stanzas from another file that does that, modified the x and y axis and let the rest just about as it is.

The only click I got working is the weather, no matter where do I put my finger for the rest, it won't open heart nor steps.

I'll upload the zip file, could any of you give me a hand on this ?

Thanks!
Allegati
pipboygtr3_shortcuts.zip
(350.13 KiB) Scaricato 112 volte
Avatar utente
asoo
Messaggi: 2186
Iscritto il: 03 gen 2019, 01:48
Località: ͼͽ Thailand ͼͽ
Has thanked: 419 times
Been thanked: 2109 times

Messaggio da asoo »

I'm not sure if the problem is with clock script arrangement requirements or not, as far as i know if you write day-month-year script after the script that has a shortcut, sometimes the shortcut won't work. To fix it, move the day-month-year script to the top of the script that have shortcut. I recommended to put it after the script TIME.

You can see an example of editing the script in the file I've edited.
pipboygtr3_shortcuts.zip
(352.86 KiB) Scaricato 145 volte
ͼͽ To request please use the interrelated forum in action ͼͽ
Please do not PM to me for requests ported watchface.
jorixine
Messaggi: 17
Iscritto il: 18 dic 2021, 11:45
Località: bsas
Has thanked: 5 times
Been thanked: 1 time
Contatta:

Messaggio da jorixine »

Just tested... It works fine now. Weird thing.

There's a little hand appearing when I click on it, that's new right?

The "clickable" area is defined after the positioning right?
Avatar utente
asoo
Messaggi: 2186
Iscritto il: 03 gen 2019, 01:48
Località: ͼͽ Thailand ͼͽ
Has thanked: 419 times
Been thanked: 2109 times

Messaggio da asoo »

jorixine ha scritto: 27 dic 2021, 18:30
Just tested... It works fine now. Weird thing.

1) There's a little hand appearing when I click on it, that's new right?

2) The "clickable" area is defined after the positioning right?
1)
Little hand is a image you can change it , in this case it is image number 128.png

2)
x, y = Coordinate to put image for icon click and start point for click area
h,w = area for use click and show click icon
ͼͽ To request please use the interrelated forum in action ͼͽ
Please do not PM to me for requests ported watchface.
Rispondi

Torna a “Watchfaces discussion”

Chi c’è in linea

Visitano il forum: Nessuno e 2 ospiti