View Single Post
  #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: 190
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";
      
x = 6;
      
y = 130;
      
position = {6, 130};
      
extent = {88, 20};
      
text = "Load";
    } 
__________________
MEEP!
Reply With Quote