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


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 01:08 AM.


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