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 12-16-2012, 09:04 PM
sssssssssss sssssssssss is offline
Cyril Rain
sssssssssss's Avatar
Join Date: May 2003
Location: Texas, USA
Posts: 1,134
sssssssssss will become famous soon enough
Gui Image Cut Off

I'm showing a gui image, and it's a player head. Using partx, y, ect, and zoom cuts it out. If I keep the zoom at 1 it's fine of coarse, but even expanding the width double on zoom = 2 cuts out the image and it seems partx doesn't matter anymore. Heres the code for the image

PHP Code:
new GuiShowImgCtrl("Dialog_Head"
  { 
    
this.screenheight 3;
    
this.50;
    
    
image temp.headNPC;
    
partx 0;
    
party 64;
    
partw 32;
    
parth 32;
    
    
width 64;
    
height 64;
      
    
layer 7;
    
zoom 2;
    
alpha 0;
  } 
the head image is passed as the full .png image for a head. Like I said it's fine on zoom = 1, but cuts like the x isn't 0 anymore on partx when zoom is 2. No idea why it's doing that.

Also tried this outside of the gui control and it doesn't work either...
PHP Code:
Dialog_Head.zoom 2
__________________
Cyril Rain
Creator and leader of SLX
Admin of Elysium
Elysium's Facebook Page: http://facebook.com/GraalOnlineElysium
Graal Forum Thread: http://forums.graalonline.com...
Graalians Thread: http://www.graalians.com...


Reply With Quote
  #2  
Old 12-16-2012, 09:08 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
In general I would use GuiBitmapCtrl instead of GuiShowImgCtrl when I need to stretch an image. I've not had good results with zoom in the past.
__________________
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 12:07 AM.


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