misc_gui.c
changeset 1914 5ede46fd496f
parent 1891 92a3b0aa0946
child 1935 f43f062c9498
equal deleted inserted replaced
1913:57f516fa418c 1914:5ede46fd496f
   159 	#endif
   159 	#endif
   160 }
   160 }
   161 
   161 
   162 void PlaceLandBlockInfo(void)
   162 void PlaceLandBlockInfo(void)
   163 {
   163 {
   164 	if (_cursor.sprite == 0x2CF) {
   164 	if (_cursor.sprite == SPR_CURSOR_QUERY) {
   165 		ResetObjectToPlace();
   165 		ResetObjectToPlace();
   166 	} else {
   166 	} else {
   167 		_place_proc = Place_LandInfo;
   167 		_place_proc = Place_LandInfo;
   168 		SetObjectToPlace(0x2CF, 1, 1, 0);
   168 		SetObjectToPlace(SPR_CURSOR_QUERY, 1, 1, 0);
   169 	}
   169 	}
   170 }
   170 }
   171 
   171 
   172 static const char *credits[] = {
   172 static const char *credits[] = {
   173 	/*************************************************************************
   173 	/*************************************************************************
   315 		case 7: case 8: case 9: case 10:
   315 		case 7: case 8: case 9: case 10:
   316 		case 11:case 12: case 13: case 14:
   316 		case 11:case 12: case 13: case 14:
   317 			if ( (uint)(wid-3) >= (uint)WP(w,tree_d).count)
   317 			if ( (uint)(wid-3) >= (uint)WP(w,tree_d).count)
   318 				return;
   318 				return;
   319 
   319 
   320 			if (HandlePlacePushButton(w, wid, 0x7DA, 1, NULL))
   320 			if (HandlePlacePushButton(w, wid, SPR_CURSOR_TREE, 1, NULL))
   321 				_tree_to_plant = WP(w,tree_d).base + wid - 3;
   321 				_tree_to_plant = WP(w,tree_d).base + wid - 3;
   322 			break;
   322 			break;
   323 
   323 
   324 		case 15: // tree of random type.
   324 		case 15: // tree of random type.
   325 			if (HandlePlacePushButton(w, 15, 0x7DA, 1, NULL))
   325 			if (HandlePlacePushButton(w, 15, SPR_CURSOR_TREE, 1, NULL))
   326 				_tree_to_plant = -1;
   326 				_tree_to_plant = -1;
   327 			break;
   327 			break;
   328 
   328 
   329 		case 16: /* place trees randomly over the landscape*/
   329 		case 16: /* place trees randomly over the landscape*/
   330 			w->click_state |= 1 << 16;
   330 			w->click_state |= 1 << 16;
  1387 
  1387 
  1388 void ShowSaveLoadDialog(int mode)
  1388 void ShowSaveLoadDialog(int mode)
  1389 {
  1389 {
  1390 	Window *w;
  1390 	Window *w;
  1391 
  1391 
  1392 	SetObjectToPlace(1, 0, 0, 0);
  1392 	SetObjectToPlace(SPR_CURSOR_ZZZ, 0, 0, 0);
  1393 	DeleteWindowById(WC_QUERY_STRING, 0);
  1393 	DeleteWindowById(WC_QUERY_STRING, 0);
  1394 	DeleteWindowById(WC_SAVELOAD, 0);
  1394 	DeleteWindowById(WC_SAVELOAD, 0);
  1395 
  1395 
  1396 	_saveload_mode = mode;
  1396 	_saveload_mode = mode;
  1397 	SETBIT(_no_scroll, SCROLL_SAVE);
  1397 	SETBIT(_no_scroll, SCROLL_SAVE);