(svn r6922) -Feature: Add proper cloning sprites and cursors, different for each vehicle. Big thanks

to MB for the initial design and skidd13 for the iconified version(s).
-Codechange: Change the autorenew sprites from recycle to upgrade (skidd13)
-Codechange: Change the shared orders icon (MeusH)
-Add missing table/files.h file to VS project file.
This commit is contained in:
Darkvater
2006-10-24 12:56:14 +00:00
parent e08dfce57c
commit 1204eeacfe
8 changed files with 28 additions and 20 deletions

View File

@@ -692,8 +692,13 @@ static void DepotWndProc(Window *w, WindowEvent *e)
ToggleWidgetLoweredState(w, DEPOT_WIDGET_CLONE);
if (IsWindowWidgetLowered(w, DEPOT_WIDGET_CLONE)) {
static const CursorID clone_icons[] = {
SPR_CURSOR_CLONE_TRAIN, SPR_CURSOR_CLONE_ROADVEH,
SPR_CURSOR_CLONE_SHIP, SPR_CURSOR_CLONE_AIRPLANE
};
_place_clicked_vehicle = NULL;
SetObjectToPlaceWnd(SPR_CURSOR_CLONE, VHM_RECT, w);
SetObjectToPlaceWnd(clone_icons[WP(w, depot_d).type - VEH_Train], VHM_RECT, w);
} else {
ResetObjectToPlace();
}