(svn r14819) -Change: make details and order menu stickyable, like the timetable window. Also let the detail/order/timetable window close eachther, like the detail and order windows already did, when not stickied.
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
#include "command_func.h"
|
||||
#include "gui.h"
|
||||
#include "window_gui.h"
|
||||
#include "window_func.h"
|
||||
#include "textbuf_gui.h"
|
||||
#include "cargotype.h"
|
||||
#include "strings_func.h"
|
||||
@@ -366,5 +367,7 @@ static const WindowDesc _timetable_desc = {
|
||||
|
||||
void ShowTimetableWindow(const Vehicle *v)
|
||||
{
|
||||
DeleteWindowById(WC_VEHICLE_DETAILS, v->index, false);
|
||||
DeleteWindowById(WC_VEHICLE_ORDERS, v->index, false);
|
||||
AllocateWindowDescFront<TimetableWindow>(&_timetable_desc, v->index);
|
||||
}
|
||||
|
Reference in New Issue
Block a user