Hi,
I created my first skin.
It was made from that of Faysal Ahmet.
It's hard drive gauges, with many colors depending on the disk percentage.
I would like the percentage to be positioned at the top of each half-circle gauge, at gauge height, and not at the top right.
Is this possible?
Thanks you all
to move like that : and obtain that :
My skin :
It is currently March 28th, 2024, 9:00 pm
Jauges Disks - Would like Percentage in relative position
-
- Posts: 4
- Joined: July 24th, 2022, 10:12 am
Jauges Disks - Would like Percentage in relative position
You do not have the required permissions to view the files attached to this post.
-
- Rainmeter Sage
- Posts: 16110
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Jauges Disks - Would like Percentage in relative position
Try to replace the X, Y and StringAlign options of the [MeterPercentC], [MeterPercentD], [MeterPercentI] and [MeterPercentX] meters as it follows:
Other additional polish will be needed, but for first see if this is something like you want.
Code: Select all
[MeterPercentC]
...
X=(110+110*Cos(1.5730+(PI*[MeasureHDC100]/100)))
Y=(110+110*Sin(1.5730+(PI*[MeasureHDC100]/100)))
...
StringAlign=CenterCenter
...
...
[MeterPercentD]
...
X=(110+95*Cos(1.5730+(PI*[MeasureHDD100]/100)))
Y=(110+95*Sin(1.5730+(PI*[MeasureHDD100]/100)))
...
StringAlign=CenterCenter
...
...
[MeterPercentI]
...
X=(110+80*Cos(1.5730+(PI*[MeasureHDI100]/100)))
Y=(110+80*Sin(1.5730+(PI*[MeasureHDI100]/100)))
...
StringAlign=CenterCenter
...
...
[MeterPercentX]
...
X=(110+65*Cos(1.5730+(PI*[MeasureHDX100]/100)))
Y=(110+65*Sin(1.5730+(PI*[MeasureHDX100]/100)))
...
StringAlign=CenterCenter
...
-
- Posts: 4
- Joined: July 24th, 2022, 10:12 am
Re: Jauges Disks - Would like Percentage in relative position
Thanks a lot Balala.
That's exactly what I wanted.
Great.
Thank you so much.
That's exactly what I wanted.
Great.
Thank you so much.
-
- Rainmeter Sage
- Posts: 16110
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Jauges Disks - Would like Percentage in relative position
Additionally note a few things:
- Never, but never use the @Resources folder as you did (for instance Image LocationC=#SKINSPATH#Jauges\@Resources\Images\DDSeven.png). Correctly this has to be written as Image LocationC=#@#Images\DDSeven.png. The #@# variable indicates Rainmeter the @Resources folder of the loaded skin. Let Rainmeter to decide which one is that.
- Even if not forbidden, the spaces should been be avoided in name of variables (neither in name of measures or meters and so on). Can give you a lot of headache. I definitely never use such spaces, recommend you not to do either. Again it is not forbidden, can be used, it simply is not recommended.
- This is not a problem either, however quoting the values of any option is completely useless. Rainmeter simply ignores those quotes. For instance you did quote the ToolTipTitle option of the [HDDC] meter (ToolTipTitle="Disk #DriveC#") or the second occurrence of the Text option of the [MeterPercentC] meter (Text="%1%").
- Related to the previous point, note that there are two Text options on all [MeterPercentX] meters: Text=%1% and below Text="%1%". In such cases Rainmeter simply ignores any further occurrence of the same option on the same section, so they are useless.
-
- Posts: 4
- Joined: July 24th, 2022, 10:12 am
Re: Jauges Disks - Would like Percentage in relative position
Good evening
Thanks for your advices.
For images, I made the modification (#@#\Images\).
For the text options, I had realized this morning that there was a doubling.
Thank you again for your time spent.
Have a good evening
Thanks for your advices.
For images, I made the modification (#@#\Images\).
For the text options, I had realized this morning that there was a doubling.
Thank you again for your time spent.
Have a good evening
-
- Rainmeter Sage
- Posts: 16110
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Jauges Disks - Would like Percentage in relative position
Not to nitpick, and this definitely is not a mistake at all, however strictly speaking the backslash after the #@# variable is not needed, because the variable itself contains it from the beginning. So instead of #@#\Images\ you could use only #@#Images\. Why this is not a mistake is that you can use any number of backslashes, Rainmeter simply get rid of them. See some details here.
-
- Posts: 4
- Joined: July 24th, 2022, 10:12 am
Re: Jauges Disks - Would like Percentage in relative position
It's confirmed: I'm a beginner
Thanks Balala
Thanks Balala
-
- Rainmeter Sage
- Posts: 16110
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Jauges Disks - Would like Percentage in relative position
Doesn't matter, this forum is a very good place to get new things related to Rainmeter. If you keep working on those skins, slightly - slightly you'll realize you're better than you believe. So keep working, if you are interested...