Thread: Graal3 GUI
View Single Post
  #25  
Old 10-05-2005, 12:37 AM
ForgottenLegacy ForgottenLegacy is offline
-Backtoscripts-
Join Date: Aug 2003
Location: California
Posts: 289
ForgottenLegacy is on a distinguished road
Send a message via AIM to ForgottenLegacy
Quote:
Originally Posted by Torankusu_2002
Yeah, I see that, and I see that there is one main image that has most of the stuff on it. But what would I do if I had custom scroll buttons, etc.
You can make several images for buttons and check boxes or so, and use that for the bitmaps, for a variety of buttons. For consistancy, you should make a GuiProfile and use that. Here's how you do it:

1) Create the profile itself, it's the 'GuiControlProfile' object, and you treat it like you do any other Gui object:
PHP Code:
new GuiControlProfile(NAME) { 
The 'NAME' is how you assign the profile, so I have my window profile named to 'KaidennWindow', and my MLText to 'KaidennMLText'. I do this because it is easier to manage and simpler to use.

2) After the first line, you look up GuiControlProfile in newfeatures_client.txt and alter whatever you please. Colours are in hex strings, like "FF 00 FF" for purple or "00 FF 00" for green.

3) Inside the thing you want to alter, like your GuiWindowCtrl for example, assign the profile:
PHP Code:
profile NAME
Remember to use quotes for 'NAME' otherwise it'll think it's a var, but you do not need quotes when you make the profile. You can still use the 'useownprofile' and 'profile.param = value' things to alter the profile for that Gui object only.

I think someone wrote a docu on profiles, anyone know who and where it is?
__________________
"The higher you fly, the harder it is to breathe."

[Kaidenn] Maybe I will somehow take control of Lance's body when he isn't looking, have him log onto Kingdoms, update one script, and leave.
[Kaidenn] And leave him exactly where I found him, unchanged and completely unnaware of what just took place the last two minutes.
[GrowlZ] Lance: You might want to lock your bedroom door tonight
Reply With Quote