Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 12-14-2007, 02:24 AM
Knightmare1 Knightmare1 is offline
Billy Allan
Knightmare1's Avatar
Join Date: Apr 2007
Posts: 804
Knightmare1 can only hope to improve
Changing Images for GUI (buttons)?

well, i am trying to make different GUIs for my server, like Events and Chatrooms, but i dont like the blue images. so how would i change them? i have a script test, what would change?
PHP Code:
new GuiWindowCtrl("window")
{
  
profile GuiBlueWindowProfile;
  
extent = {300,500};
  
position = {55};
  
text "This is the title";
  
  new 
GuiButtonCtrl("mybutton")
  {
    
profile GuiBlueButtonProfile;
    
extent = {10025};
    
position = {5,5};
    
text "Push me!";
  }
}


function 
mybutton.onAction()
{
  
player.chat "I pushed the button!";

posted image
Attached Images
 
__________________
I am the devil, I am here to do to devils work.

Last edited by Knightmare1; 12-14-2007 at 02:46 AM..
Reply With Quote
  #2  
Old 12-14-2007, 03:51 AM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
PHP Code:
profile GuiBlueWindowProfile;
useownprofile true;
bitmap="image.png"
This applies for any profile.

EDIT: there is a profile specifically for bitmap buttons... so you might want to look that up on the wiki.
Reply With Quote
  #3  
Old 12-14-2007, 02:34 PM
Knightmare1 Knightmare1 is offline
Billy Allan
Knightmare1's Avatar
Join Date: Apr 2007
Posts: 804
Knightmare1 can only hope to improve
Quote:
Originally Posted by DustyPorViva View Post
PHP Code:
profile GuiBlueWindowProfile;
useownprofile true;
bitmap="image.png"
This applies for any profile.

EDIT: there is a profile specifically for bitmap buttons... so you might want to look that up on the wiki.
its still not working
PHP Code:
//#CLIENTSIDE
new GuiWindowCtrl("window"

  
profile GuiBlueWindowProfile
  
extent = {300,500}; 
  
position = {55}; 
  
text "This is the title"
   
  new 
GuiButtonCtrl("mybutton"
  { 
    
profile GuiBlueButtonProfile;
    
useownprofile true;
    
bitmap="gui_final-button.png"
    
extent = {10025}; 
    
position = {5,5}; 
    
text "Push me!"
  } 



function 
mybutton.onAction() 

  
player.chat "I pushed the button!"

__________________
I am the devil, I am here to do to devils work.
Reply With Quote
  #4  
Old 12-14-2007, 06:17 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
The preferred method is to use GUI styles, download one from the web and then set "style = "mystyle.wba;" The blue style will probably also be converted to wba sometime.

The error in your example is that you need to do profile.bitmap = "gui_final-button.png"
Reply With Quote
  #5  
Old 12-14-2007, 09:14 PM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
Oh damn, I forgot the profile.bitmap part, sorry!
Reply With Quote
  #6  
Old 12-14-2007, 09:56 PM
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 Stefan View Post
The preferred method is to use GUI styles, download one from the web and then set "style = "mystyle.wba;" The blue style will probably also be converted to wba sometime.

The error in your example is that you need to do profile.bitmap = "gui_final-button.png"
I prefer gui images over .wba styles. Couldnt you write a program that eats gui images and converts them to .wba?
Reply With Quote
  #7  
Old 12-14-2007, 11:19 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
I prefer gui images over .wba styles. Couldnt you write a program that eats gui images and converts them to .wba?
No, he's too busy working on the Graal for Mac client I would hope
__________________
Reply With Quote
  #8  
Old 12-15-2007, 12:08 AM
Knightmare1 Knightmare1 is offline
Billy Allan
Knightmare1's Avatar
Join Date: Apr 2007
Posts: 804
Knightmare1 can only hope to improve
i did that, and now it ends up as red middle, what would i change with the window image to make the color the one that is on the top?


attached window image and windowbitamp.
Attached Thumbnails
Click image for larger version

Name:	GUItest.png
Views:	188
Size:	4.1 KB
ID:	43518  
Attached Images
 
__________________
I am the devil, I am here to do to devils work.
Reply With Quote
  #9  
Old 12-15-2007, 02:27 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
Not sure what you're asking?
__________________
Reply With Quote
  #10  
Old 12-15-2007, 02:36 PM
projectigi projectigi is offline
Registered User
Join Date: Jan 2004
Posts: 403
projectigi is an unknown quantity at this point
try
PHP Code:
 profile.fillcolor = {red,green,blue,alpha}; // default background color
 
profile.fillcolorhl = {red,green,blue,alpha}; // background color when active
 
profile.fillcolorna = {red,green,blue,alpha}; // background color when disabled 
of ocurse you have to put the color values for the top one into it
Reply With Quote
  #11  
Old 12-15-2007, 03:06 PM
Knightmare1 Knightmare1 is offline
Billy Allan
Knightmare1's Avatar
Join Date: Apr 2007
Posts: 804
Knightmare1 can only hope to improve
i edited it, and now it looks like this.
Attached Thumbnails
Click image for larger version

Name:	GUItest.png
Views:	212
Size:	15.5 KB
ID:	43521  
__________________
I am the devil, I am here to do to devils work.
Reply With Quote
  #12  
Old 12-15-2007, 04:02 PM
projectigi projectigi is offline
Registered User
Join Date: Jan 2004
Posts: 403
projectigi is an unknown quantity at this point
PHP Code:
profile.transparency 1
maybe?
Reply With Quote
  #13  
Old 12-15-2007, 05:08 PM
Knightmare1 Knightmare1 is offline
Billy Allan
Knightmare1's Avatar
Join Date: Apr 2007
Posts: 804
Knightmare1 can only hope to improve
Quote:
Originally Posted by projectigi View Post
PHP Code:
profile.transparency 1
maybe?
is that how to make the damn transperancy go away?
__________________
I am the devil, I am here to do to devils work.
Reply With Quote
  #14  
Old 12-15-2007, 05:16 PM
projectigi projectigi is offline
Registered User
Join Date: Jan 2004
Posts: 403
projectigi is an unknown quantity at this point
Quote:
Originally Posted by Knightmare1 View Post
is that how to make the damn transperancy go away?
ya o.ô
Reply With Quote
  #15  
Old 12-16-2007, 05:32 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 projectigi View Post
PHP Code:
profile.transparency 1
maybe?
Wow, that looks EXACTLY like the Vesporia/Syn/SoG GUIs ...
__________________
Reply With Quote
  #16  
Old 12-16-2007, 12:22 PM
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 cbkbud View Post
Wow, that looks EXACTLY like the Vesporia/Syn/SoG GUIs ...
So, err...what's your point? o.o
Reply With Quote
  #17  
Old 12-16-2007, 01:20 PM
projectigi projectigi is offline
Registered User
Join Date: Jan 2004
Posts: 403
projectigi is an unknown quantity at this point
Quote:
Originally Posted by cbkbud View Post
Wow, that looks EXACTLY like the Vesporia/Syn/SoG GUIs ...
uh, what? lol
Reply With Quote
  #18  
Old 12-16-2007, 03:59 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
So, err...what's your point? o.o
Scaring the **** out of him.

No, just commenting. The GUIs are almost exactly the same as Sands of Glory's. Just suspicious because he worked on a SoG revival server (which was shut down).
__________________
Reply With Quote
  #19  
Old 12-16-2007, 06:26 PM
projectigi projectigi is offline
Registered User
Join Date: Jan 2004
Posts: 403
projectigi is an unknown quantity at this point
Quote:
Originally Posted by cbkbud View Post
Scaring the **** out of him.

No, just commenting. The GUIs are almost exactly the same as Sands of Glory's. Just suspicious because he worked on a SoG revival server (which was shut down).
me? O_o
Reply With Quote
  #20  
Old 12-17-2007, 07:13 PM
Knightmare1 Knightmare1 is offline
Billy Allan
Knightmare1's Avatar
Join Date: Apr 2007
Posts: 804
Knightmare1 can only hope to improve
i didnt make it like sogs... i'll admit 1 thing is like sogs, its the arrows.. but i am working on another type of arrow, but they all turned ***.
__________________
I am the devil, I am here to do to devils work.
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 03:04 PM.


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