Graal Forums  

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

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 06-27-2011, 06:33 PM
callimuc callimuc is offline
callimuc's Avatar
Join Date: Nov 2010
Location: Germany
Posts: 1,015
callimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to behold
GUI image changing

Hey there. After I was reading a tutorial how to change the default GUI images, I was trying out on that. But when I wanted to try out on buttons, I got the following fail. Idk if its with more GUI tools.
The text of the GUI button isnīt centered anymore. Itīs aligned left now.
Here is a small screenshot:

Name:  guibutton.png
Views: 180
Size:  1.1 KB

When I use the default GUI style, everything works fine. Hereīs the script part:

PHP Code:
    new GuiButtonCtrl("TestDesignButton") {
      
useOwnProfile true;
      
profile.bitmap "callimuc_guibutton-profile.png";
      
//even tried profile.bitmap = "callimuc_guibutton-profile"; also shows the image but also with the fail
      
profile.fontSize 12;
      
profile.fontStyle "b";
      
profile.fontType "Arial";
      
6;
      
130;
      
position = {6130};
      
extent = {8820};
      
text "Load";
    } 
__________________
MEEP!
Reply With Quote
 


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 03:09 PM.


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