src/industry_gui.cpp
changeset 6573 7624f942237f
parent 6527 f584ab6d87f8
child 6719 4cc327ad39d5
child 6987 b0f13039bda2
child 9601 b499fdd106d5
child 9903 dc85aaa556ae
equal deleted inserted replaced
6572:e35266003390 6573:7624f942237f
   269 	&_build_industry_land2_desc_extra,
   269 	&_build_industry_land2_desc_extra,
   270 	&_build_industry_land3_desc_extra,
   270 	&_build_industry_land3_desc_extra,
   271 	},
   271 	},
   272 };
   272 };
   273 
   273 
   274 void ShowBuildIndustryWindow(void)
   274 void ShowBuildIndustryWindow()
   275 {
   275 {
   276 	if (!IsValidPlayer(_current_player)) return;
   276 	if (!IsValidPlayer(_current_player)) return;
   277 	AllocateWindowDescFront(_industry_window_desc[_patches.build_rawmaterial_ind][_opt_ptr->landscape],0);
   277 	AllocateWindowDescFront(_industry_window_desc[_patches.build_rawmaterial_ind][_opt_ptr->landscape],0);
   278 }
   278 }
   279 
   279 
   559  * Makes a sorted industry list.
   559  * Makes a sorted industry list.
   560  * When there are no industries, the list has to be made. This so when one
   560  * When there are no industries, the list has to be made. This so when one
   561  * starts a new game without industries after playing a game with industries
   561  * starts a new game without industries after playing a game with industries
   562  * the list is not populated with invalid industries from the previous game.
   562  * the list is not populated with invalid industries from the previous game.
   563  */
   563  */
   564 static void MakeSortedIndustryList(void)
   564 static void MakeSortedIndustryList()
   565 {
   565 {
   566 	const Industry* i;
   566 	const Industry* i;
   567 	int n = 0;
   567 	int n = 0;
   568 
   568 
   569 	/* Create array for sorting */
   569 	/* Create array for sorting */
   688 	_industry_directory_widgets,
   688 	_industry_directory_widgets,
   689 	IndustryDirectoryWndProc
   689 	IndustryDirectoryWndProc
   690 };
   690 };
   691 
   691 
   692 
   692 
   693 void ShowIndustryDirectory(void)
   693 void ShowIndustryDirectory()
   694 {
   694 {
   695 	Window *w = AllocateWindowDescFront(&_industry_directory_desc, 0);
   695 	Window *w = AllocateWindowDescFront(&_industry_directory_desc, 0);
   696 
   696 
   697 	if (w != NULL) {
   697 	if (w != NULL) {
   698 		w->vscroll.cap = 16;
   698 		w->vscroll.cap = 16;