It is currently April 25th, 2024, 11:42 am

Is there a way to put text 2 after text 1 to be automatically aligned?

Get help with creating, editing & fixing problems with skins
User avatar
Pyuahowaito
Posts: 50
Joined: January 3rd, 2022, 2:44 pm

Is there a way to put text 2 after text 1 to be automatically aligned?

Post by Pyuahowaito »

Is there a way to put text 2 after text 1 to be automatically aligned?

Code: Select all

[Title]
Meter=STRING
MeasureName=MeasureTitle
X=3r
Y=0R
W=1340
H=50
AntiAlias=1
FontFace=Montserrat
FontSize=20
FontColor=[Foreground2]
DynamicVariables=1

[Year]
Meter=STRING
MeasureName=MeasureYear
X=210r
Y=-50R
W=100
H=50
AntiAlias=1
FontFace=Montserrat
FontSize=20
FontColor=[Background1]
DynamicVariables=1
You do not have the required permissions to view the files attached to this post.
Last edited by Pyuahowaito on May 6th, 2022, 6:57 am, edited 1 time in total.
User avatar
sl23
Posts: 1140
Joined: February 17th, 2011, 7:45 pm
Location: a Galaxy S7 far far away

Re: Is there a way to put text 2 after text 1 to be automatically aligned?

Post by sl23 »

I believe you mean something like this:

Code: Select all

[Title] Meter=STRING
 MeasureName=MeasureTitle
 MeasureName2=MeasureYear
 X=3r
 Y=0R
 W=1340
 H=50
 AntiAlias=1
 FontFace=Montserrat
 FontSize=20
 FontColor=[Foreground2]
 DynamicVariables=1
 Text=%1 %2
- MuLab -
User avatar
balala
Rainmeter Sage
Posts: 16168
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Is there a way to put text 2 after text 1 to be automatically aligned?

Post by balala »

sl23 wrote: May 5th, 2022, 9:44 am I believe you mean something like this:
Good idea, however note that with the posted code, the color of second string ([MeasureYear]) is the same as the color of first string ([MeasureTitle]). Most probably this is not good enough this way.
In this case the InlineSetting could help:

Code: Select all

[Title]Meter=STRING
MeasureName=MeasureTitle
MeasureName2=MeasureYear
X=3r
Y=0R
W=1340
H=50
AntiAlias=1
FontFace=Montserrat
FontSize=20
FontColor=[Foreground2]
DynamicVariables=1
Text=%1 %2
InlineSetting=Color | [Background1]
InlinePattern=([MeasureYear])
(See the added InlineSetting and InlinePattern options).
User avatar
sl23
Posts: 1140
Joined: February 17th, 2011, 7:45 pm
Location: a Galaxy S7 far far away

Re: Is there a way to put text 2 after text 1 to be automatically aligned?

Post by sl23 »

Ah, missed that! Bloody amateurs eh! :twisted:
- MuLab -
User avatar
Pyuahowaito
Posts: 50
Joined: January 3rd, 2022, 2:44 pm

Re: Is there a way to put text 2 after text 1 to be automatically aligned?

Post by Pyuahowaito »

Thanks to the sl23 method, exactly what I wanted it to be, I learned! Thanks to balala for your attentive guidance, the community is great!
You do not have the required permissions to view the files attached to this post.
Judian81
Posts: 180
Joined: May 6th, 2021, 2:57 pm

Re: Is there a way to put text 2 after text 1 to be automatically aligned?

Post by Judian81 »

Pyuahowaito wrote: May 6th, 2022, 6:56 am
this is just another way to use something like this. you can swap the meters and it will not have any effects.

Code: Select all

[mYear]
Measure=String
String=year

[mTitle]
Measure=String
String=title

[tYear]
Meter=String
MeasureName=mYear
StringAlign=Right
X=250
Y=r
W=150
H=50
AntiAlias=1
FontFace=Montserrat
FontSize=20
FontColor=255,255,255,255
DynamicVariables=1
SolidColor=100,100,100,255
TrailingSpaces=1
text="  %1  "

[tTitle]
Meter=String
MeasureName=mTitle
StringAlign=Left
X=0
Y=r
W=100
H=50
AntiAlias=1
FontFace=Montserrat
FontSize=20
FontColor=100,100,100,255
DynamicVariables=1
SolidColor=255,255,255,255
TrailingSpaces=1
text="  %1  "


forum 1.png


but now i realise you have a 1 background in stead of 2. so this code is not realy what you want.
You do not have the required permissions to view the files attached to this post.
User avatar
balala
Rainmeter Sage
Posts: 16168
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Is there a way to put text 2 after text 1 to be automatically aligned?

Post by balala »

Pyuahowaito wrote: May 6th, 2022, 6:56 am Thanks to balala for your attentive guidance, the community is great!
You're welcome. Indeed is a great community. :thumbup: