Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 08-08-2013, 05:37 AM
baseman101 baseman101 is offline
Scripter
baseman101's Avatar
Join Date: Nov 2012
Location: Purcellville, VA
Posts: 76
baseman101 will become famous soon enough
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?



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;

Reply With Quote
  #2  
Old 08-08-2013, 06:04 AM
Tim_Rocks Tim_Rocks is offline
a true gentlemen
Tim_Rocks's Avatar
Join Date: Aug 2008
Location: USA
Posts: 1,863
Tim_Rocks is a splendid one to beholdTim_Rocks is a splendid one to beholdTim_Rocks is a splendid one to beholdTim_Rocks is a splendid one to beholdTim_Rocks is a splendid one to behold
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
__________________
Reply With Quote
  #3  
Old 08-08-2013, 06:10 AM
baseman101 baseman101 is offline
Scripter
baseman101's Avatar
Join Date: Nov 2012
Location: Purcellville, VA
Posts: 76
baseman101 will become famous soon enough
Quote:
Originally Posted by Tim_Rocks View Post
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.
Reply With Quote
  #4  
Old 08-08-2013, 08:32 AM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
Yes use offsetx and offsety. If nothing else helps you can also use cliptobounds = false; but that will bug in external windows.
Reply With Quote
  #5  
Old 08-08-2013, 11:44 AM
Cubical Cubical is offline
Banned
Join Date: Feb 2007
Posts: 1,348
Cubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant future
Quote:
Originally Posted by Tim_Rocks View Post
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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 07:25 PM.


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