• 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.
     

button change background watchface

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
Anoniem
WF maker
Messaggi: 41
Iscritto il: 03 mag 2022, 17:55
Località: Enkhuizen
Has thanked: 1 time
Been thanked: 2 times
Contatta:

button change background watchface

Messaggio da Anoniem »

I made a watchface with a button to change to background of the watchface,

Is it possible to also change the AOD background together with the normal watchface or
is it possible make a button to only change the AOD background?
Avatar utente
asoo
Messaggi: 2147
Iscritto il: 03 gen 2019, 01:48
Località: ͼͽ Thailand ͼͽ
Has thanked: 414 times
Been thanked: 2073 times

Messaggio da asoo »

Anoniem ha scritto: 28 apr 2024, 08:28
I made a watchface with a button to change to background of the watchface,

Is it possible to also change the AOD background together with the normal watchface or
is it possible make a button to only change the AOD background?
if you want to change the AOD background together with the normal watchface. , you must to use something like this

Codice: Seleziona tutto

hmFS.SysProSetInt('js_test_int', 123)
Variables for the home screen and AOD are separate, so data must be manually saved to memory. hmFS.SysProSetInt. to use that variable in AOD

You can read in the documentation how to use this function correctly and how to read the data afterwards
https://docs-testing.zepp.com/docs/1.0/ ... ProSetInt/

This is a sample watchface. When you select a background on the main page, when you enter AOD, the background of AOD will be the same as the background of the main page.
( select color background by click on the center screen )

This watch face is used to show examples of usage. hmFS.SysProSetInt only
Script may not be cover all function.
I recommend that you see more information at the previous link.
Download watchface example
This watchface make for "Amazfit balance" but it can convert to other device in zeppOS by use Sasha's Editor ( Version 10.4 or higher )
AODchange.zip
(32.34 KiB) Scaricato 115 volte
ͼͽ To request please use the interrelated forum in action ͼͽ
Please do not PM to me for requests ported watchface.
Anoniem
WF maker
Messaggi: 41
Iscritto il: 03 mag 2022, 17:55
Località: Enkhuizen
Has thanked: 1 time
Been thanked: 2 times
Contatta:

Messaggio da Anoniem »

Thanks asoo, its working,
I used your example and copy/paste it into the watchface you created for me a time ago and its working, even the hands changed in AOD
Allegati
iwf_h2_1.2_AOD2.zip
(1.06 MiB) Scaricato 94 volte
Avatar utente
asoo
Messaggi: 2147
Iscritto il: 03 gen 2019, 01:48
Località: ͼͽ Thailand ͼͽ
Has thanked: 414 times
Been thanked: 2073 times

Messaggio da asoo »

Anoniem ha scritto: 29 apr 2024, 16:12
Thanks asoo, its working,
I used your example and copy/paste it into the watchface you created for me a time ago and its working, even the hands changed in AOD
I'm glad that the code I showed as an example can allow you to do the operations you want.
Have fun creating your work.
ͼͽ 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