by drjboulder » Mon Apr 14, 2008 1:44 am
rovingcowboy wrote:
but you cant have the custom two load on the same line under the custom one, you have custom1 starting at 396. and going for 300 pixels long. and you have custom2 starting at 394 and going for 310 pixels long your covering up your custom1 line. it wont work.
you only need a few pixels if you want that type of thing.
Thats why I said this:
drjboulder wrote:what I have good enough.

This is what I ended up using (
tho, it seems like bad code to me 
):
rovingcowboy wrote:
just make the size=15,13 for each of the custom sections.
then place the custom2 at pixel 406
and make the code for both of them in resize =0,0,1,1 they should both resize with the right of the player but the left side of the text line should stay with that pixel that it was told to start at. if the pixel that starts the stretching part of the skin is at a location to the left of the custom sections starting pixel
when you do that if one stretches on top of the other one, just change the location for the starting pixel to the section that is on the right which would be the one that starts at 406. just move it to 415 and check the skin again, if all is fine then you got that in the right location to start with.
now go back and change the other's size to fill in the extra 9 pixels and give it a longer view area when the skin is shrunk to the small size.
i've seen your image and according to the text you have in the ini file the time counter is at location 320. it is also 64 pixels long. which would be stopping at 384. you have your custom2 starting in 394. so some place between 320 and 394 is where the skin splits and stretchs.
if you want the custom2 to stay on the left you need to move it back wards from 394 a few pixels at a time to 384 and see if it stops sliding when you stretch the skin.
if not then make the clock a little smaller, and move the custom2 over some more, do that until you find the place the custom2 section stops sliding. it is sliding because it is pinned to a pixel that is on the moving part of the skins background.
Once I feel up to working on this some more, I will try to wrap my brain around that. For now, bad code and all, I have what I was initially looking for. It is just not perfect.
rovingcowboy wrote:
here i changed the code to the numbers i said.
use it and see if the sections stay where they are and stretch to what you want.
if they do then you just have to change the stuff size of the text areas, and then the location again of the one on the right which is custom1
if the custom2 still slides to the right you need to do that backwards moving thing to find where to pin it.
Code: Select all
[Custom1]
Type=Text
Resizable=0,0,1,1
Pos=406,5
Size=15,13
Transperent=1
TextMask=%C4
TextAlign=-1
FontColor=4C5049
FontHeight=-9
FontName=Verdana
[Custom2]
Type=Text
Resizable=0,0,1,1
Pos=385,5
Size=15,13
Transperent=1
TextMask=%A - %S
TextAlign=0
FontColor=4C5049
FontHeight=-9
FontName=Verdana
[TimeDisplay]
Type=Text
Resizable=1,1,0,0
Pos=320,5
Size=64,13
TextAlign=1
Transperent=1
TextMask=%H/%I
SmallDigits=0
FontColor=4C5049
FontHeight=-9
FontName=Verdana
Using those positions.... Artist/Title disappeared and comment was reduced to a 15 pixel scroll box:

Like I said, what I have now is workable.
Once I give my brain a rest, I will pick it up again.
Thanks for your interest and responses.
[quote="rovingcowboy"]
but you cant have the custom two load on the same line under the custom one, you have custom1 starting at 396. and going for 300 pixels long. and you have custom2 starting at 394 and going for 310 pixels long your covering up your custom1 line. it wont work.
you only need a few pixels if you want that type of thing.[/quote]
Thats why I said this:
[quote="drjboulder"]what I have good enough.
[url=http://img384.imageshack.us/my.php?image=customslim6xu9.jpg][img]http://img384.imageshack.us/img384/4163/customslim6xu9.th.jpg[/img][/url]
This is what I ended up using ([b]tho, it seems like bad code to me[/b] :-? ):
[/quote]
[quote="rovingcowboy"]
just make the size=15,13 for each of the custom sections.
then place the custom2 at pixel 406
and make the code for both of them in resize =0,0,1,1 they should both resize with the right of the player but the left side of the text line should stay with that pixel that it was told to start at. if the pixel that starts the stretching part of the skin is at a location to the left of the custom sections starting pixel
when you do that if one stretches on top of the other one, just change the location for the starting pixel to the section that is on the right which would be the one that starts at 406. just move it to 415 and check the skin again, if all is fine then you got that in the right location to start with.
now go back and change the other's size to fill in the extra 9 pixels and give it a longer view area when the skin is shrunk to the small size.
i've seen your image and according to the text you have in the ini file the time counter is at location 320. it is also 64 pixels long. which would be stopping at 384. you have your custom2 starting in 394. so some place between 320 and 394 is where the skin splits and stretchs.
if you want the custom2 to stay on the left you need to move it back wards from 394 a few pixels at a time to 384 and see if it stops sliding when you stretch the skin.
if not then make the clock a little smaller, and move the custom2 over some more, do that until you find the place the custom2 section stops sliding. it is sliding because it is pinned to a pixel that is on the moving part of the skins background.[/quote]
Once I feel up to working on this some more, I will try to wrap my brain around that. For now, bad code and all, I have what I was initially looking for. It is just not perfect.
[quote="rovingcowboy"]
here i changed the code to the numbers i said.
use it and see if the sections stay where they are and stretch to what you want.
if they do then you just have to change the stuff size of the text areas, and then the location again of the one on the right which is custom1
if the custom2 still slides to the right you need to do that backwards moving thing to find where to pin it.
[code]
[Custom1]
Type=Text
Resizable=0,0,1,1
Pos=406,5
Size=15,13
Transperent=1
TextMask=%C4
TextAlign=-1
FontColor=4C5049
FontHeight=-9
FontName=Verdana
[Custom2]
Type=Text
Resizable=0,0,1,1
Pos=385,5
Size=15,13
Transperent=1
TextMask=%A - %S
TextAlign=0
FontColor=4C5049
FontHeight=-9
FontName=Verdana
[TimeDisplay]
Type=Text
Resizable=1,1,0,0
Pos=320,5
Size=64,13
TextAlign=1
Transperent=1
TextMask=%H/%I
SmallDigits=0
FontColor=4C5049
FontHeight=-9
FontName=Verdana
[/code]
[/quote]
Using those positions.... Artist/Title disappeared and comment was reduced to a 15 pixel scroll box:
[url=http://img385.imageshack.us/my.php?image=customslim7gm9.jpg][img]http://img385.imageshack.us/img385/4431/customslim7gm9.th.jpg[/img][/url]
Like I said, what I have now is workable.
Once I give my brain a rest, I will pick it up again.
Thanks for your interest and responses.