View Single Post
  #2  
Old 04-23-2011, 10:38 PM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
This is what you're looking for:
http://wiki.graal.net/index.php/Crea...g_GUI_Profiles

Creating a Profile Example:

PHP Code:
//#CLIENTSIDE
function onCreated() {
  
// Profiles only need to be created once.
  // Preferably in it's own -Profiles weapon. 
  // Make sure -Profiles is before other weapons that might use these profiles. 
  // (serveroptions: weaponorder=-Profiles,-System)
  
new GuiControlProfile("ZodiacButtonProfile") {
    
bitmap "zodiacguibutton.gif";
    
transparency 1;
    
opaque 1;
    
textoffset "0 -10";
    
align "center";
    
fontcolor "255 255 255";
    
fonttype "Arial";
    
fontsize 12;
    
fontstyle "cb";
    
fillcolor =  fillcolorhl fillcolorna "44 46 44";
  }

Use Own Profile Example:

PHP Code:
new GuiButtonCtrl("Example") {
  
width height 100;
  
profile ZodiacButtonProfile
  
useownprofile true;
  
profile.fontcolor "255 0 0"// Changes Font Color Red

__________________
Quote:
Reply With Quote