PDA

View Full Version : Polygons in GUIs


cbk1994
12-07-2007, 12:06 AM
Okay, I have this inside of a GuiScrollCtrl. For some reason it will only show a part of it, and then it won't show any more. See the screenshot.


new GuiShowImgCtrl( "TilesTab_S" )
{
image = "block.png";
polygon = { 0, 0, 300, 0, 300, 100, 0, 100, 0, 0 };

red = 1;
green = 0;
blue = 0;
}


Also, sorry about the screenshot ... The owner of the server doesn't like me to make screenshots.

cbk1994
12-07-2007, 11:08 PM
*cough*

Novo
12-07-2007, 11:40 PM
:: sigh :: The picture is utterly disgusting. You didn't provide any code we could verify... And you supplied minimal information.

My GUESS is... The Scroll-GUI is only 100-100, so the box poly isn't showing beyond the borders of the GUI itself.

Admins
12-08-2007, 01:07 AM
Gui-controls are of size 64x64 by default, that's why it's not showing more. You need to set the width and height of the control.

cbk1994
12-08-2007, 01:38 AM
:: sigh :: The picture is utterly disgusting. You didn't provide any code we could verify... And you supplied minimal information.

My GUESS is... The Scroll-GUI is only 100-100, so the box poly isn't showing beyond the borders of the GUI itself.

I explained the picture, and I did supply code. And information.

I'll try that Stefan.

cbk1994
12-08-2007, 03:48 PM
Gui-controls are of size 64x64 by default, that's why it's not showing more. You need to set the width and height of the control.

For some reason, it worked this time. When I was trying it before it wasn't working at all. Thanks for the help.