(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:
rubidium
2009-01-03 23:32:59 +00:00
parent 24e02fab11
commit 99eae02c9d
3 changed files with 25 additions and 14 deletions

View File

@@ -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);
}