Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > New Scripting Engine (GS2)
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 08-07-2010, 11:02 PM
xMane xMane is offline
NPC-Server (Server)
xMane's Avatar
Join Date: May 2010
Posts: 59
xMane is on a distinguished road
Custom Gui Profile...

Can anyone help me because this doesn't help :
http://graal.net/index.php/Creation/...g_GUI_Profiles

Anyone?
Reply With Quote
  #2  
Old 08-08-2010, 12:02 AM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
Maybe this will?
Reply With Quote
  #3  
Old 08-08-2010, 01:23 AM
xMane xMane is offline
NPC-Server (Server)
xMane's Avatar
Join Date: May 2010
Posts: 59
xMane is on a distinguished road
Quote:
Originally Posted by Crow View Post
Maybe this will?
Did you even go to the link??? Its the exact same thing...
Can someone give me a example how to use?
Reply With Quote
  #4  
Old 08-08-2010, 01:34 AM
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
PHP Code:
//#CLIENTSIDE
function onCreated() {
  
createProfiles();
}

function 
createProfiles() {
  new 
GuiButtonProfile("MyButtonProfile") {
    
fontsize 20;
  }
}

function 
createButton() {
  
// With Profile
  
new GuiButtonCtrl("RandomButton") {
    
100;
    
text "Hello";
    
profile "MyButtonProfile";
  }
  
// Without Profile
  
new GuiButtonCtrl("RandomButton2") {
    
200;
    
text "Hello";
  }

You simply just add the one profile line to the GUI object, and it creates it with the inherited profile values. In this example it inherits MyButtonProfile's values
__________________
Quote:
Reply With Quote
  #5  
Old 08-08-2010, 01:42 AM
xMane xMane is offline
NPC-Server (Server)
xMane's Avatar
Join Date: May 2010
Posts: 59
xMane is on a distinguished road
Quote:
Originally Posted by fowlplay4 View Post
PHP Code:
//#CLIENTSIDE
function onCreated() {
  
createProfiles();
}

function 
createProfiles() {
  new 
GuiButtonProfile("MyButtonProfile") {
    
fontsize 20;
  }
}

function 
createButton() {
  
// With Profile
  
new GuiButtonCtrl("RandomButton") {
    
100;
    
text "Hello";
    
profile "MyButtonProfile";
  }
  
// Without Profile
  
new GuiButtonCtrl("RandomButton2") {
    
200;
    
text "Hello";
  }

You simply just add the one profile line to the GUI object, and it creates it with the inherited profile values. In this example it inherits MyButtonProfile's values
OOHHH! oops x.x my bad guys. i thou when u do

new GuiButtonProfile("MyButtonProfile") {
fontsize = 20;
}
it would create a button x.x xD well im wrong w/e
alssoooo how do i change the chatbar image?
Reply With Quote
  #6  
Old 08-08-2010, 01:45 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by xMane View Post
alssoooo how do i change the chatbar image?
PHP Code:
ChatBar.profile MyTextEditProfile
__________________
Reply With Quote
  #7  
Old 08-08-2010, 01:53 AM
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
Quote:
Originally Posted by cbk1994 View Post
PHP Code:
ChatBar.profile MyTextEditProfile
preemptive post.

PHP Code:
//#CLIENTSIDE
function onCreated() {
  new 
GuiTextEditProfile("MyTextEditProfile") {
    
bitmap "defaulttextedit.png";
  }

__________________
Quote:
Reply With Quote
  #8  
Old 08-08-2010, 03:07 AM
xMane xMane is offline
NPC-Server (Server)
xMane's Avatar
Join Date: May 2010
Posts: 59
xMane is on a distinguished road
Quote:
Originally Posted by cbk1994 View Post
PHP Code:
ChatBar.profile MyTextEditProfile
This works the normal textedit doesnt cover it.
Reply With Quote
  #9  
Old 08-08-2010, 11:33 AM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
Quote:
Originally Posted by xMane View Post
Did you even go to the link??? Its the exact same thing...
Can someone give me a example how to use?
It's not. Your's doesn't go to the wiki subdomain, and ends up on the Graal homepage for me
Reply With Quote
  #10  
Old 08-08-2010, 03:31 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by Crow View Post
It's not. Your's doesn't go to the wiki subdomain, and ends up on the Graal homepage for me
For some people graal.net and x.graal.net go to the Wiki and for others graalonline.com

A discrepancy in the DNS.
__________________
Reply With Quote
  #11  
Old 08-08-2010, 05:14 PM
xMane xMane is offline
NPC-Server (Server)
xMane's Avatar
Join Date: May 2010
Posts: 59
xMane is on a distinguished road
um ok... soo... do you know how to change the font color in F7 and F6 uploading places?
Reply With Quote
  #12  
Old 08-08-2010, 05:29 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
By changing the profiles fontcolor variable.
__________________
Quote:
Reply With Quote
  #13  
Old 08-08-2010, 07:00 PM
xMane xMane is offline
NPC-Server (Server)
xMane's Avatar
Join Date: May 2010
Posts: 59
xMane is on a distinguished road
Quote:
Originally Posted by fowlplay4 View Post
By changing the profiles fontcolor variable.
That is profiles.<var> = "example";?
Or what is the profile for that?
Reply With Quote
  #14  
Old 08-08-2010, 08:02 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
List of available attributes:

http://wiki.graal.net/index.php/Crea...ControlProfile

Example:

PHP Code:
new GuiRandomCtrl("ASDF") {
  
profile "MyProfile"
  
useOwnProfile true;
  
profile.fontcolor "255 0 0";

GUIs are actually one of the only things that are well documented on the Wiki, just read around a bit on there and look at all the different controls.
__________________
Quote:
Reply With Quote
Reply


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


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