(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:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user