Register    Login    IRC Chat    Search    Google

Board index » Getting Started » Rainmeter Help




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Indicator for Battery
 Post Posted: Mon Mar 08, 2010 5:11 am 
Offline

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:
Image
Sorry for my English
:welcome:


Top 
 Profile  
 
 Post subject: Re: Indicator for Battery
 Post Posted: Mon Mar 08, 2010 5:21 am 
Offline
User avatar

Joined: Tue Jan 12, 2010 4:24 am
Posts: 196
Location: A Salty Piece of Land...
sure can..take a look at this one to give yourself some ideas...

http://neo2606.deviantart.com/art/battery-skin-iphone-style-123789087


Top 
 Profile  
 
 Post subject: Re: Indicator for Battery
 Post Posted: Mon Mar 08, 2010 5:37 am 
Offline

Joined: Fri Oct 16, 2009 11:57 pm
Posts: 16
tru wrote:
sure can..take a look at this one to give yourself some ideas...

http://neo2606.deviantart.com/art/battery-skin-iphone-style-123789087


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


Top 
 Profile  
 
 Post subject: Re: Indicator for Battery
 Post Posted: Tue Mar 09, 2010 8:18 am 
Offline
User avatar

Joined: Wed Jun 10, 2009 12:44 pm
Posts: 1401
Location: Sweden
minhtrimatrix wrote:
tru wrote:
sure can..take a look at this one to give yourself some ideas...

http://neo2606.deviantart.com/art/battery-skin-iphone-style-123789087


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.


Top 
 Profile  
 
 Post subject: Re: Indicator for Battery
 Post Posted: Tue Mar 09, 2010 8:46 pm 
Offline
User avatar

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.


Top 
 Profile  
 
 Post subject: Re: Indicator for Battery
 Post Posted: Tue Mar 09, 2010 9:16 pm 
Offline

Joined: Fri Oct 16, 2009 11:57 pm
Posts: 16
Chewtoy wrote:
minhtrimatrix wrote:
tru wrote:
sure can..take a look at this one to give yourself some ideas...

http://neo2606.deviantart.com/art/battery-skin-iphone-style-123789087


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?


Yeah, it move with the Battery level
But I got a problem
I can't add a image .png when I add DynamicVariables=1


Top 
 Profile  
 
 Post subject: Re: Indicator for Battery
 Post Posted: Tue Mar 09, 2010 10:09 pm 
Offline
User avatar

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.


Top 
 Profile  
 
Display posts from previous:  Sort by  
 
Post new topic Reply to topic  [ 7 posts ] 

Board index » Getting Started » Rainmeter Help


Who is online

Users browsing this forum: Google [Bot], MSN [Bot] and 4 guests

 
 

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Donations for Rainmeter and the Rainmeter Community are now being accepted.

Your donations are greatly appreciated by all the community.