Changeset - r15293:6bb34bc1032f
[Not reviewed]
master
0 1 0
frosch - 14 years ago 2010-06-07 20:00:21
frosch@openttd.org
(svn r19944) -Feature(ette): Open vehicle view when clicking on the caption of vehicle news.
1 file changed with 7 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/news_gui.cpp
Show inline comments
 
@@ -18,6 +18,7 @@
 
#include "date_func.h"
 
#include "vehicle_base.h"
 
#include "vehicle_func.h"
 
#include "vehicle_gui.h"
 
#include "station_base.h"
 
#include "industry.h"
 
#include "town.h"
 
@@ -458,6 +459,12 @@ struct NewsWindow : Window {
 
				break;
 

	
 
			case NTW_CAPTION:
 
				if (this->ni->reftype1 == NR_VEHICLE) {
 
					const Vehicle *v = Vehicle::Get(this->ni->ref1);
 
					ShowVehicleViewWindow(v);
 
				}
 
				break;
 

	
 
			case NTW_VIEWPORT:
 
				break; // Ignore clicks
 

	
0 comments (0 inline, 0 general)