I'm trying to get a preview to work, but every attempt yields the wrong path. Could someone help me figure this out please.
I don't think the whole skin is required but if so I'll post an rmskin package.
Current Skin Screenshot:
REMOVED
THE GOAL:
When I click a large icon in the FileView area, I want a cover pic to show. As is shown on the right at present. Obviously, it has to be dynamic. But, it's not.
PART 1:
The key is: ImageName="#@#GameBar\Graphics\Cover\3DS\3DS - Mario Kart 7.jpg"
So when I click on the file called "3DS - Mario Kart 7.jpg" in the FileView area, it sets the variable #Cover# to that name, which is working ok.
On loading the skin, the variables for the path to the image are partly empty.
This is what I am aiming for:I've tried escaping variables and even set up a temporary variable called Image to see what path I'm getting. Trouble is, when using the temporary variable called "Image", I get the path name as: #@#GameBar\Graphics\Variables\...... I cannot escape this. I don't understand why this won't work as everywhere else I've ever used it, it just replaces it with the Section Name.
PART 2:
After that part the path follows with the Variable called #Folder#.
This is preset to "- All -" so that the path isn't empty on start up/refresh.
When clicking on one of the items in the list on the far left, this variable is dynamically changing in the log. It doesn't however change the Path, so the path always stays as: #@#GameBar\Graphics\Variables\- All -\......, and never changes.
PART 3:
The last part is also confusing as it also will not update. It basically remains blank as the variable "Cover" is blank in the ini file. I don't want it to start with an image, only show an image when an icon is clicked on.
I'm a little confused how this would work even though I've used this many times before. The confusion stems from the fact that it's used twice in the path: ImageName=#@#GameBar\Graphics\#CURRENTSECTION#\#Folder#\#CURRENTSECTION#.jpg
The first #CURRENTSECTION# should get the Section Name, the second #CURRENTSECTION# should resolve the info from the variable of the same name. Like I said, I tried escaping the variable in both cases, but am unsure why it refuses to work.
Hopefully, I've made it clear what I want to achieve? Apologies if not, I'm not the best at explaining this stuff. I'll post the skin package if required, it's just that I can't include the graphics due to size limits.
Everything else is fully working at this stage and there are no errors in the log, except one repeating this on every update cycle:
ImageName: Unable to open: D:\SyMenu\ProgramFiles\MyApps\Rainmeter64\Skins\Barred\@Resources\GameBar\Graphics\Variables\- All -\.jpg (Barred\GameBar\GameBar5.ini)
I'd be grateful for some help please!
I don't think the whole skin is required but if so I'll post an rmskin package.
Current Skin Screenshot:
REMOVED
THE GOAL:
When I click a large icon in the FileView area, I want a cover pic to show. As is shown on the right at present. Obviously, it has to be dynamic. But, it's not.
Code:
[Variables]Menu=ConsolesPath=ConsolesFolder=- All -Menu=#CURRENTSECTION#Banner=Cover=GameData=Image=#CURRENTSECTION#\3DS\#Cover#.jpg - USED FOR TESTING CORRECT PATH ONLY========================================; SIDE PANEL PREVIEW========================================[sPreview]ImageName=#@#GameBar\Graphics\Covers\#CURRENTSECTION#\#Path#\#Folder#\PreserveAspectRatio=1SolidColor=#BgFill#DynamicVariables=1X=((#ScreenAreaWidth#-430)*#Scale#)W=(370*#Scale#)[Banner]Meter=ImageMeterStyle=sPreviewImageName=#@#GameBar\Graphics\#CURRENTSECTION#\#Path#\#Folder#\#Banner#Y=((#WorkAreaHeight#-980)*#Scale#)H=(150*#Scale#)[Cover]Meter=ImageMeterStyle=sPreviewImageName="#@#GameBar\Graphics\#CURRENTSECTION#\3DS\3DS - Mario Kart 7.jpg";ImageName="#@#GameBar\Graphics\#Image#\"Y=((#WorkAreaHeight#-810)*#Scale#)H=(450*#Scale#)[GameData]Meter=ImageMeterStyle=sPreviewY=((#WorkAreaHeight#-340)*#Scale#)H=(285*#Scale#)[sIcon]MeasureName=m#CURRENTSECTION#AntiAlias=1ImageAlpha=160MouseOverAction=[!SetOption #CURRENTSECTION# ImageAlpha "255"][!SetOption #CURRENTSECTION# SolidColor "#Aqua#,50"][!UpdateMeter #CURRENTSECTION#][!Redraw]MouseLeaveAction=[!SetOption #CURRENTSECTION# ImageAlpha ""][!SetOption #CURRENTSECTION# SolidColor ""][!UpdateMeter #CURRENTSECTION#][!Redraw]LeftMouseUpAction=[!SetVariable Cover "[&m[#CURRENTSECTION]Name]"][!UpdateMeter Cover][!Redraw]LeftMouseDoubleClickAction=[!CommandMeasure m#CURRENTSECTION# "FollowPath"][!UpdateMeasure mPath][!UpdateMeasureGroup Children][!UpdateMeter *][!Redraw]Group=Children | m#CURRENTSECTION#X=(#IconSize#+(15*#Scale#))rY=rW=#IconSize#H=#IconSize#[1]Meter=ImageMeterStyle=sIconX=(240*#Scale#)Y=(70*#Scale#)
The key is: ImageName="#@#GameBar\Graphics\Cover\3DS\3DS - Mario Kart 7.jpg"
So when I click on the file called "3DS - Mario Kart 7.jpg" in the FileView area, it sets the variable #Cover# to that name, which is working ok.
On loading the skin, the variables for the path to the image are partly empty.
This is what I am aiming for:
Code:
[sPreview]ImageName=#@#GameBar\Graphics\#CURRENTSECTION#\#Folder#\#CURRENTSECTION#.jpg
PART 2:
After that part the path follows with the Variable called #Folder#.
This is preset to "- All -" so that the path isn't empty on start up/refresh.
When clicking on one of the items in the list on the far left, this variable is dynamically changing in the log. It doesn't however change the Path, so the path always stays as: #@#GameBar\Graphics\Variables\- All -\......, and never changes.
PART 3:
The last part is also confusing as it also will not update. It basically remains blank as the variable "Cover" is blank in the ini file. I don't want it to start with an image, only show an image when an icon is clicked on.
I'm a little confused how this would work even though I've used this many times before. The confusion stems from the fact that it's used twice in the path: ImageName=#@#GameBar\Graphics\#CURRENTSECTION#\#Folder#\#CURRENTSECTION#.jpg
The first #CURRENTSECTION# should get the Section Name, the second #CURRENTSECTION# should resolve the info from the variable of the same name. Like I said, I tried escaping the variable in both cases, but am unsure why it refuses to work.
Hopefully, I've made it clear what I want to achieve? Apologies if not, I'm not the best at explaining this stuff. I'll post the skin package if required, it's just that I can't include the graphics due to size limits.
Everything else is fully working at this stage and there are no errors in the log, except one repeating this on every update cycle:
ImageName: Unable to open: D:\SyMenu\ProgramFiles\MyApps\Rainmeter64\Skins\Barred\@Resources\GameBar\Graphics\Variables\- All -\.jpg (Barred\GameBar\GameBar5.ini)
I'd be grateful for some help please!
Statistics: Posted by sl23 — Today, 11:58 am — Replies 1 — Views 55