src/misc_gui.cpp
changeset 8385 aedd7656cfd1
parent 8355 d2fd84767817
child 8418 b49fc6be1ab9
equal deleted inserted replaced
8384:cda01fb6ec2a 8385:aedd7656cfd1
   197 {
   197 {
   198 	if (_cursor.sprite == SPR_CURSOR_QUERY) {
   198 	if (_cursor.sprite == SPR_CURSOR_QUERY) {
   199 		ResetObjectToPlace();
   199 		ResetObjectToPlace();
   200 	} else {
   200 	} else {
   201 		_place_proc = Place_LandInfo;
   201 		_place_proc = Place_LandInfo;
   202 		SetObjectToPlace(SPR_CURSOR_QUERY, PAL_NONE, 1, WC_MAIN_TOOLBAR, 0);
   202 		SetObjectToPlace(SPR_CURSOR_QUERY, PAL_NONE, VHM_RECT, WC_MAIN_TOOLBAR, 0);
   203 	}
   203 	}
   204 }
   204 }
   205 
   205 
   206 static const char *credits[] = {
   206 static const char *credits[] = {
   207 	/*************************************************************************
   207 	/*************************************************************************
   364 		case 3: case 4: case 5: case 6:
   364 		case 3: case 4: case 5: case 6:
   365 		case 7: case 8: case 9: case 10:
   365 		case 7: case 8: case 9: case 10:
   366 		case 11:case 12: case 13: case 14:
   366 		case 11:case 12: case 13: case 14:
   367 			if (wid - 3 >= WP(w,tree_d).count) break;
   367 			if (wid - 3 >= WP(w,tree_d).count) break;
   368 
   368 
   369 			if (HandlePlacePushButton(w, wid, SPR_CURSOR_TREE, 1, NULL))
   369 			if (HandlePlacePushButton(w, wid, SPR_CURSOR_TREE, VHM_RECT, NULL))
   370 				_tree_to_plant = WP(w,tree_d).base + wid - 3;
   370 				_tree_to_plant = WP(w,tree_d).base + wid - 3;
   371 			break;
   371 			break;
   372 
   372 
   373 		case 15: // tree of random type.
   373 		case 15: // tree of random type.
   374 			if (HandlePlacePushButton(w, 15, SPR_CURSOR_TREE, 1, NULL))
   374 			if (HandlePlacePushButton(w, 15, SPR_CURSOR_TREE, VHM_RECT, NULL))
   375 				_tree_to_plant = -1;
   375 				_tree_to_plant = -1;
   376 			break;
   376 			break;
   377 
   377 
   378 		case 16: // place trees randomly over the landscape
   378 		case 16: // place trees randomly over the landscape
   379 			LowerWindowWidget(w, 16);
   379 			LowerWindowWidget(w, 16);
  1673 
  1673 
  1674 	Window *w;
  1674 	Window *w;
  1675 	const WindowDesc *sld = &_save_dialog_desc;
  1675 	const WindowDesc *sld = &_save_dialog_desc;
  1676 
  1676 
  1677 
  1677 
  1678 	SetObjectToPlace(SPR_CURSOR_ZZZ, PAL_NONE, 0, WC_MAIN_WINDOW, 0);
  1678 	SetObjectToPlace(SPR_CURSOR_ZZZ, PAL_NONE, VHM_NONE, WC_MAIN_WINDOW, 0);
  1679 	DeleteWindowById(WC_QUERY_STRING, 0);
  1679 	DeleteWindowById(WC_QUERY_STRING, 0);
  1680 	DeleteWindowById(WC_SAVELOAD, 0);
  1680 	DeleteWindowById(WC_SAVELOAD, 0);
  1681 
  1681 
  1682 	_saveload_mode = mode;
  1682 	_saveload_mode = mode;
  1683 	SETBIT(_no_scroll, SCROLL_SAVE);
  1683 	SETBIT(_no_scroll, SCROLL_SAVE);