Colour changing problem

Posted by Mendacitas on Thu 05 Aug 2010 04:55 AM — 4 posts, 16,022 views.

#0
So for some reason one of my window strings won't change colour for me:

here's part of the function:

WindowCreate (atkwin, 640, 325, 175, 200, 6, 2, ColourNameToRGB("silver"))
WindowShow (atkwin, true)
WindowFont (atkwin, "a","Trebuchet MS", 12, true, false, false, false)
WindowText (atkwin, "f","Attacks:", 4, 0, 0, 0, ColourNameToRGB ("lightgreen"), false)


WindowText (atkwin, "f", "Spells:", 4, 67, 0, 0, 0, ColourNameToRGB ("lightgreen"), false)
...

"f" is defined elsewhere like so:

WindowFont (win2, "f","Trebuchet MS", 10, true, false, false, false)

thing is, "Attacks:" is becoming light green no problem with that syntax, but "Spells:" will only show as black, no matter what I put inside of ColourNameToRGB
Australia Forum Administrator #1
Quote:

WindowText (atkwin, "f","Attacks:", 4, 0, 0, 0, ColourNameToRGB ("lightgreen"), false)


WindowText (atkwin, "f", "Spells:", 4, 67, 0, 0, 0, ColourNameToRGB ("lightgreen"), false)


You have an extra 0 in the second one, which is black in RGB.
#2
0.0 I can't believe I didn't see that. I blame the hour.
USA #3
No way I'd have seen that unless I knew what I was looking for. :(