Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Gui Image Cut Off (https://forums.graalonline.com/forums/showthread.php?t=134267576)

sssssssssss 12-16-2012 09:04 PM

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


cbk1994 12-16-2012 09:08 PM

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.


All times are GMT +2. The time now is 03:02 AM.

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