Support and General Use > Theming and Appearance Customization

Any possibility for conditional %Cl?

<< < (5/5)

Bilgus:
You missed the final %Cd adding that mkes the second one work
but its not wanting to draw into Viewport 'c'

I'll keep working with it till I get it or give up..

I really want the %VB thing to work might have to do some extra processing to get there

this works but IDK if is actually going into 'c'


--- Code: ---#%?mp<|%Cl(0,0,160,160,b,r)%VB%Cd|%Cl(0,0,140,140,c,c)%VB%Cd||>
%?mp<|%Vl(c,0,0,-,-,-)%Cl(0,0,170,170)%Cd|%Cl(0,0,140,140)%Cd||>

%?C<%Vd(c)|>

--- End code ---

RetiredTeacherGuy:

--- Quote from: Bilgus on February 05, 2025, 11:25:24 AM ---You missed the final %Cd adding that mkes the second one work
but its not wanting to draw into Viewport 'c'

I'll keep working with it till I get it or give up..

I really want the %VB thing to work might have to do some extra processing to get there

this works but IDK if is actually going into 'c'


--- Code: ---#%?mp<|%Cl(0,0,160,160,b,r)%VB%Cd|%Cl(0,0,140,140,c,c)%VB%Cd||>
%?mp<|%Vl(c,0,0,-,-,-)%Cl(0,0,170,170)%Cd|%Cl(0,0,140,140)%Cd||>

%?C<%Vd(c)|>

--- End code ---

--- End quote ---


Even with the second %Cd that I had forgotten, I still do not get two different sized (not cropped, but actually proportionally sized) images. Do you?

RetiredTeacherGuy:
I wanted to be absolutely sure, so I stripped down the wps file. This is all that it contains:



--- Code: --- #------------ Background Layer ------------#
%wd
%V(0,0,-,-,-)%VB
%?mp<|%Vl(c,0,0,-,-,-)%Cl(0,0,170,170)%Cd|%Cl(100,100,80,80)%Cd||>
%?C<%Vd(c)|>


#------------ Foreground Layer ------------#
%V(0,0,-,-,-)

--- End code ---


What I get when I press play is the 80 x 80 but it is a cropped version of the 170 x 170, placed at location 100,100. Pressing pause has no effect.

Bilgus:
Yeah thats pretty much what I've got in the file to test with too

I'll probably mull on this a while there are a few things playing against us here

one is the way album art is displayed and its due to the all or nothing nature
of the skin engine, it doesn't have garbage collection it has free it all and start over.
So you can't really allocate anything ahead of time (and why would you every track skip could be different)
thats why it gets farmed out and works different I think.

Next part is the background drawing, I really want that because of themes that draw text over the bg would get wiped out
but that is another can of worms because it doesn't take into account viewports and therefore its drawn all or nothing
and you need to do a full refresh (well a fuller refresh I guess I had to force it by changing flags)
because it really tires TRIES to never redraw the background layer

So IDK give me a while I'll post something if and when I get something that seems promising
otherwise I may just give it up and come back to it later (like after next release)
 

RetiredTeacherGuy:
Understood, thanks for your efforts Bilgus I really appreciate it

Navigation

[0] Message Index

[*] Previous page

Go to full version