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: 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