Changeset - r13692:24c741734a76
[Not reviewed]
master
0 1 0
frosch - 15 years ago 2009-11-22 14:58:27
frosch@openttd.org
(svn r18227) -Fix (r17676)[FS#3325]: GRF parameters and palette were no longer displayed in NewGRF gui.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/newgrf_gui.cpp
Show inline comments
 
@@ -677,25 +677,25 @@ struct NewGRFWindow : public Window {
 

	
 
						DrawSprite(SPR_SQUARE, pal, square_left, y + sprite_offset_y);
 
						if (c->error != NULL) DrawSprite(SPR_WARNING_SIGN, 0, warning_left, y + sprite_offset_y);
 
						uint txtoffset = c->error == NULL ? 0 : 10;
 
						DrawString(text_left + (rtl ? 0 : txtoffset), text_right - (rtl ? txtoffset : 0), y, text, this->sel == c ? TC_WHITE : TC_BLACK);
 
						y += this->resize.step_height;
 
					}
 
				}
 
			} break;
 

	
 
			case SNGRFS_NEWGRF_INFO:
 
				if (this->sel != NULL) {
 
					ShowNewGRFInfo(this->sel, r.left + WD_FRAMERECT_LEFT, r.top + WD_FRAMERECT_TOP, r.right - WD_FRAMERECT_RIGHT, r.bottom - WD_FRAMERECT_BOTTOM, false);
 
					ShowNewGRFInfo(this->sel, r.left + WD_FRAMERECT_LEFT, r.top + WD_FRAMERECT_TOP, r.right - WD_FRAMERECT_RIGHT, r.bottom - WD_FRAMERECT_BOTTOM, this->show_params);
 
				}
 
				break;
 
		}
 
	}
 

	
 
	virtual void OnDoubleClick(Point pt, int widget)
 
	{
 
		if (widget == SNGRFS_FILE_LIST) this->OnClick(pt, SNGRFS_SET_PARAMETERS);
 
	}
 

	
 
	virtual void OnClick(Point pt, int widget)
 
	{
0 comments (0 inline, 0 general)