| Author |
Message |
|
minhtrimatrix
|
Post subject: Indicator for Battery Posted: Mon Mar 08, 2010 5:11 am |
|
Joined: Fri Oct 16, 2009 11:57 pm Posts: 16
|
Hey everyone I just make a skin for Battery But I need your help Could I create a indicator to slide from 100% --> 0% You can see my image:  Sorry for my English 
|
|
 |
|
 |
|
tru
|
Post subject: Re: Indicator for Battery Posted: Mon Mar 08, 2010 5:21 am |
|
Joined: Tue Jan 12, 2010 4:24 am Posts: 196 Location: A Salty Piece of Land...
|
|
 |
|
 |
|
minhtrimatrix
|
Post subject: Re: Indicator for Battery Posted: Mon Mar 08, 2010 5:37 am |
|
Joined: Fri Oct 16, 2009 11:57 pm Posts: 16
|
tru wrote: Thanks mate But what I need here that is the black arrow not the Bar Can the arrow slide along the border of the Battery In the image that is slide from right to left 
|
|
 |
|
 |
|
Chewtoy
|
Post subject: Re: Indicator for Battery Posted: Tue Mar 09, 2010 8:18 am |
|
Joined: Wed Jun 10, 2009 12:44 pm Posts: 1401 Location: Sweden
|
minhtrimatrix wrote: tru wrote: Thanks mate But what I need here that is the black arrow not the Bar Can the arrow slide along the border of the Battery In the image that is slide from right to left :p Should it move with the battery level or just go back and forth all the time?
_________________ V.I.S.O.R I don't think, therefor I'm not.
|
|
 |
|
 |
|
smurfier
|
Post subject: Re: Indicator for Battery Posted: Tue Mar 09, 2010 8:46 pm |
|
Joined: Fri Jan 29, 2010 1:43 am Posts: 244
|
|
Just a thought, try setting your x to this:
x=((X-H)+(W*([M]/Z)))
X=Original X, on the left H=Half the width of your image, so the value of the measure is the center of your image W=the width of your bar M=Your measure Z=The max value of your measure
Remember that you'll have to add: DynamicVariables=1
Not sure it will work, but you can give it a try.
_________________ People will believe whatever they wish to believe, whether it is true or not.
|
|
 |
|
 |
|
minhtrimatrix
|
Post subject: Re: Indicator for Battery Posted: Tue Mar 09, 2010 9:16 pm |
|
Joined: Fri Oct 16, 2009 11:57 pm Posts: 16
|
Chewtoy wrote: minhtrimatrix wrote: tru wrote: Thanks mate But what I need here that is the black arrow not the Bar Can the arrow slide along the border of the Battery In the image that is slide from right to left  Should it move with the battery level or just go back and forth all the time? Yeah, it move with the Battery level But I got a problem I can't add a image .png when I add DynamicVariables=1
|
|
 |
|
 |
|
Chewtoy
|
Post subject: Re: Indicator for Battery Posted: Tue Mar 09, 2010 10:09 pm |
|
Joined: Wed Jun 10, 2009 12:44 pm Posts: 1401 Location: Sweden
|
minhtrimatrix wrote: Yeah, it move with the Battery level But I got a problem I can't add a image .png when I add DynamicVariables=1 Just make the bar invisible and have the picture relative to the bar. When the bar moves, so will the picture. No need to have dynamic variables. Code: [MeterBattery] Meter=Bar MeasurName=MeasureBattery X=2 Y=14 W=100 H=1 BarColor=#BarColor#
[MeterImage] Meter=Image ImageName=arrow.png X=-4R Y=20 H=30 W=30 PreserveAspectRatio=1 Or something like that.
_________________ V.I.S.O.R I don't think, therefor I'm not.
|
|
 |
|
 |
|