It is currently April 19th, 2019, 7:21 pm

background image scaling

Help with creating, editing & fixing problems with skins
Pul53dr1v3r
Posts: 144
Joined: July 30th, 2014, 10:30 am

Re: background image scaling

Pul53dr1v3r » April 12th, 2019, 7:00 pm

As to the mentioned full version of the skin:

Seems i can't get the bg works properly not using previously mentioned method (making a shape meter for evry CPU Core number). Pls help (anyone).
I adapted some parts of the code according to those from the previous skin. Adapted only for 4 cores.

It seems very very hard to make the bg fits its size according to the CPU Cores number + to shows the Graphs below all that.
Last edited by Pul53dr1v3r on April 15th, 2019, 7:30 pm, edited 1 time in total.
User avatar
balala
Rainmeter Sage
Posts: 8079
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: background image scaling

balala » April 15th, 2019, 6:03 pm

Attached you have a new, at least partially rewritten code. Please try it out and let me know what do you think about it. I post only the TEST\CPU-RAM\CPU-RAM.ini file, the resources are not changed.
Note one single problem: there is no way to dynamically set the size of the skin (the SkinWidth and especially the SkinHeight options of the [Rainmeter] section), since this section doesn't support dynamic variables or dynamically set options. But the height of the skin should have to be set according to the number of cores, which is returned by the [MeasureRun] measure, after it is ran. So, I finally ended up setting a generic height of the skin, which is accordingly to the scaling and the value of the SkinState variable (none of these aren't set dynamically). In most cases this cause a too great height, but there is nothing to be done with this (or me at least couldn't find a good solution).
You do not have the required permissions to view the files attached to this post.
Pul53dr1v3r
Posts: 144
Joined: July 30th, 2014, 10:30 am

Re: background image scaling

Pul53dr1v3r » April 15th, 2019, 7:51 pm

balala wrote:
April 15th, 2019, 6:03 pm
Attached you have a new, at least partially rewritten code. Please try it out and let me know what do you think about it. I post only the TEST\CPU-RAM\CPU-RAM.ini file, the resources are not changed.
Note one single problem: there is no way to dynamically set the size of the skin (the SkinWidth and especially the SkinHeight options of the [Rainmeter] section), since this section doesn't support dynamic variables or dynamically set options. But the height of the skin should have to be set according to the number of cores, which is returned by the [MeasureRun] measure, after it is ran. So, I finally ended up setting a generic height of the skin, which is accordingly to the scaling and the value of the SkinState variable (none of these aren't set dynamically). In most cases this cause a too great height, but there is nothing to be done with this (or me at least couldn't find a good solution).
Apart from the issue with the SkinHeight where i have to decrease the value accroding to the number of the cores manually in order to move the skin vertically, expecially when scaled up, everything else looks fantastic until now!
Even though the issue is a bit annoying... Are you quite sure nothing as to it can be done, to save myself of trying?
User avatar
balala
Rainmeter Sage
Posts: 8079
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: background image scaling

balala » April 15th, 2019, 8:04 pm

Pul53dr1v3r wrote:
April 15th, 2019, 7:51 pm
Are you quite sure nothing as to it can be done, to save myself of trying?
Unfortunately I don't see a way to do it, because as I said the [Rainmeter] section doesn't support dynamical changes (first Note here) (which would be required when using the value returned by the [MeasureRun] measure, this being a section variable, requiring dynamic variables). Sorry... :confused:
Pul53dr1v3r
Posts: 144
Joined: July 30th, 2014, 10:30 am

Re: background image scaling

Pul53dr1v3r » April 15th, 2019, 8:18 pm

balala wrote:
April 15th, 2019, 8:04 pm
Unfortunately I don't see a way to do it, because as I said the [Rainmeter] section doesn't support dynamical changes (first Note here) (which would be required when using the value returned by the [MeasureRun] measure, this being a section variable, requiring dynamic variables). Sorry... :confused:
Nvm. Much more important thing has been done. :thumbup: :bow:
User avatar
balala
Rainmeter Sage
Posts: 8079
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: background image scaling

balala » April 15th, 2019, 8:26 pm

Pul53dr1v3r wrote:
April 15th, 2019, 8:18 pm
Much more important thing has been done.
I'm glad if you think so.
User avatar
balala
Rainmeter Sage
Posts: 8079
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: background image scaling

balala » Today, 1:54 pm

Have you seen ikarus1969's reply? Probably a very good idea.