It is currently December 10th, 2018, 6:35 pm

[Fixed] Tricky Code Bug or another Crop issue - or maybe both

Testing and discussion of the conversion of Rainmeter to D2D.
User avatar
Mor3bane
Posts: 557
Joined: May 7th, 2016, 7:32 am

[Fixed] Tricky Code Bug or another Crop issue - or maybe both

Mor3bane » August 24th, 2018, 6:42 am

Rainmeter-4.3-r3236-D2D

Hi, so this is a Album Cover Meter. There is two features of this. The basic function being the album image.

Feature 1: animated B&W image called "Diamond-{ImageNumberCalc].jpg', when there is not album art.
Feature 2: static image of the iTunes logo on hover.

Those features use the "tricky code" to function as originally intended.

Feature 1 is the broken one. Feature 2 is fine.
Untitleda.jpg
So from this image it looks like a cropping issue, or possibly the "tricky code" at the end of the ini:

Code: Select all

[Rainmeter]
Author=Morbane
Update=1000
ContextTitle=Variables.inc
ContextAction=["#@#RoundVariables.inc"]
ContextTitle2=Alpha
ContextAction2=[!LoadLayout "Alpha"]
ContextTitle3=Beta
ContextAction3=[!LoadLayout "Beta"]
Group=iPicture | Big

[Variables]
@Include=#@#RoundVariables.inc
Color=#GlobalFontColor#
TextColor=#Color#
ColorZ=#ColorOffset#
PlayerName=#Player#
Goth=#Gothic#

[Background]
Meter=Image
ImageName=#@#Background.png
X=40
Y=40

[ImageNumberCalc]
Measure=Calc
Formula=Counter%10
DynamicVariables=1

[Player]
Measure=NowPlaying
PlayerName=#PlayerName#
PlayerType=Title
DisableLeadingZero=1

[Album]
Measure=NowPlaying
PlayerName=#PlayerName#
PlayerType=Album
DisableLeadingZero=1

[TrackNum]
Measure=NowPlaying
PlayerName=#PlayerName#
PlayerType=Number

[mCover]
Measure=NowPlaying
PlayerName=[Player]
PlayerType=Cover
Substitute="":"#@#diamond\diamond-[ImageNumberCalc].jpg"
DynamicVariables=1

[Cover]
Meter=Image
MeasureName=mCover
MaskImageName=#@#mask.png
AntiAlias=1
Y=63
X=64
W=211
H=211
ToolTipType=1
ToolTipText=[Album]#CRLF#Track: [TrackNum]#CRLF#[Player]
LeftMouseDownAction=iTunes
RightMouseDownAction=["C:\Program Files (x86)\Windows Media Player\wmplayer.exe"]
MouseOverAction=[!SetOption mCover Substitute """":"#*@*#Logo.png"""]
MouseLeaveAction=[!SetOption ImageNumberCalc Formula "Counter % 10"][!SetOption mCover Substitute """":"#*@*#diamond\diamond-[*ImageNumberCalc*].jpg"""][!UpdateMeasure mCover][!UpdateMeasure ImageNumberCalc][!Redraw]
SolidColor=0,0,0,0
DynamicVariables=1
Untitleda.jpg
You do not have the required permissions to view the files attached to this post.
My DevArt Gallery

There are many ways to be different - there is only one way to be yourself
User avatar
Brian
Developer
Posts: 1793
Joined: November 24th, 2011, 1:42 am
Location: Utah

Re: Tricky Code Bug or another Crop issue - or maybe both

Brian » September 23rd, 2018, 3:38 am

r3250 should fix this issue.

I couldn't see any "Crop" option in your test skin, so it was tricky to find what was causing this. Turns out it was with how masked images were "moved" when drawing. Anyway, we fixed it (hopefully :D).

-Brian
User avatar
Mor3bane
Posts: 557
Joined: May 7th, 2016, 7:32 am

Re: [Fixed] Tricky Code Bug or another Crop issue - or maybe both

Mor3bane » September 23rd, 2018, 9:36 am

is r3250 aVAILABLE yet?

jsmorley's pinned link only has r3249
My DevArt Gallery

There are many ways to be different - there is only one way to be yourself