Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > Code Gallery
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 12-27-2007, 01:15 AM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
Set styles

PHP Code:
//#CLIENTSIDE
function onCreated() {  
  
this.style_objects = {
    {
"GraalControl""Arzo.wba"},
    {
"Serverlist_TaskBar""Arzo.wba"},
    {
"Serverlist_TaskBar_Menu""Arzo.wba"},
    {
"F2LogWindow_Window""Arzo.wba"},
    {
"DownloadProgress_Window""Arzo.wba"}
  };
  for (
temp.control this.style_objects) {
    (@ 
control[0]).style = (@ control[1]);
  }
  
setTimer(0.05);
}
function 
onTimeout() {
  for (
temp.check this.style_objects) {
    if (
check[1] != (@ check[0]).style) {
      (@ 
check[0]).style = (@ check[1]);
    }
  }
  
setTimer(0.1);

Easy setup, just edit the 'this.style_objects" array where there members are:
[0]: Objectname
[1]: Name of style uploaded on the server

Adding folder for styles
I added a subfolder named 'guistyles' so it became 'levels/images/guistyles/'

Put this somewhere in your folder config on your server:
PHP Code:
file    images/guistyles/*.wba 
Easy little script, enjoy. For any questions or suggestions etc, feel free to post.
__________________
Reply With Quote
  #2  
Old 12-27-2007, 01:19 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
looks like it could definetly help some starting servers. Good job!
__________________
Reply With Quote
  #3  
Old 12-27-2007, 05:01 AM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
Looks pretty cool but I don't like the timeout . You should just use events if you can (I think there is an event for when the GUI Style changes but I forgot what it was)
__________________
Do it with a DON!
Reply With Quote
  #4  
Old 12-31-2007, 06:25 AM
Kyranki Kyranki is offline
Freelance Coder
Join Date: Aug 2007
Location: At the end of the rainbow, in the pot of gold.
Posts: 202
Kyranki is on a distinguished road
Send a message via AIM to Kyranki Send a message via MSN to Kyranki
Simple, short and yet keeps organization and is very helpful.

++rep for you Chompmaster.
__________________
Stan.
Reply With Quote
  #5  
Old 01-01-2008, 05:10 AM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
Quote:
Originally Posted by zokemon View Post
Looks pretty cool but I don't like the timeout . You should just use events if you can (I think there is an event for when the GUI Style changes but I forgot what it was)
Yes, but players can still change their style back to what they want

I made this for servers who want.. Well, instead of editing GuiControls they can use .wba styles which can be much more cooler then the default GuiControls :P Giving their server a little personal touch. Would be cool to have servers hire people to make them .wba styles tho ;o

Quote:
Originally Posted by Kyranki View Post
Simple, short and yet keeps organization and is very helpful.

++rep for you Chompmaster.
Thanks <3
__________________
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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


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