FORUMS
Remove All Ads from XDA

lua code query for watchmaker

55 posts
Thanks Meter: 51
 
By Tweetytek, Member on 6th November 2014, 10:56 PM
Post Reply Email Thread
Help please

I want to set opacicity of a text item to 50 if battery is discharging or 100 if charging

What is the full lua code i need to put into the opacicity field of the text item in watchmaker
 
 
20th May 2015, 05:02 PM |#2  
Junior Member
Thanks Meter: 1
 
More
Lua code for change opacity
Hi, I'm new in Watchmaker but i learnt to manage conditionals yesterday :P

Here is an example code in your case:

'{bc}' == 'Charging' and 100 or 50

That's all. You shoud write this on Opacity field.

Bye!
20th May 2015, 06:33 PM |#3  
lpasq's Avatar
Senior Member
Thanks Meter: 215
 
More
Quote:
Originally Posted by moracabanas

Hi, I'm new in Watchmaker but i learnt to manage conditionals yesterday

Here is an example code in your case:

'{bc}' == 'Charging' and 100 or 50

That's all. You shoud write this on Opacity field.

Bye!

Hi moracabanas. I have been learning how to make watch face using Photoshop and have them posted on G+ https://plus.google.com/116239600396242223638 ... Do you want to collaborate on one of my watches as the coder? If so, PM me and we can see if we can make something cool out of Aquila DayTimer D0516 posted there.
Cheers
24th May 2019, 06:27 PM |#4  
Junior Member
Thanks Meter: 0
 
More
Hi, do you know why this code, '{bc}' == 'Charging' and 100 or 50, do not work on android 5.1 watch faces ? Like thor, Lemfo .

---------- Post added at 05:27 PM ---------- Previous post was at 05:27 PM ----------

still not working.
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes