Old 02-01-2018, 05:50 PM   #1
mikeroephonics
Human being with feelings
 
mikeroephonics's Avatar
 
Join Date: Nov 2006
Posts: 2,533
Default Are there generic/dummy UI Elements?

Hi, I'm trying to find a generic or "dummy" UI element which isn't tied to any specific parameter/button such as volume fader, mute button, etc. Essentially an element which can be placed and scaled anywhere in a TCP, MCP, transport or Master Track. I couldn't locate anything in the list:
https://www.reaper.fm/sdk/walter/walter.php#elements

Everything in the list appears to be tied to some parameter. The reason I want a generic one is because I'm trying to place my TCP volume and pan text next to one another, but have a gap between their text. In that gap, I wish to have a background image which connects the volume and pan background images seamlessly. I have a background image for the volume text and another for the pan text:
(tcp_vol_label.png and tcp_pan_label.png, respectively.)

Here they are in use:
https://stash.reaper.fm/theme/2111/for%20forum.PNG

The problem I have is that the co-ordinates for the text and its respective background seem to be tied together. So in the rtconfig.txt, "set tcp.volume.label" defines the co-ordinate for both the volume text as well as its background image (tcp_vol_label.png). Are these always tied together or can their co-ordinates be unlinked?

I want to create the illusion of the volume and pan background images being a single image by using a third image sandwiched in-between their respective backgrounds, like so:
[tcp_vol_label.png] [dummy_image.png] [tcp_pan_label.png]

If a generic/dummy image isn't possible, is there a WALTER trick to create the desired gap between the vol & pan text, but make their respective background images placed next to one another like so?:
[tcp_vol_label.png][tcp_pan_label.png] <-- images are sandwiched together with no gap but their vol and pan text would have a ~10px gap

Thanks!
__________________
Please check out these MIDI requests: http://forum.cockos.com/showthread.php?t=103192
Thanks.

Last edited by mikeroephonics; 02-01-2018 at 07:45 PM.
mikeroephonics is offline   Reply With Quote
Old 02-01-2018, 09:46 PM   #2
cincikat69
Human being with feelings
 
cincikat69's Avatar
 
Join Date: Apr 2012
Location: Cincinnati area...
Posts: 642
Default

No, you can't use any dummy images. They all need to be and are linked to a specific control.

There is a simple way to get the desired effect you are wanting. You can leave one end of each label background image without an edge border, then use the WALTER code to have them meet in the middle, giving the effect that they are one image. Then use the corresponding label text margin parameters to separate the texts and place them where you want.

So, if done correctly, it will appear as one label image with both parameters on the same display.

If you need further assistance, you can email me.
__________________
Theme Website
cincikat69 is offline   Reply With Quote
Old 02-02-2018, 04:52 AM   #3
mikeroephonics
Human being with feelings
 
mikeroephonics's Avatar
 
Join Date: Nov 2006
Posts: 2,533
Default

Thanks a lot! I figured it out after finding the margin info in the WALTER Themer's Guide.
http://www.houseofwhitetie.com/reape...mers_guide.pdf

Page 25:
"For *. margin on text elements, the first four coordinates represent left, top, right, bottom margins, respectively, and the fifth and sixth coordinates are (where supported) the text’s horizontal and vertical text justification. (0=left,0. 5=center,1=right)"

Here's what I've got. Looks nice now.
https://imgur.com/a/7kVYE

Here's the WALTER code to get it there:

For label position/scaling:
set tcp.volume.label h<49 vollabel_row1 w<=229 [0] [164 27 50 14 1 0 1 0]
set tcp.pan.label h<49 panlabel_row1 w<=229 [0] [214 27 40 14 1 0 1 0]

For margins:
set tcp.volume.label.margin [0 0 0 0 .5]
set tcp.pan.label.margin [-2 0 0 0 .5]

The last number above in both lines (.5) centers the volume and pan text, which is what I needed to get the spacing nearly right. The -2 for the pan margin moves the text left 2 pixels. Perfect.

Thanks again!
__________________
Please check out these MIDI requests: http://forum.cockos.com/showthread.php?t=103192
Thanks.
mikeroephonics is offline   Reply With Quote
Old 02-03-2018, 06:44 PM   #4
cincikat69
Human being with feelings
 
cincikat69's Avatar
 
Join Date: Apr 2012
Location: Cincinnati area...
Posts: 642
Default

Happy to help, and glad you got it worked out.
__________________
Theme Website
cincikat69 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 06:42 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.