View Single Post
  #14  
Old 09-01-2008, 03:26 PM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
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.
Attached Thumbnails
Click image for larger version

Name:	graygui1.jpg
Views:	391
Size:	10.9 KB
ID:	45756  
Attached Images
 
__________________
Reply With Quote