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-17-2006, 04:09 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Checking image width/height

I'm making a Q Menu, which works, except I'd like to have all icons centered if they're less than 32 x 32.
What's the variable called for imgwidth and imgheight. Several things i tried where:
i = findImg(200);
player.chat = i.imgwidth SPC i.width; // And that returned 0 0 in player.chat

Any help is much appreciated. Thanks.
Chris
__________________
Reply With Quote
  #2  
Old 08-17-2006, 07:49 PM
contiga contiga is offline
Graal2001 Administration
contiga's Avatar
Join Date: Jul 2004
Location: Netherlands
Posts: 419
contiga is an unknown quantity at this point
Send a message via ICQ to contiga Send a message via AIM to contiga Send a message via MSN to contiga Send a message via Yahoo to contiga
Quote:
Originally Posted by cbkbud
I'm making a Q Menu, which works, except I'd like to have all icons centered if they're less than 32 x 32.
What's the variable called for imgwidth and imgheight. Several things i tried where:
i = findImg(200);
player.chat = i.imgwidth SPC i.width; // And that returned 0 0 in player.chat

Any help is much appreciated. Thanks.
Chris
PHP Code:
findImg200);
i.image "something.png";
temp.img_w getimgwidthi.image);
temp.img_h getimgheighti.image); 
__________________
AIM: Contiga122
MSN: [email protected]
Status:
Quote:
Originally Posted by unixmad View Post
I am also awake 3AM to help correct problems.
Quote:
Originally Posted by Bomy Island RC people
Daniel: HoudiniMan is a bad guy =p
*Bell: rofl. I first read that as houdini is a bad man. like the little kid that wants his mommy to keep her away from that boogie man
Daniel: xD
*Rufus: I wouldn't want my kids around him.
Reply With Quote
  #3  
Old 08-18-2006, 12:46 AM
Omini Omini is offline
Millenium Owner
Join Date: Feb 2006
Location: N.Ireland
Posts: 293
Omini is on a distinguished road
Send a message via AIM to Omini Send a message via MSN to Omini Send a message via Yahoo to Omini
If you're using a GuiShowImgCtrl("Name") then it's Name.width and Name.height... has to come after that GuiShowImgCtrl though.
__________________



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 09:06 AM.


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