I recently made a thread about issues with the winpanel clipping. I solved it, but then ran into another, more confusing problem.
Here's the gist of it: in the winpanel, I would like 2 lines. One blue and one red. The blu going from xpos 0 to halfway across the screen (xpos ~395) and red from there to the other side. I am declaring the lines within winpanel.res, one above the other. The issue is that whichever line is declare first shows up while the other doesn't.
Here's the code:
"BlueLine"
{
"ControlName" "ImagePanel"
"fieldName" "BlueLine"
"xpos" "0"
"ypos" "295"
"zpos" "2"
"wide" "395"
"tall" "5"
"autoResize" "0"
"pinCorner" "0"
"tabPosition" "0"
"visible" "1"
"enabled" "1"
"fillcolor" "67 98 120 255"
"PaintBackgroundType "0"
}
"RedLine"
{
"ControlName" "ImagePanel"
"fieldName" "RedLine"
"xpos" "0"
"ypos" "10"
"zpos" "2"
"wide" "100"
"tall" "5"
"autoResize" "0"
"pinCorner" "0"
"tabPosition" "0"
"visible" "1"
"enabled" "1"
"fillcolor" "135 45 47 255"
"PaintBackgroundType "0"
}
Like that, the blue line shows and the red doesn't, even though I set it to a completely different ypos. If I put red above blue, then the red shows (in its defined location) and the blue one does not.
Here's a picture:
http://puu.sh/6Fb3b
It's an older photo, so it has the red line on the left instead of right, and it doesn't really show the issue that well, but as you can see, the blue line doesn't show up.
I recently made a thread about issues with the winpanel clipping. I solved it, but then ran into another, more confusing problem.
Here's the gist of it: in the winpanel, I would like 2 lines. One blue and one red. The blu going from xpos 0 to halfway across the screen (xpos ~395) and red from there to the other side. I am declaring the lines within winpanel.res, one above the other. The issue is that whichever line is declare first shows up while the other doesn't.
Here's the code:
[code] "BlueLine"
{
"ControlName" "ImagePanel"
"fieldName" "BlueLine"
"xpos" "0"
"ypos" "295"
"zpos" "2"
"wide" "395"
"tall" "5"
"autoResize" "0"
"pinCorner" "0"
"tabPosition" "0"
"visible" "1"
"enabled" "1"
"fillcolor" "67 98 120 255"
"PaintBackgroundType "0"
}
"RedLine"
{
"ControlName" "ImagePanel"
"fieldName" "RedLine"
"xpos" "0"
"ypos" "10"
"zpos" "2"
"wide" "100"
"tall" "5"
"autoResize" "0"
"pinCorner" "0"
"tabPosition" "0"
"visible" "1"
"enabled" "1"
"fillcolor" "135 45 47 255"
"PaintBackgroundType "0"
}[/code]
Like that, the blue line shows and the red doesn't, even though I set it to a completely different ypos. If I put red above blue, then the red shows (in its defined location) and the blue one does not.
Here's a picture:
[img]http://puu.sh/6Fb3b[/img]
It's an older photo, so it has the red line on the left instead of right, and it doesn't really show the issue that well, but as you can see, the blue line doesn't show up.
try removing this ->"PaintBackgroundType "0"
try removing this ->"PaintBackgroundType "0"
This'll sort your problem out, provided I've understood exactly what you're after.
"BlueLine"
{
"ControlName" "ImagePanel"
"fieldName" "BlueLine"
"xpos" "c-500"
"ypos" "295"
"zpos" "2"
"wide" "500"
"tall" "5"
"autoResize" "0"
"pinCorner" "0"
"tabPosition" "0"
"visible" "1"
"enabled" "1"
"fillcolor" "67 98 120 255"
"PaintBackgroundType "0"
}
"RedLine"
{
"ControlName" "ImagePanel"
"fieldName" "RedLine"
"xpos" "c0"
"ypos" "10"
"zpos" "2"
"wide" "500"
"tall" "5"
"autoResize" "0"
"pinCorner" "0"
"tabPosition" "0"
"visible" "1"
"enabled" "1"
"fillcolor" "135 45 47 255"
"PaintBackgroundType "0"
}
I'm also confused by your ypos positioning look at this, but then again I don't know what you're after exactly. I assume something like this:
----------------------------------------
If so that's what my xpos positioning in the code above will do. If you're after something else let me know.
This'll sort your problem out, provided I've understood exactly what you're after.
[code]"BlueLine"
{
"ControlName" "ImagePanel"
"fieldName" "BlueLine"
"xpos" "c-500"
"ypos" "295"
"zpos" "2"
"wide" "500"
"tall" "5"
"autoResize" "0"
"pinCorner" "0"
"tabPosition" "0"
"visible" "1"
"enabled" "1"
"fillcolor" "67 98 120 255"
"PaintBackgroundType "0"
}
"RedLine"
{
"ControlName" "ImagePanel"
"fieldName" "RedLine"
"xpos" "c0"
"ypos" "10"
"zpos" "2"
"wide" "500"
"tall" "5"
"autoResize" "0"
"pinCorner" "0"
"tabPosition" "0"
"visible" "1"
"enabled" "1"
"fillcolor" "135 45 47 255"
"PaintBackgroundType "0"
}[/code]
I'm also confused by your ypos positioning look at this, but then again I don't know what you're after exactly. I assume something like this:
[color=blue]--------------------[/color][color=red]--------------------[/color]
If so that's what my xpos positioning in the code above will do. If you're after something else let me know.
omniThis'll sort your problem out, provided I've understood exactly what you're after.
<code>
I'm also confused by your ypos positioning look at this, but then again I don't know what you're after exactly. I assume something like this:
----------------------------------------
If so that's what my xpos positioning in the code above will do. If you're after something else let me know.
I will try this out. And as for the ypos values, they were different because I was testing them. I figured that maybe putting on the same ypos was making them clip so I was just moving them around.
[quote=omni]This'll sort your problem out, provided I've understood exactly what you're after.
<code>
I'm also confused by your ypos positioning look at this, but then again I don't know what you're after exactly. I assume something like this:
[color=blue]--------------------[/color][color=red]--------------------[/color]
If so that's what my xpos positioning in the code above will do. If you're after something else let me know.[/quote]
I will try this out. And as for the ypos values, they were different because I was testing them. I figured that maybe putting on the same ypos was making them clip so I was just moving them around.
OK, update: Thank you Rawr and omni. Rawr, removing PaintBackgroundType "0" is what fixed the problem. And omni, thank you for letting me easily copy the code to get them to center so that I didn't have to spend time fiddling.
OK, update: Thank you Rawr and omni. Rawr, removing PaintBackgroundType "0" is what fixed the problem. And omni, thank you for letting me easily copy the code to get them to center so that I didn't have to spend time fiddling.