I wouldn't... What I would suggest is that if a final resolution of this matter is ever reached, and a skin or approach that is really good is ever found, either create a "Tips & Tricks" post laying it out, or release the skin in "Share Your Creations", or both.
It is currently November 29th, 2023, 5:45 am
Simple countdown timer
-
- Developer
- Posts: 22593
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: Simple countdown timer
-
- Posts: 1140
- Joined: February 17th, 2011, 7:45 pm
- Location: a Galaxy S7 far far away
Re: Simple countdown timer
OK, I was planning on building a basic Suite, or are there rules for that?
I mean, like, do you have to include a settings skin or make things easily editable or something?
I mean, like, do you have to include a settings skin or make things easily editable or something?
- MuLab -
-
- Rainmeter Sage
- Posts: 1399
- Joined: April 24th, 2021, 8:13 pm
Re: Simple countdown timer
If you want to. There is no rule that you have to make a settings skin. You can just take out several variables and place them in a file called Settings.inc. Users can edit that file to change settings.
Or you can make a settings menu. Depends on "Is it worth the trouble?"
from the Realm of Death
-
- Rainmeter Sage
- Posts: 6366
- Joined: February 27th, 2015, 2:38 pm
- Location: Terra Yincognita
Re: Simple countdown timer
As you probably found out already, in this specific case, this has to as much to do with the meter dimensions on which the tooltip is triggered (those dimensions being artificially expanded by the more or less "empty space" between the meter's X / Y and the shape's X / Y), as much as it has to do with the SolidColor / FillColor / whatever that is present in that expanded space. Take this very simple code, for example:sl23 wrote: ↑August 5th, 2021, 7:13 am If that's the case, then what's the point in having those parameters in the first place? I thought that's what they were for? Strange!
Also, how is it that the previous version of the skin whose x,y parameters weren't zero didn't have this issue? Is it just a matter of too many shape meters without the x,y parameters?
So, I take it the idea is to use x,y to place the shape, then use the shapes x,y,h,w to place relative to former position? Is that how it works?
I just don't understand how it doesn't work how it should. If you create a section name all parameters under that belong to that section not a previous one, or the one after it.
So the point is, stop using the shapes parameter as its position and use the proper section x,y parameters instead? Ok, got it
Thanks, hopefully that'll solve the tool tip issue.![]()
Code: Select all
[Variables]
[Rainmeter]
Update=1000
DynamicWindowSize=1
AccurateText=1
---Meters---
[Background]
Meter=Shape
Shape=Rectangle 0,0,150,150 | Fill Color 0,0,0,1
[SomeMeter]
Meter=Shape
Shape=Rectangle 100,100,50,50
ToolTipText="Hello There!"
Bottom line, it's not that you shouldn't use starting shapes from other coordinates than (0,0) - as noted in the other thread, there are times when this is necessary -, it's the fact that you should be aware that there will probably be "side effects" to starting at non-zero coordinates, in certain scenarios (like this one or the one in the other thread, for example). In the end, the idea is to start at (0,0) as much as you can, and only when actually necessary start the shape from other coordinates - either way, always know doing the latter can have "unexpected" consequences. Not bad, but enough to require "fixing" the issue, as you could see.

You do not have the required permissions to view the files attached to this post.
-
- Rainmeter Sage
- Posts: 1399
- Joined: April 24th, 2021, 8:13 pm
Re: Simple countdown timer
Apart from Yincognito's reply,
See how I changed the Rectangles to Ellipse.
Code: Select all
[BgAlarm]
Meter=Shape
X=7
Y=7
Shape=Ellipse 30,30,30,30 | Fill Color 0,0,0,50 | StrokeWidth 2 | Extend StrokeAlpha
Shape2=Ellipse 30,30,21,21 | Fill Color 0,0,0,1 | StrokeWidth 2 | Extend StrokeAlpha2
Shape3=Ellipse 30,30,25,25 | Fill Color 0,0,0,1 | StrokeWidth 10 | Stroke Color 255,255,255,20
StrokeAlpha=Stroke Color #Color5#
StrokeAlpha2=Stroke Color #Color5#
LeftMouseUpAction=[!EnableMeasure mChimeHour] [!ShowMeter ChimeIcon] [!SetOption #CURRENTSECTION# StrokeAlpha2 "Stroke Color #Color5#"] [!DisableMeasureGroup ALARM] [!HideMeterGroup AlarmSet][!SetOption Action Text "#ActionText#"] [PlayStop "#Alarm#"] [!Update][!UpdateMeter *][!Redraw]
RightMouseUpAction=[!DisableMeasure mChimeHour] [!HideMeter ChimeIcon] [!SetOption #CURRENTSECTION# StrokeAlpha2 "Stroke Color 128,255,0,200"] [!EnableMeasureGroup ALARM] [!ShowMeter HourAlarm] [!ShowMeter MinuteAlarm] [!Update][!UpdateMeter *][!Redraw]
MouseOverAction=[!SetOption #CURRENTSECTION# StrokeAlpha "Stroke Color #Color4#"][!UpdateMeter *][!Redraw]
MouseLeaveAction=[!SetOption #CURRENTSECTION# StrokeAlpha "Stroke Color #Color5#"][!UpdateMeter *][!Redraw]
DynamicVariables=1
ToolTipText="L - Alarm Off#CRLF#R - Alarm On"
[BgTimer]
Meter=Shape
X=167
Y=7
Shape=Ellipse 30,30,30,30 | Fill Color 0,0,0,50 | StrokeWidth 2 | Extend StrokeAlpha
Shape2=Ellipse 30,30,21,21 | Fill Color 0,0,0,1 | StrokeWidth 2 | Extend StrokeAlpha2
Shape3=Ellipse 30,30,25,25 | Fill Color 0,0,0,1 | StrokeWidth 10 | Stroke Color 255,255,255,20
StrokeAlpha=Stroke Color #Color5#
StrokeAlpha2=Stroke Color #Color5#
LeftMouseUpAction=[!SetOption #CURRENTSECTION# StrokeAlpha2 "Stroke Color #Color5#"] [!HideMeterGroup Controls][!SetOption Action Text "#ActionText#"] [PlayStop "#Alarm#"] [!Update][!UpdateMeter *][!Redraw]
RightMouseUpAction=[!SetOption #CURRENTSECTION# StrokeAlpha2 "Stroke Color 128,255,0,200"] [!ShowMeterGroup Controls] [!Update][!UpdateMeter *][!Redraw]
MouseOverAction=[!SetOption #CURRENTSECTION# StrokeAlpha "Stroke Color #Color4#"][!UpdateMeter *][!Redraw]
MouseLeaveAction=[!SetOption #CURRENTSECTION# StrokeAlpha "Stroke Color #Color5#"][!UpdateMeter *][!Redraw]
DynamicVariables=1
ToolTipText="L - Timer Off#CRLF#R - Timer On"
from the Realm of Death
-
- Posts: 1140
- Joined: February 17th, 2011, 7:45 pm
- Location: a Galaxy S7 far far away
Re: Simple countdown timer
Thanks for the advice
Rest assured, credit will be given everytime
I think I get what's happening with the shape meter. I'll probably have to come back and reread that post though!

Rest assured, credit will be given everytime

I think I get what's happening with the shape meter. I'll probably have to come back and reread that post though!

- MuLab -
-
- Posts: 1140
- Joined: February 17th, 2011, 7:45 pm
- Location: a Galaxy S7 far far away
Re: Simple countdown timer
Yeah, I'll have to change all my meter's at some point, makes it easier if they're ellipse. Thank you death.crafter 

- MuLab -
-
- Rainmeter Sage
- Posts: 6366
- Joined: February 27th, 2015, 2:38 pm
- Location: Terra Yincognita
Re: Simple countdown timer
Rest assured, I've seen LOTS of other folks doing the same, i.e. use rounded rectangles when what they actually want is an ellipse. I can't explain why they think it's easier that way (maybe the abundace of rectangle examples in the manual, compared to ellipses?), but it happens...

-
- Posts: 1140
- Joined: February 17th, 2011, 7:45 pm
- Location: a Galaxy S7 far far away
Re: Simple countdown timer
I think it's because, for me at least, that I started with a rectangle shared skin. So it was easier to copy, paste and adjust. I just tried using the ellipse and it sent my circle off the to and left! I'm assuming you need to set size as diameter?
I'll look into it and if I have an issue I'll report back.
I'll look into it and if I have an issue I'll report back.

- MuLab -
-
- Developer
- Posts: 22593
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: Simple countdown timer
Keep in mind that ellipses are defined from the center out, not from the left as most other things are.sl23 wrote: ↑August 5th, 2021, 5:19 pm I think it's because, for me at least, that I started with a rectangle shared skin. So it was easier to copy, paste and adjust. I just tried using the ellipse and it sent my circle off the to and left! I'm assuming you need to set size as diameter?
I'll look into it and if I have an issue I'll report back.![]()
https://docs.rainmeter.net/manual/meters/shape/#Ellipse