Public Member Functions | |
ArmageTron_color_menuitem (uMenu *m, const char *tit, const char *help, int *RGB, int Me) | |
~ArmageTron_color_menuitem () | |
virtual REAL | SpaceRight () |
virtual void | RenderBackground () |
Protected Attributes | |
int * | rgb |
unsigned short | me |
Definition at line 784 of file gMenus.cpp.
ArmageTron_color_menuitem::ArmageTron_color_menuitem | ( | uMenu * | m, | |
const char * | tit, | |||
const char * | help, | |||
int * | RGB, | |||
int | Me | |||
) | [inline] |
Definition at line 789 of file gMenus.cpp.
References uMenu::RequestSpaceBelow().
00791 :uMenuItemInt(m,tit,help,RGB[Me],0,15), 00792 rgb(RGB),me(Me) { 00793 m->RequestSpaceBelow(.2); 00794 }
ArmageTron_color_menuitem::~ArmageTron_color_menuitem | ( | ) | [inline] |
virtual REAL ArmageTron_color_menuitem::SpaceRight | ( | ) | [inline, virtual] |
virtual void ArmageTron_color_menuitem::RenderBackground | ( | ) | [inline, virtual] |
Reimplemented from uMenuItem.
Definition at line 801 of file gMenus.cpp.
References b, REAL, uMenuItem::RenderBackground(), se_MakeColorValid(), and sr_glOut.
00801 { 00802 // static int count=0; 00803 /* 00804 while(rgb[0]+rgb[1]+rgb[2]<13){ 00805 if (rgb[count]<15) 00806 rgb[count]++; 00807 count++; 00808 if (count>2) 00809 count=0; 00810 } 00811 */ 00812 #ifndef DEDICATED 00813 if (!sr_glOut) 00814 return; 00815 uMenuItem::RenderBackground(); 00816 REAL r = rgb[0]/15.0; 00817 REAL g = rgb[1]/15.0; 00818 REAL b = rgb[2]/15.0; 00819 se_MakeColorValid(r, g, b, 1.0f); 00820 glColor3f(r, g, b); 00821 glRectf(.8,-.8,.98,-.98); 00822 #endif 00823 }
int* ArmageTron_color_menuitem::rgb [protected] |
Definition at line 786 of file gMenus.cpp.
unsigned short ArmageTron_color_menuitem::me [protected] |
Definition at line 787 of file gMenus.cpp.