forked from speed-dreams/speed-dreams-code
hard coded Eckhard's desired menu colors for "Stop Race menu"
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@2130 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: 3ccfe3579765eaea8e7bbe8673dc54327c15fa3d Former-commit-id: ecc710264ef59f2a226d29d54c20a6d050de841e
This commit is contained in:
parent
6e43501dc1
commit
8d33437406
1 changed files with 14 additions and 1 deletions
|
@ -67,9 +67,22 @@ rmNStateScreen(const char *title, const tButtonDesc aButtons[], int nButtons, in
|
|||
|
||||
// Create specified buttons, left aligned.
|
||||
for (int nButInd = 0; nButInd < nButtons; nButInd++)
|
||||
GfuiMenuButtonCreate(screenHdle, aButtons[nButInd].label, aButtons[nButInd].tip,
|
||||
{
|
||||
int id = GfuiMenuButtonCreate(screenHdle, aButtons[nButInd].label, aButtons[nButInd].tip,
|
||||
aButtons[nButInd].screen, GFUI_ALIGN_HL_VB, GfuiScreenActivate);
|
||||
|
||||
GfuiButtonShowBox(screenHdle,id,false);
|
||||
Color c ,fc,pc;
|
||||
c.red =1.0;c.green=1.0;c.blue=1.0;c.alpha=1.0;
|
||||
fc.red =1.0;fc.green=0.8;fc.blue=0.0;fc.alpha=1.0;
|
||||
pc.red =0.902;pc.green=0.1;pc.blue=0.2;pc.alpha=1.0;
|
||||
|
||||
GfuiButtonSetColor(screenHdle,id,c);
|
||||
GfuiButtonSetFocusColor(screenHdle,id,fc);
|
||||
GfuiButtonSetPushedColor(screenHdle,id,pc);
|
||||
|
||||
}
|
||||
|
||||
// Close menu XML descriptor.
|
||||
GfParmReleaseHandle(menuXMLDescHdle);
|
||||
|
||||
|
|
Loading…
Reference in a new issue