I'm not sure what you're trying to change, but it sounds to me like
you're trying to change the border/highlight colour of the buttons??
Here's a brief snippet from our class menu (I've added some code to
what was there originally):

SchemeHandle_t hButtonText   = pSchemes->getSchemeHandle( "Primary
Button Text" );

// color schemes
int r, g, b, a;

// Get the Border Color for all elements, store in LineBorder variable
pSchemes->getBorderColor( hButtonText, r, g, b, a );
m_pLineBorder = new LineBorder( Color (r, g, b, a) );

The line border for many things in the default menus seemed to me to be
hard coded, I just changed this to use the schemes from the .txt files,
and then set the border colour of my buttons later on. I had to add a
line like this:
BorderColor  = "0 170 0 67"

to all my scheme files. I also had to alter the paintBackground
function in a few elements, because there again the colour was being
set (to a hard coded value) (I just commented out the appropriate line
(s)).

Maybe this was something that someone ran out of time to do before
releasing the SDK?? I don't know, but since 90% of the stuff is read
from the .txt scheme files, I wonder if that's not the reason??



> is it actually possible to change the colour of these (well, I guess
I could
> change the Primary Button Text scheme - but I want it to depend on the
> team).
> But nothing I've tried actually works... :o/
> (I've attempted using setBgColor and setFgColor for example)
>
> CaptFarrell
>
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.323 / Virus Database: 180 - Release Date: 08/02/2002
>
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list
archives, please visit:
> http://list.valvesoftware.com/mailman/listinfo/hlcoders
>
>

---------------------------------------
Eighty percent of life is showing up.
  -- Woody Allen
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to