It is currently March 29th, 2024, 7:29 am

reversing a skin

Get help with creating, editing & fixing problems with skins
ibrakad
Posts: 14
Joined: January 15th, 2020, 1:33 pm

reversing a skin

Post by ibrakad »

hello how are you guys doing, i have downloaded a skin called GAMEHUB
and i have created a layout and added a horizontal icon meter and i want to put it in the right side of my screen and when i add somthing it adds to the left and not to the right

any tips ?

this is how it looks (when i add an icon it goes to the right of the meter wich will be offscreen, i just want to reverse that)
Image
Last edited by ibrakad on January 16th, 2020, 8:24 pm, edited 1 time in total.
User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: reversing a skin

Post by balala »

ibrakad wrote: January 15th, 2020, 1:40 pm i have created a layout and added a horizontal icon meter and i want to put it in the right side of my screen and when i add somthing it adds to the left and not to the right
Using relative positioning of the meters, is much easier to place the newly added meter on the right side of the last meter. You have to use the a X=0R option.
However not knowing the code it is hard to say something smarter than this, so please post a link of the skin in cause as well as your modified code.
ibrakad
Posts: 14
Joined: January 15th, 2020, 1:33 pm

Re: reversing a skin

Post by ibrakad »

balala wrote: January 15th, 2020, 1:55 pm so please post a link of the skin in cause as well as your modified code.
this is the skin link https://www.deviantart.com/not-finch/art/GameHUB-launcher-2-for-Rainmeter-785369648

this is my custom layout

Code: Select all

[Display1]
Layout=vertical.inc
LoadMeter={'spectrum_meter.inc'}
SkinHeight=0.725
SkinX=0.01
SkinY=0.1
List=list_game.inc
Space=5
ColumnSpace=5
Columns=5
ScrollSpeed=0.1
ScrollDivider=8
Transition=5
IconSolid=255,255,255,100
IconTint=0,0,0,155
HighlightColor=0,0,0,80
IconScale=0.7
BannerWidth=(#DisplayWidth#*0.1945)
BannerHeight=(#DisplayHeight#*0.3600)
Update=15
ClickThrough=0
CoverAspectRatio=2
StaticBackground=0
Keyboard=1
Gamepad=1
LaunchAction=[!CommandMeasure Animation "launch_effect()"]

[Display2]
Layout=horizontal.inc
LoadMeter={'icon_meter.inc'}
SkinWidth=0.96
SkinX=0.021
SkinY=0.85
List=list_game.inc
Space=0
RowSpace=0
Rows=1
ScrollSpeed=0.1
ScrollDivider=8
Transition=5
IconSolid=255,255,255,100
IconTint=0,0,0,155
HighlightColor=0,0,0,80
IconScale=0.7
BannerWidth=(#DisplayWidth#*0.04)
BannerHeight=(#DisplayWidth#*0.04)
Update=15
ClickThrough=0
CoverAspectRatio=2
StaticBackground=0

[Background]
Layout=acrylic.inc
List=list_game.inc
SkinX=0
SkinY=0
SkinWidth=1
SkinHeight=1
DynamicBackground=0
Delay=500
ClickThrough=0
Title=1
TitleX=(#DisplayWidth#*0.35)
TitleY=(#DisplayHeight#*0.8)
FontSize=50
FontColor=255,255,255
Font=Source Sans Pro ExtraLight
CloseButton=1
ImageTint=10,10,10

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

Re: reversing a skin

Post by balala »

ibrakad wrote: January 15th, 2020, 2:27 pm

Code: Select all

[Display1]
Layout=vertical.inc
LoadMeter={'spectrum_meter.inc'}
SkinHeight=0.725
SkinX=0.01
SkinY=0.1
List=list_game.inc
Space=5
ColumnSpace=5
Columns=5
ScrollSpeed=0.1
ScrollDivider=8
Transition=5
IconSolid=255,255,255,100
IconTint=0,0,0,155
HighlightColor=0,0,0,80
IconScale=0.7
BannerWidth=(#DisplayWidth#*0.1945)
BannerHeight=(#DisplayHeight#*0.3600)
Update=15
ClickThrough=0
CoverAspectRatio=2
StaticBackground=0
Keyboard=1
Gamepad=1
LaunchAction=[!CommandMeasure Animation "launch_effect()"]

[Display2]
Layout=horizontal.inc
LoadMeter={'icon_meter.inc'}
SkinWidth=0.96
SkinX=0.021
SkinY=0.85
List=list_game.inc
Space=0
RowSpace=0
Rows=1
ScrollSpeed=0.1
ScrollDivider=8
Transition=5
IconSolid=255,255,255,100
IconTint=0,0,0,155
HighlightColor=0,0,0,80
IconScale=0.7
BannerWidth=(#DisplayWidth#*0.04)
BannerHeight=(#DisplayWidth#*0.04)
Update=15
ClickThrough=0
CoverAspectRatio=2
StaticBackground=0

[Background]
Layout=acrylic.inc
List=list_game.inc
SkinX=0
SkinY=0
SkinWidth=1
SkinHeight=1
DynamicBackground=0
Delay=500
ClickThrough=0
Title=1
TitleX=(#DisplayWidth#*0.35)
TitleY=(#DisplayHeight#*0.8)
FontSize=50
FontColor=255,255,255
Font=Source Sans Pro ExtraLight
CloseButton=1
ImageTint=10,10,10

I have no idea what is this. It doesn't look at all as a Rainmeter layout. A such layout looks something like this:

Code: Select all

[MySkin]
Active=1
WindowX=100.00000%
WindowY=209
AnchorX=R
ClickThrough=0
Draggable=1
SnapEdges=1
KeepOnScreen=1
AlwaysOnTop=0
It has to have a name of the config the skin is included into (in this case [MySkin]), followed by some options like:
  • Active - tells which skin of the config is loaded.
  • WindowX and WindowY - establish the location of the skin on the screen.
  • ClickThrough, Draggable, SnapEdges, KeepOnScreen, AlwaysOnTop and others as well, which specify some settings of the skin.
The code of your layout looks completely different. I don't know what it is, but for sure it is not a Rainmeter layout. The skin which link have you posted, doesn't contain such a layout.
So first question: where have you that layout from?
ibrakad
Posts: 14
Joined: January 15th, 2020, 1:33 pm

Re: reversing a skin

Post by ibrakad »

balala wrote: January 15th, 2020, 4:42 pm I have no idea what is this. It doesn't look at all as a Rainmeter layout. A such layout looks something like this:

Code: Select all

[MySkin]
Active=1
WindowX=100.00000%
WindowY=209
AnchorX=R
ClickThrough=0
Draggable=1
SnapEdges=1
KeepOnScreen=1
AlwaysOnTop=0
yeah i know that , thats why i did not know how to edit this skin coding
balala wrote: January 15th, 2020, 4:42 pm The code of your layout looks completely different. I don't know what it is, but for sure it is not a Rainmeter layout. The skin which link have you posted, doesn't contain such a layout.
So first question: where have you that layout from?
if u download the skin and try to edit one of the layouts the skin creator made you will see its the same as the code of my custom one (i combined 2 of the premade layouts and edited the sizing)
User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: reversing a skin

Post by balala »

ibrakad wrote: January 15th, 2020, 4:56 pm yeah i know that , thats why i did not know how to edit this skin coding
You don't know how to edit the code of a skin? Have I understood well?
You can edit such a code into any text editor program (Notepad or Notepad++ for instance, but others are same well). Just right click a skin and click Edit skin in the context menu. The code opens into the default text editor, letting you to edit it.
ibrakad wrote: January 15th, 2020, 4:56 pm if u download the skin and try to edit one of the layouts the skin creator made you will see its the same as the code of my custom one (i combined 2 of the premade layouts and edited the sizing)
If you're talking about the config.inc files included into most configs (GameHUB 2\Background\config.inc, GameHUB 2\Display1\config.inc and so on), these files are not layouts, but files included into the appropriate skin's code (through the @Include2=config.inc option of the [Variables] section of most .ini files). These config.inc files store a lot of variables, used into the appropriate skins. See that all of them have only one single section named [Variables], which indicates this fact, that those sections are storing variables, used somewhere in the skin. Don't combine these files, doesn't get anything useful. Again, they are no layouts!
The package have no included layouts at all.
ibrakad
Posts: 14
Joined: January 15th, 2020, 1:33 pm

Re: reversing a skin

Post by ibrakad »

balala wrote: January 15th, 2020, 5:17 pm You don't know how to edit the code of a skin? Have I understood well?
i know how to edit a code I meant this skin coding is a bit weird
balala wrote: January 15th, 2020, 5:17 pm The package have no included layouts at all.
if you right click anywhere in the skin u can open the layout file (thats what the creator call it)
Image
Last edited by ibrakad on January 15th, 2020, 6:04 pm, edited 1 time in total.
User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: reversing a skin

Post by balala »

ibrakad wrote: January 15th, 2020, 5:30 pm i know how to edit a code I meant this skin coding is a bit wierd
No, it's not. Me at least don't see anything weird.
ibrakad wrote: January 15th, 2020, 5:30 pm if you right click anywhere in the skin u can open the layout file (thats what the creator call it)
What are you opening if you right click the skin (then click Edit skin) is the code of the skin itself. This operation doesn't open the code of a layout. You may open such a layout trough a right click to Rainmeter's icon in the Notification Area, then a click to Edit settings. This is a layout!
How different authors are naming different things is completely up to them, but this definitely isn't a correct terminology, from the point of view of Rainmeter.
ibrakad
Posts: 14
Joined: January 15th, 2020, 1:33 pm

Re: reversing a skin

Post by ibrakad »

balala wrote: January 15th, 2020, 5:57 pm What are you opening if you right click the skin (then click Edit skin) is the code of the skin itself. This operation doesn't open the code of a layout. You may open such a layout trough a right click to Rainmeter's icon in the Notification Area, then a click to Edit settings. This is a layout!
How different authors are naming different things is completely up to them, but this definitely isn't a correct terminology, from the point of view of Rainmeter.
sry about that i was meaning the skin code when i was saying layout
ibrakad wrote: January 15th, 2020, 2:27 pm this is my custom skin code

Code: Select all

[Display2]
Layout=vertical.inc
LoadMeter={'spectrum_meter.inc'}
SkinHeight=0.725
SkinX=0.01
SkinY=0.1
List=list_game.inc
Space=5
ColumnSpace=5
Columns=5
ScrollSpeed=0.1
ScrollDivider=8
Transition=5
IconSolid=255,255,255,100
IconTint=0,0,0,155
HighlightColor=0,0,0,80
IconScale=0.7
BannerWidth=(#DisplayWidth#*0.1945)
BannerHeight=(#DisplayHeight#*0.3600)
Update=15
ClickThrough=0
CoverAspectRatio=2
StaticBackground=0
Keyboard=1
Gamepad=1
LaunchAction=[!CommandMeasure Animation "launch_effect()"]

[Display1]
Layout=horizontal.inc
LoadMeter={'icon_meter.inc'}
SkinWidth=0.96
SkinX=0.021
SkinY=0.85
List=list_game.inc
Space=0
RowSpace=0
Rows=1
ScrollSpeed=0.1
ScrollDivider=8
Transition=5
IconSolid=255,255,255,100
IconTint=0,0,0,155
HighlightColor=0,0,0,80
IconScale=0.7
BannerWidth=(#DisplayWidth#*0.04)
BannerHeight=(#DisplayWidth#*0.04)
Update=15
ClickThrough=0
CoverAspectRatio=2
StaticBackground=0

[Background]
Layout=acrylic.inc
List=list_game.inc
SkinX=0
SkinY=0
SkinWidth=1
SkinHeight=1
DynamicBackground=0
Delay=500
ClickThrough=0
Title=1
TitleX=(#DisplayWidth#*0.35)
TitleY=(#DisplayHeight#*0.8)
FontSize=50
FontColor=255,255,255
Font=Source Sans Pro ExtraLight
CloseButton=1
ImageTint=10,10,10

anyways
balala wrote: January 15th, 2020, 5:17 pm If you're talking about the config.inc files included into most configs (GameHUB 2\Background\config.inc, GameHUB 2\Display1\config.inc and so on), these files are not layouts, but files included into the appropriate skin's code (through the @Include2=config.inc option of the [Variables] section of most .ini files). These config.inc files store a lot of variables, used into the appropriate skins. See that all of them have only one single section named [Variables], which indicates this fact, that those sections are storing variables, used somewhere in the skin. Don't combine these files, doesn't get anything useful. Again, they are no layouts!
i just saw them , im only interested in GameHUB 2\Display1 its the icon bar in the skin thats the bar i want to reverse
ibrakad wrote: January 15th, 2020, 1:40 pm i want to put the bar in the right side of my screen and when i add somthing it adds to the left and not to the right
(back to the first post on this topic)
again im sorry about the misunderstanding that happend
User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: reversing a skin

Post by balala »

ibrakad wrote: January 15th, 2020, 6:10 pm anyways
Ok, let's return to the original question now.
ibrakad wrote: January 15th, 2020, 6:10 pm i just saw them , im only interested in GameHUB 2\Display1 its the icon bar in the skin thats the bar i want to reverse
I'm not sure I can follow. In the original code there are four icons (Insurgency, ...). You'd like to add further ones? Or what does mean "bar" and what "reverse"?
ibrakad wrote: January 15th, 2020, 6:10 pm again im sorry about the misunderstanding that happend
Don't worry, no problem, it happens many times. Just had to clarify the notions first.