![]() |
Graal3 GUI
I noticed that you could create your own GUI like the playerlist with graal3. What I was wondering is if we could customize the graphics for the graal3 GUI? It just wouldn't fit in well with servers with differant themes.
|
Im not sure the exact command, you can look it upo in a document, but it's like newguibitmapwindow(), and then there's a value you set for the image name.
|
yes but im sure they use multiple images for like the sides, bottom and top, and the filling as well as buttons... Where would the template for those be?
|
Hmm, well for the buttons, its newguibitmapbuttonctrl or something, and as for the multiple images, you'll need to contact sterfan or soemone else who would know. I myself will look to see what I can figure out.
|
Where would it be under?
|
You can create new profiles. If you want to base it on an existing profile and only modify a few values, you could e.g. do
new GuiTextProfile("MyBigTextProfile") { fontsize = 30; } and in the gui object then do profile = MyBigTextProfile; From the docu you can get the attributes of a profile: GuiControlProfile: autosizeheight - boolean autosizewidth - boolean bitmap - string border - integer bordercolor - string bordercolorhl - string bordercolorna - string borderthickness - integer cankeyfocus - boolean cursorcolor - string fillcolor - string fillcolorhl - string fillcolorna - string fontcolor - string fontcolorhl - string fontcolorlink - string fontcolorlinkhl - string fontcolorna - string fontcolorsel - string fontsize - integer fonttype - string justify - string linespacing - integer modal - boolean mouseoverselected - boolean numbersonly - boolean opaque - boolean returntab - boolean soundbuttondown - string soundbuttonover - string tab - boolean textoffset - string transparency - float The bitmap defines what look the window, text field, scroll bar etc. gets |
Quote:
|
1 Attachment(s)
Ok here. Colors are often having values like "255 255 255" but are basicly an array of 3 values, you can also write "255,255,255" or {255,255,255}
|
Wow now if i ever need a better gui I can make one :)
Care tyo tell the command on how to get rid of the x, -, and + so that you cant delete the window? |
What is the name of the image with the look of the GUI though stefan? And where is it found in the graal folder?
Edit: graal2001\levels3d\gui is where I found it... we can specify the imagenames to use for gui? |
Quote:
|
Quote:
Goin to have jacco teach me :P |
To specify which window buttons are visible use the attributes canmove, canclose, canminimize, canmaximize
The default gfx for the gui are in levels3d/gui, if you want to make your own then you can base it one of those. Each gfx contains several "subgfx" which are put in the image file in a grid. |
Quote:
|
Quote:
|
ok thanks
|
Quote:
|
Update for profiles:
You can change the color of a gui object without creating a new profile now: PHP Code:
|
Quote:
-new GuiTextCtrl("the text file the player has edited goes here") ? profile = "GuiTextProfile"; --this is where you specify the profile to copy? Do you have to create the new profile.txt, or will it just take the existing one and use it, but replace the images? Where do you put these images and .txt files online and offline? |
Quote:
Edit: Let's say you have this code to create a window: NPC Code: It will create a window such as this: http://riot.delteria.com/gui_normprofile.png Notice the text is fairly hard to read, now add these three lines to the "Test_Text" control to change the font color and size: NPC Code: You get something more like this: http://riot.delteria.com/gui_ownprofile.png The text now contains all the information contained in "GuiTextProfile" only changing the color and size. |
well, that explains it better. (still new go the gui controls).
What are the controls for changing the profile / bitmap image? (GUI Image). I was searching for those, and this thread was one of the only ones I could find. I'm trying to use my own images that I'm making. |
Quote:
PHP Code:
|
Quote:
|
Quote:
Then do what ForgottenLegacy said. |
Quote:
1) Create the profile itself, it's the 'GuiControlProfile' object, and you treat it like you do any other Gui object: PHP Code:
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:
I think someone wrote a docu on profiles, anyone know who and where it is? |
Quote:
Would be good to make a docu for GUI I think, also explaining the general concept about the GUI controls, events etc. Also the gui editor needs to be updated, its almost two years old now and needs new icons and support the new controls. |
| All times are GMT +2. The time now is 09:03 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.