Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Graphic Design (https://forums.graalonline.com/forums/forumdisplay.php?f=9)
-   -   Custom GUI Image Tutorial (https://forums.graalonline.com/forums/showthread.php?t=81591)

Programmer 09-01-2008 12:41 AM

Custom GUI Image Tutorial
 
4 Attachment(s)
I figured this fell more into Graphics rather than scripting, so I placed it here. This is a small tutorial to teach you how to create a Graal GUI skin from scratch. Criticisms/Comments welcome. Rep if you like it/found it helpful.

http://www.sympgraal.com/Ian/guitutorial.png

Switch 09-01-2008 12:59 AM

Very nice :)
Now more pixelers will know how to make guis :p
++rep

cbk1994 09-01-2008 01:01 AM

Very nice! :)

MrAnonymous_P2P 09-01-2008 06:11 AM

lol Nice one.

You already taught me this ;)

Demisis_P2P 09-01-2008 07:01 AM

Do these support alphatransparencies?

Programmer 09-01-2008 07:08 AM

Quote:

Originally Posted by Demisis_P2P (Post 1419498)
Do these support alphatransparencies?

They have full support for alpha transparencies.

Oni 09-01-2008 07:38 AM

nice tutorial

Demisis_P2P 09-01-2008 08:26 AM

1 Attachment(s)
Here is my take on a loosely vista-themed one.

It made it with Era's gui template so it's much smaller than yours.

It looks pretty good in game, but I can't change text colors, etc. so it doesn't fit perfectly.

cbk1994 09-01-2008 08:28 AM

Quote:

Originally Posted by Demisis_P2P (Post 1419517)
Here is my take on a loosely vista-themed one.

It made it with Era's gui template so it's much smaller than yours.

It looks pretty good in game, but I can't change text colors, etc. so it doesn't fit perfectly.

profile.fontcolor ?

Demisis_P2P 09-01-2008 08:30 AM

Quote:

Originally Posted by cbk1994 (Post 1419519)
profile.fontcolor ?

I'm not staff.
I'm just overwriting graphics locally to test them in game.

WanDaMan 09-01-2008 08:47 AM

I'd love to see a classic one :O! (Default Q Menu like this!)

+rep :)

[email protected] 09-01-2008 08:49 AM

i did a classic one on old vs, remember??

rep++ [you don't need the profile= part, btw]

Demisis_P2P 09-01-2008 02:39 PM

1 Attachment(s)
I edited the tabs and the scrollbar images a bit too, so this is what the News gui looks like for me now on Era.

Inverness 09-01-2008 03:26 PM

2 Attachment(s)
I see that you have a single pixel on the bottom left that represents the background. What you're doing is just making Graal's job more difficult because it has to tile a single pixel rather than a larger set, which takes more CPU time.

If you want a solid colored background simply remove the background pixel from the image and set opaque to true in the Window's profile then change fillcolor accordingly.

Attached is the image I'm using for the simple gray window theme based on VGUI in the Source Engine. The image has 80 percent opacity.

And combined with this profile, it makes the window background to what I want it to be without having to put it in the image file.
PHP Code:

  new GuiBlueWindowProfile("GuiGrayWindowProfile") {
    
this.bitmap "guigray80_window.png";
    
this.fonttype "Verdana";
    
this.fontsize 14;
    
this.fontstyle "b";
    
this.fontcolor = {255255255};
    
this.fontcolorna = {176176176};
    
this.fontcolorhl = {000};
    
this.opaque true;
    
this.fillcolor = {888888255 0.80};
    
this.fillcolorhl = {2551640};
  } 

The result is also attached.

Crow 09-01-2008 03:39 PM

I don't think Graal is tiling the single pixel. Theres a "tile" variable, I'm pretty sure it's being stretched when this is set to false.


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

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