In the current example it messes up StringAlign( in a nutshell, Right,Center=LeftTop || RightCenter, CenterCenter = LeftCenter
BUG
The function is:
If meterstyle is not used, the skin works normally:
The skin:
Not sure when your friend Jax discovered this, but if it didn't happen more than 3 months ago, I'll claim the "Christopher Columbus" award for this one... See the last paragraph of this post - what do you think, could it be the same problem/bug?death.crafter wrote: ↑July 13th, 2021, 3:07 pmSo Jax, a friend of mine has discovered a bug in inline lua. It messes up the other options in a meterstyle in the meter where it is used.
Meter2 there also had a MeterStyle, and inline Lua was also involved, just like :GetOption().There is one problem though, or maybe I'm missing something here: when uncommenting the 2nd Text options and commenting the 1st ones in the meters, the font and its size is reset.
It is indeed. And what's more weird is, GetMeasure works fine.Yincognito wrote: ↑July 13th, 2021, 4:30 pm Not sure when your friend Jax discovered this, but if it didn't happen more than 3 months ago, I'll claim the "Christopher Columbus" award for this one... See the last paragraph of this post - what do you think, could it be the same problem/bug?
Meter2 there also had a MeterStyle, and inline Lua was also involved, just like :GetOption().
Ah, ok - nice. At that time I thought that it was because I added a non-standard "custom option" to that meter. That was partly the reason I gave up using Jeff's :GetOption and SKIN:GetMeasure/SKIN:GetMeter approach and went the plain string route in my section index approach.death.crafter wrote: ↑July 13th, 2021, 4:40 pm It is indeed. And what's more weird is, GetMeasure works fine.
P.S. Jax was doing exactly what you were doing in the above case.
Actually I thought that as well. But when I tried this without a custom option and it still wielded the same results. So I guess more work for the devs.Yincognito wrote: ↑July 13th, 2021, 4:51 pm Ah, ok - nice. At that time I thought that it was because I added a non-standard "custom option" to that meter. That was partly the reason I gave up using Jeff's :GetOption and SKIN:GetMeasure/SKIN:GetMeter approach and went the plain string route in my section index approach.
Now that you posted this in a different way than I encountered it, maybe it has to do with either Lua not "parsing" / "replacing" the meter style with its actual content properly or executing both Rainmeter native code and inline Lua on the meter at roughly the same time somehow conflicting with each other.death.crafter wrote: ↑July 13th, 2021, 5:26 pm Actually I thought that as well. But when I tried this without a custom option and it still wielded the same results. So I guess more work for the devs.
I've tested the same inline lua with different types of meters. Here are the resultsHave you tried this on other meter types, other than String, by the way? Or changing the options order to see if the effect is order related or option related? I'm saying this because even back then I found it odd that only certain things got "broken" while others didn't suffer any negative effects (e.g. X, Y, etc)...
Code: Select all
[X]
Measure=Script
ScriptFile=Test.lua
[MeterStyle]
X=100r
Y=25r
W=[&X:Y()]
H=[&X:Y()]
; W=200
StringAlign=CenterCenter
AntiAlias=1
FontSize=40
FOntWeight=900
Text=[&X:Y()]
SolidColor=255,255,255,70
FontColor=255,255,255
DynamicVariables=1
[Textbox]
Meter=Shape
Get=100
Shape=Rectangle 0,0,200,50 | Fill Color 25,25,25
[Textbox.Text]
Meter=String
MeterStyle=MeterStyle
[Textbox.image]
Meter=Image
SolidColor=255,255,255,70
Y=50
W=[&X:Y()]
H=[&X:Y()]
DynamicVariables=1
[Textbox.Shape]
Meter=Shape
X=R
Y=r
Shape=Rectangle 0,0,[&X:Y()],[&X:Y()]
DynamicVariables=1
Just add an Attachment, below the Preview & Submit buttons, and place it Inline wherever you need in the message text. You can also attach Gifs if you want to illustrate animations, though in this case you'll need to convert your screen captured video to a GIF first, using free online tools / sites.EnhancedJax wrote: ↑July 14th, 2021, 3:01 amP.S. I am kind of new to the whole forums thing, so may I ask how to upload an image from local files?