Connexion rapide:  

Forum: VirtualDJ Skins

Sujet dx="" seems not to work on right-aligned text.
Hi!

I have got some buttons in my skin which have their text aligned to the right.
If I want to move the text a bit further away from the right edge I use for example dx="-5" in the <text> attribute.
The whole button looks like this:

<button action="key_move +1" deck="left">
<pos x="+193" y="+280"/>
<size width="90" height="50"/>
<text dx="-5" font="arial" weight="bold" color="gray" size="30" align="right" action="get_key +1"/>
</button>

The text however stays on the right edge.
It does not move away from the edge by 5px towards the left side, wether by using dx="-5" or dx="+5".
If I try this the other way around (aligned to the left with dx="+5") it works fine.
dy="+/- something" also works fine.
But right-aligned with any value inside "dx" does not work.
 

Posté Sat 05 Mar 22 @ 12:06 pm
locodogPRO InfinityModeratorMember since 2013
mevermind, I was mistaken
 

Posté Sat 05 Mar 22 @ 12:12 pm
Just change the size of the text then:

<button action="key_move +1" deck="left">
<pos x="+193" y="+280"/>
<size width="90" height="50"/>
<text width="90-5" font="arial" weight="bold" color="gray" size="30" align="right" action="get_key +1"/>
</button>
 

Posté Tue 08 Mar 22 @ 9:08 am
PhantomDeejay wrote :
Just change the size of the text then:

<button action="key_move +1" deck="left">
<pos x="+193" y="+280"/>
<size width="90" height="50"/>
<text width="90-5" font="arial" weight="bold" color="gray" size="30" align="right" action="get_key +1"/>
</button>


Done it. Works!
Thank you!
 

Posté Fri 11 Mar 22 @ 8:30 pm