Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   GuiShowImgCtrl Cutting Off (https://forums.graalonline.com/forums/showthread.php?t=134268597)

baseman101 08-08-2013 05:37 AM

GuiShowImgCtrl Cutting Off
 
Hello,

I have an issue with a GuiShowImgCtrl cutting off. I'm attempting to script a GUI profile script for a server, but resizing the actor just adds the issue of it cutting off. I have tried GuiBitmapCtrl like another post suggested, but that doesn't support actors (I don't believe). Is there a way to achieve setting the height and width efficiently?

http://puu.sh/3WD9U.png

PHP Code:

new GuiShowImgCtrl("Profile_Char") {
  
235;
  
100;
  
playerlook false;
  
actor.head temp.char[0];
  
actor.attr[1] = temp.char[1];
  
actor.body temp.char[2];
  
actor.shield temp.char[3];
  
actor.colors[0] = temp.char[4];
  
actor.colors[1] = temp.char[5];
  
actor.colors[2] = temp.char[6];
  
actor.colors[3] = temp.char[7];
  
actor.colors[4] = temp.char[8];
  
ani "idle";
  
stretchx 1.5;
  
stretchy 1.5;
  
width 200;
  
height 50;



Tim_Rocks 08-08-2013 06:04 AM

I believe what you're looking for is this.offsety += 5; I had this issue once and I think that's how I fixed it. In 41 more days I'll be able to confirm this ;)

Also, you can look here for more guidance.
GuiShowImgCtrl

baseman101 08-08-2013 06:10 AM

Quote:

Originally Posted by Tim_Rocks (Post 1721569)
I believe what you're looking for is this.offsety += 5; I had this issue once and I think that's how I fixed it. In 41 more days I'll be able to confirm this ;)

Also, you can look here for more guidance.
GuiShowImgCtrl

Thank you! This has worked. I did not realize that was there.

Admins 08-08-2013 08:32 AM

Yes use offsetx and offsety. If nothing else helps you can also use cliptobounds = false; but that will bug in external windows.

Cubical 08-08-2013 11:44 AM

Quote:

Originally Posted by Tim_Rocks (Post 1721569)
I believe what you're looking for is this.offsety += 5; I had this issue once and I think that's how I fixed it. In 41 more days I'll be able to confirm this ;)

Also, you can look here for more guidance.
GuiShowImgCtrl

You don't actually need this. in this situation since he is already within the scope of the object. I constantly see people do that for some reason.



Also this is more personal preference but i usually store it as an array in
PHP Code:

offset = { 3}; 

You can also store the x,y as
PHP Code:

position = { 1010 }; 

and width, height as
PHP Code:

 extent = { 4090 }; 

Alternatively you can do offset = "3 3"; but it's not a string so I don't do that.


All times are GMT +2. The time now is 05:07 AM.

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