Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Polygons in GUIs (https://forums.graalonline.com/forums/showthread.php?t=77849)

cbk1994 12-07-2007 12:06 AM

Polygons in GUIs
 
1 Attachment(s)
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.

PHP Code:

new GuiShowImgCtrl"TilesTab_S" )
    {
      
image "block.png";
      
polygon = { 00300030010001000};
      
      
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

Quote:

Originally Posted by Novo (Post 1362644)
:: 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

Quote:

Originally Posted by Stefan (Post 1362654)
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.


All times are GMT +2. The time now is 10:47 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.