src/window.cpp
changeset 9293 96e818608056
parent 9285 235e5e2d7f55
child 9301 3b20dfb6c4e8
equal deleted inserted replaced
9292:176fb6c36f10 9293:96e818608056
   176 	e.event = WE_ABORT_PLACE_OBJ;
   176 	e.event = WE_ABORT_PLACE_OBJ;
   177 	this->HandleWindowEvent(&e);
   177 	this->HandleWindowEvent(&e);
   178 }
   178 }
   179 
   179 
   180 
   180 
   181 void Window::OnPlaceDrag(ViewportPlaceMethod select_method, byte select_proc, Point pt)
   181 void Window::OnPlaceDrag(ViewportPlaceMethod select_method, ViewportDragDropSelectionProcess select_proc, Point pt)
   182 {
   182 {
   183 	WindowEvent e;
   183 	WindowEvent e;
   184 	e.event = WE_PLACE_DRAG;
   184 	e.event = WE_PLACE_DRAG;
   185 	e.we.place.select_method = select_method;
   185 	e.we.place.select_method = select_method;
   186 	e.we.place.select_proc   = select_proc;
   186 	e.we.place.select_proc   = select_proc;
   187 	e.we.place.pt            = pt;
   187 	e.we.place.pt            = pt;
   188 	this->HandleWindowEvent(&e);
   188 	this->HandleWindowEvent(&e);
   189 }
   189 }
   190 
   190 
   191 void Window::OnPlaceMouseUp(ViewportPlaceMethod select_method, byte select_proc, Point pt, TileIndex start_tile, TileIndex end_tile)
   191 void Window::OnPlaceMouseUp(ViewportPlaceMethod select_method, ViewportDragDropSelectionProcess select_proc, Point pt, TileIndex start_tile, TileIndex end_tile)
   192 {
   192 {
   193 	WindowEvent e;
   193 	WindowEvent e;
   194 	e.event = WE_PLACE_MOUSEUP;
   194 	e.event = WE_PLACE_MOUSEUP;
   195 	e.we.place.select_method = select_method;
   195 	e.we.place.select_method = select_method;
   196 	e.we.place.select_proc   = select_proc;
   196 	e.we.place.select_proc   = select_proc;