main_gui.c
changeset 2218 abd47ef7d902
parent 2216 51a715447fc4
child 2261 3f78323707bb
equal deleted inserted replaced
2217:c3a8a3bbc81f 2218:abd47ef7d902
  1861 	switch(e->event) {
  1861 	switch(e->event) {
  1862 	case WE_PAINT: {
  1862 	case WE_PAINT: {
  1863 
  1863 
  1864 		// Draw brown-red toolbar bg.
  1864 		// Draw brown-red toolbar bg.
  1865 		GfxFillRect(0, 0, w->width-1, w->height-1, 0xB2);
  1865 		GfxFillRect(0, 0, w->width-1, w->height-1, 0xB2);
  1866 		GfxFillRect(0, 0, w->width-1, w->height-1, 0x80B4);
  1866 		GfxFillRect(0, 0, w->width-1, w->height-1, 0xB4 | PALETTE_MODIFIER_GREYOUT);
  1867 
  1867 
  1868 		// if spectator, disable things
  1868 		// if spectator, disable things
  1869 		if (_current_player == OWNER_SPECTATOR){
  1869 		if (_current_player == OWNER_SPECTATOR){
  1870 			w->disabled_state |= (1 << 19) | (1<<20) | (1<<21) | (1<<22) | (1<<23);
  1870 			w->disabled_state |= (1 << 19) | (1<<20) | (1<<21) | (1<<22) | (1<<23);
  1871 		} else {
  1871 		} else {
  2087 		else
  2087 		else
  2088 			CLRBIT(w->disabled_state, 7);
  2088 			CLRBIT(w->disabled_state, 7);
  2089 
  2089 
  2090 		// Draw brown-red toolbar bg.
  2090 		// Draw brown-red toolbar bg.
  2091 		GfxFillRect(0, 0, w->width-1, w->height-1, 0xB2);
  2091 		GfxFillRect(0, 0, w->width-1, w->height-1, 0xB2);
  2092 		GfxFillRect(0, 0, w->width-1, w->height-1, 0x80B4);
  2092 		GfxFillRect(0, 0, w->width-1, w->height-1, 0xB4 | PALETTE_MODIFIER_GREYOUT);
  2093 
  2093 
  2094 		DrawWindowWidgets(w);
  2094 		DrawWindowWidgets(w);
  2095 
  2095 
  2096 		SetDParam(0, _date);
  2096 		SetDParam(0, _date);
  2097 		DrawStringCentered(298, 6, STR_00AF, 0);
  2097 		DrawStringCentered(298, 6, STR_00AF, 0);