It is currently March 29th, 2024, 9:32 am

Skin expand/collaps to left

Get help with creating, editing & fixing problems with skins
User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Skin expand/collaps to left

Post by balala »

dvo wrote: October 17th, 2019, 4:42 pm could you make on on the right to ?
You mean you'd like to slide the skins from right? Have I understood well?
User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Skin expand/collaps to left

Post by balala »

dvo wrote: October 17th, 2019, 6:12 pm i'm always working from the right so want him to slide from the right side opening to the left .... :Whistle
OK, probably possible, but not now. Later, in best case, if you don't mind, or tomorrow.
User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Skin expand/collaps right

Post by balala »

dvo wrote: October 18th, 2019, 5:51 am
This is the code sliding from the right :lol: :rofl: :rolmfao: :oops:
Unfortunately I don't have the skins of All\Time, All\Weather and All\Player configs, but if it does work, it's ok, I suppose.
dvo wrote: October 18th, 2019, 5:51 am
works for 1 monitor otherwise it slides to the second screen :
Containers could be used to avoid this.
User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Skin expand/collaps to left

Post by balala »

dvo wrote: October 18th, 2019, 5:45 pm you can put anything in it .... that's what i have done just keep the skin witdh the same otherwise he will get buggy like yours... :welcome:
i altered my skins for it :P :D
Ok, I did. But what I'd modify in your code is the width of the screen, into the !Move bangs of the OnChangeAction option of the [MeasureSkinsPosition] measure. Instead of 1920 (which is the width of your screen), I'd use the #SCREENAREAWIDTH# variable, because if you're using 1920, the skin will work properly only on computers with the same screen width, but using the variable ensures it works properly on every machine. On every one this variable gets the proper value and the skin does work with no problems.
So, I'd modify the mentioned option as it follows:

Code: Select all

[MeasureSkinsPosition]
...
OnChangeAction=[!Move "(#X#+#SCREENAREAWIDTH#)" "#Y1stConfig#" "#My1stConfig#"][!Move "(#X#+#SCREENAREAWIDTH#)" "#Y2ndConfig#" "#My2ndConfig#"][!Move "(#X#+#SCREENAREAWIDTH#)" "#Y3rdConfig#" "#My3rdConfig#"]
...
As you probably know, not every computer has a screen with the same resolution and the skin should be written in a way to can be used by everyone.
User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Skin expand/collaps to left

Post by balala »

Yep, small but important details, I think. :great: