It is currently March 28th, 2024, 9:00 pm

Jauges Disks - Would like Percentage in relative position

Get help with creating, editing & fixing problems with skins
DocPolo84
Posts: 4
Joined: July 24th, 2022, 10:12 am

Jauges Disks - Would like Percentage in relative position

Post by DocPolo84 »

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

Image to move like that : Image and obtain that : Image

My skin :
You do not have the required permissions to view the files attached to this post.
User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Jauges Disks - Would like Percentage in relative position

Post by balala »

Try to replace the X, Y and StringAlign options of the [MeterPercentC], [MeterPercentD], [MeterPercentI] and [MeterPercentX] meters as it follows:

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
...
Other additional polish will be needed, but for first see if this is something like you want.
DocPolo84
Posts: 4
Joined: July 24th, 2022, 10:12 am

Re: Jauges Disks - Would like Percentage in relative position

Post by DocPolo84 »

Thanks a lot Balala.

That's exactly what I wanted.
Great.

Thank you so much.
User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Jauges Disks - Would like Percentage in relative position

Post by balala »

DocPolo84 wrote: July 25th, 2022, 10:43 am That's exactly what I wanted.
:thumbup:

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.
DocPolo84
Posts: 4
Joined: July 24th, 2022, 10:12 am

Re: Jauges Disks - Would like Percentage in relative position

Post by DocPolo84 »

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
User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Jauges Disks - Would like Percentage in relative position

Post by balala »

DocPolo84 wrote: July 25th, 2022, 9:22 pm For images, I made the modification (#@#\Images\).
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.
DocPolo84
Posts: 4
Joined: July 24th, 2022, 10:12 am

Re: Jauges Disks - Would like Percentage in relative position

Post by DocPolo84 »

It's confirmed: I'm a beginner

:D

Thanks Balala
User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Jauges Disks - Would like Percentage in relative position

Post by balala »

DocPolo84 wrote: July 26th, 2022, 11:24 am It's confirmed: I'm a beginner
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...