Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   New Scripting Engine (GS2) (https://forums.graalonline.com/forums/forumdisplay.php?f=153)
-   -   Custom Gui Profile... (https://forums.graalonline.com/forums/showthread.php?t=134260106)

xMane 08-07-2010 11:02 PM

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

Anyone? :(

Crow 08-08-2010 12:02 AM

Maybe this will?

xMane 08-08-2010 01:23 AM

Quote:

Originally Posted by Crow (Post 1592002)
Maybe this will?

Did you even go to the link??? Its the exact same thing...
Can someone give me a example how to use?

fowlplay4 08-08-2010 01:34 AM

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

xMane 08-08-2010 01:42 AM

Quote:

Originally Posted by fowlplay4 (Post 1592023)
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?

cbk1994 08-08-2010 01:45 AM

Quote:

Originally Posted by xMane (Post 1592025)
alssoooo how do i change the chatbar image?

PHP Code:

ChatBar.profile MyTextEditProfile


fowlplay4 08-08-2010 01:53 AM

Quote:

Originally Posted by cbk1994 (Post 1592026)
PHP Code:

ChatBar.profile MyTextEditProfile


preemptive post.

PHP Code:

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



xMane 08-08-2010 03:07 AM

Quote:

Originally Posted by cbk1994 (Post 1592026)
PHP Code:

ChatBar.profile MyTextEditProfile


This works the normal textedit doesnt cover it.

Crow 08-08-2010 11:33 AM

Quote:

Originally Posted by xMane (Post 1592019)
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 :noob:

cbk1994 08-08-2010 03:31 PM

Quote:

Originally Posted by Crow (Post 1592096)
It's not. Your's doesn't go to the wiki subdomain, and ends up on the Graal homepage for me :noob:

For some people graal.net and x.graal.net go to the Wiki and for others graalonline.com :p

A discrepancy in the DNS.

xMane 08-08-2010 05:14 PM

um ok... soo... do you know how to change the font color in F7 and F6 uploading places?

fowlplay4 08-08-2010 05:29 PM

By changing the profiles fontcolor variable.

xMane 08-08-2010 07:00 PM

Quote:

Originally Posted by fowlplay4 (Post 1592126)
By changing the profiles fontcolor variable.

That is profiles.<var> = "example";?
Or what is the profile for that?

fowlplay4 08-08-2010 08:02 PM

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.


All times are GMT +2. The time now is 02:44 PM.

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