src/toolbar_gui.cpp
changeset 9518 bc938928f466
parent 9513 17d3f5505bf5
child 9519 e75bc0300488
equal deleted inserted replaced
9517:8470042a618f 9518:bc938928f466
   864 	virtual void OnPlaceObject(Point pt, TileIndex tile)
   864 	virtual void OnPlaceObject(Point pt, TileIndex tile)
   865 	{
   865 	{
   866 		_place_proc(tile);
   866 		_place_proc(tile);
   867 	}
   867 	}
   868 
   868 
   869 	virtual void OnPlaceObjectAbort()
       
   870 	{
       
   871 		this->RaiseWidget(25);
       
   872 		this->SetDirty();
       
   873 	}
       
   874 
       
   875 	virtual void OnTick()
   869 	virtual void OnTick()
   876 	{
   870 	{
   877 		if (this->IsWidgetLowered(0) != !!_pause_game) {
   871 		if (this->IsWidgetLowered(0) != !!_pause_game) {
   878 			this->ToggleWidgetLoweredState(0);
   872 			this->ToggleWidgetLoweredState(0);
   879 			this->InvalidateWidget(0);
   873 			this->InvalidateWidget(0);
  1078 	virtual void OnPlaceObject(Point pt, TileIndex tile)
  1072 	virtual void OnPlaceObject(Point pt, TileIndex tile)
  1079 	{
  1073 	{
  1080 		_place_proc(tile);
  1074 		_place_proc(tile);
  1081 	}
  1075 	}
  1082 
  1076 
  1083 	virtual void OnPlaceObjectAbort()
       
  1084 	{
       
  1085 		this->RaiseWidget(25);
       
  1086 		this->SetDirty();
       
  1087 	}
       
  1088 
       
  1089 	virtual void OnResize(Point new_size, Point delta)
  1077 	virtual void OnResize(Point new_size, Point delta)
  1090 	{
  1078 	{
  1091 		/* There are 15 buttons plus some spacings if the space allows it.
  1079 		/* There are 15 buttons plus some spacings if the space allows it.
  1092 		 * Furthermore there are two panels of which one is non - essential
  1080 		 * Furthermore there are two panels of which one is non - essential
  1093 		 * and that one can be removed is the space is too small. */
  1081 		 * and that one can be removed is the space is too small. */