|
|
|
02-28-2020, 08:18 PM
|
#1
|
Human being with feelings
Join Date: Feb 2012
Location: Sweden
Posts: 1,206
|
Theme, how make sub-layouts ignore PNGs for coded color values?
I got my nose buried in the rtconfig file right now, making a TCP layout I call 'separator'. I'll use it on empty TCP tracks so create spacings and compartmentalization in the tracklist.
I got a problem though. In my theme, I'm using PNGs as colouration for TCP tracks in general - tcp_bg.png, tcp.namebg.png etc.
So when I put into the rtconfig file that the TCP layout 'Separator' should use a different bg panel colour than the standard TCP colour (which uses PNG image for colour) then Reaper doesn't obey it. Seems the PNG colour overrides (overlays?) colour parameters in the rtconfig code. Seems it does so for all TCP styles, even if I used " clear tcp.* " or " reset tcp.* " in the code for the 'Separator' style.
Is there some way, or code, or method, to make a certain TCP Layout styles ignore these PNG images, and just use coded directions for colour, size etc?
I feel I need to make the 'separator' tracks much more different in appearance, than normal ones, but I still need to keep the original PNGs since they are central to my theme.
Thanx for any suggestions
__________________
There are only two kinds of people in the world: those who entertain, and those who are absurd.
- Britney Spears
Last edited by Colox; 02-28-2020 at 08:28 PM.
|
|
|
02-29-2020, 06:54 AM
|
#2
|
Human being with feelings
Join Date: Apr 2018
Posts: 270
|
Do you have a separate folder for the png files for the separator layout?
|
|
|
02-29-2020, 10:08 AM
|
#3
|
Pixel Pusher
Join Date: Mar 2007
Location: Blighty
Posts: 4,950
|
Quote:
Originally Posted by Colox
Seems the PNG colour overrides (overlays?) colour parameters in the rtconfig code. Seems it does so for all TCP styles, even if I used " clear tcp.* " or " reset tcp.* " in the code for the 'Separator' style.
Is there some way, or code, or method, to make a certain TCP Layout styles ignore these PNG images, and just use coded directions for colour, size etc?
|
clear tcp.* and reset tcp.* only affect WALTER code.
Any layout (other than the root layout, obviously) inherits all the images of its parent layout. If you provide a different image in the layout's image folder, it will use that instead. If you want the appearance of 'no image' in a sub-layout, provide an image that is just a tiny png of nothing but full transparency, with the appropriate name.
|
|
|
02-29-2020, 10:23 AM
|
#4
|
Human being with feelings
Join Date: Feb 2012
Location: Sweden
Posts: 1,206
|
Quote:
Originally Posted by White Tie
If you provide a different image in the layout's image folder, it will use that instead.
|
Quote:
Originally Posted by emwhy
Do you have a separate folder for the png files for the separator layout?
|
Thanx guys.
So aha, no I wasn't using a separate folder or separate PNG. Just one folder for everything. Sounds like a separate folder (and/or png) could be a practical solution. I just haven't crossed path with this need before, for anything in my theme, until now.
But then, I don't know off the top of my head how to make individual theme elements - or an entire sub-layout - read from an alternate folder or image file (?)
Currently, the connection between my custom images and the Reaper elements that the images are supposed to affect, is made by simply naming the image file to the element you wish it to apply to. Like "tcp_bg.png".
And just to avoid any potential misunderstanding, this is a "sub-layout" to me:
Code:
; regular tcp parameter definitions here, with no "Layout" parameter defined
set tcp.size [40 30 20 10]
; --------------------------------------
; below is a Sublayout:
Layout "Sub-layout"
set tcp.size [10 20 30 40] ; different size than default tcp size
EndLayout ;
__________________
There are only two kinds of people in the world: those who entertain, and those who are absurd.
- Britney Spears
Last edited by Colox; 02-29-2020 at 10:46 AM.
|
|
|
02-29-2020, 10:29 AM
|
#5
|
Pixel Pusher
Join Date: Mar 2007
Location: Blighty
Posts: 4,950
|
It can only be the entire sub-layout.
From the sdk: "The Layout command can take one or two parameters -- the first parameter defines the name of that layout, and the optional second parameter defines the theme image subdirectory to use for that layout. "
|
|
|
02-29-2020, 01:36 PM
|
#6
|
Human being with feelings
Join Date: Feb 2012
Location: Sweden
Posts: 1,206
|
That did it. Got it working as intended, and I learned something valuable for greater flexibility
Thanx guys!
__________________
There are only two kinds of people in the world: those who entertain, and those who are absurd.
- Britney Spears
|
|
|
Thread Tools |
|
Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -7. The time now is 01:09 AM.
|