It is currently March 28th, 2024, 10:49 am

Solved: Web parse skin display issue

Get help with creating, editing & fixing problems with skins
User avatar
Stillub
Posts: 17
Joined: December 30th, 2017, 2:38 pm

Re: Web parse skin display issue

Post by Stillub »

Thanks! That did the trick... :D

Image

If I can ask one more thing, is it possible to change the color of the text that is parged?
I would like to change it to green if it's possible.
User avatar
balala
Rainmeter Sage
Posts: 16109
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Web parse skin display issue

Post by balala »

Stillub wrote:If I can ask one more thing, is it possible to change the color of the text that is parged?
I would like to change it to green if it's possible.
It is, using the Inline options of the String meters.
Add the following two options to the [MeterTank_R1] meter:

Code: Select all

InlineSetting=Color | 0,255,0
InlinePattern=^Tank. S1: (.*)$
Obviously in the InlineSetting option you have to set the color you'd like to use. In the InlinePattern options (if you want to color the appropriate parts of each string) of all those String meters, you have to modify the Tank. S1: part to the appropriate strings. Eg to Tank. S2: in the [MeterTank_R2] meter and so on.
User avatar
Stillub
Posts: 17
Joined: December 30th, 2017, 2:38 pm

Re: Web parse skin display issue

Post by Stillub »

Thanks for the reply. I am not having much luck and assume I am simply not inserting as I should, where I should.
Can you doctor this meter to show me? Sorry, I don't mean to be "spoon fed" , I just need a little guidance.

Code: Select all

[MeterTank_R1]
MeasureName=MeasureTank_R1
Meter=String
X=0
Y=3R
W=120
H=18
FontSize=11
FontColor=255, 252, 252
SolidColor=29, 30, 29
Padding=6,3,6,3
StringIndex=1
AntiAlias=1
Text=Tank. S1._: %1 
I was thinking about a green color for the parsed numbers, say: 76, 244, 4
User avatar
balala
Rainmeter Sage
Posts: 16109
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Web parse skin display issue

Post by balala »

Stillub wrote:Thanks for the reply. I am not having much luck and assume I am simply not inserting as I should, where I should.
Can you doctor this meter to show me? Sorry, I don't mean to be "spoon fed" , I just need a little guidance.

Code: Select all

[MeterTank_R1]
MeasureName=MeasureTank_R1
Meter=String
X=0
Y=3R
W=120
H=18
FontSize=11
FontColor=255, 252, 252
SolidColor=29, 30, 29
Padding=6,3,6,3
StringIndex=1
AntiAlias=1
Text=Tank. S1._: %1 
InlineSetting=Color | 76,244,4
InlinePattern=^.*: (.*)$
First of all, good idea to renounce to the Prefix.
The above InlineSetting, will color to green everything which is after the colon. You can add these options to all of those String meters. On each of them, the string following the colon will be colored.
User avatar
Stillub
Posts: 17
Joined: December 30th, 2017, 2:38 pm

Re: Web parse skin display issue

Post by Stillub »

Thank you! That was what I needed. I did spend time looking at the instructional page on how to do this, but it just wasn't clicking. I am not sure of what you are trying to convey here though?:
First of all, good idea to renounce to the Prefix.
Anyways..., I have the skin shaped up the way I want it and I am quite happy with it.
Thank you for your help.

Image
User avatar
balala
Rainmeter Sage
Posts: 16109
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Web parse skin display issue

Post by balala »

Stillub wrote:I am not sure of what you are trying to convey here though?:
Newly seems better to not use a Prefix (or/and Postfix) option, instead put the entire string in the Text option (you've used a Prefix in your initial code, but later it vanished). Read the Note here: https://docs.rainmeter.net/manual/meters/string/#Prefix
I'm glad if you got it working well.
Post Reply