src/gfxinit.cpp
branchgamebalance
changeset 9912 1ac8aac92385
parent 9911 0b8b245a2391
child 9913 e79cd19772dd
equal deleted inserted replaced
9911:0b8b245a2391 9912:1ac8aac92385
   206 static const SpriteID trg1idx[] = {
   206 static const SpriteID trg1idx[] = {
   207 	   0,    1, ///< Mouse cursor, ZZZ
   207 	   0,    1, ///< Mouse cursor, ZZZ
   208 /* Medium font */
   208 /* Medium font */
   209 	   2,   92, ///< ' ' till 'z'
   209 	   2,   92, ///< ' ' till 'z'
   210 	SKIP,   36,
   210 	SKIP,   36,
   211 	 160,  160, ///< Move  to the correct position
   211 	 160,  160, ///< Move Ÿ to the correct position
   212 	  98,   98, ///< Up arrow
   212 	  98,   98, ///< Up arrow
   213 	 131,  133,
   213 	 131,  133,
   214 	SKIP,    1, ///< skip currency sign
   214 	SKIP,    1, ///< skip currency sign
   215 	 135,  135,
   215 	 135,  135,
   216 	SKIP,    1,
   216 	SKIP,    1,
   231 	SKIP,    1,
   231 	SKIP,    1,
   232 	 161,  225,
   232 	 161,  225,
   233 /* Small font */
   233 /* Small font */
   234 	 226,  316, ///< ' ' till 'z'
   234 	 226,  316, ///< ' ' till 'z'
   235 	SKIP,   36,
   235 	SKIP,   36,
   236 	 384,  384, ///< Move  to the correct position
   236 	 384,  384, ///< Move Ÿ to the correct position
   237 	 322,  322, ///< Up arrow
   237 	 322,  322, ///< Up arrow
   238 	 355,  357,
   238 	 355,  357,
   239 	SKIP,    1, ///< skip currency sign
   239 	SKIP,    1, ///< skip currency sign
   240 	 359,  359,
   240 	 359,  359,
   241 	SKIP,    1,
   241 	SKIP,    1,
   253 	SKIP,    3,
   253 	SKIP,    3,
   254 	 385,  449,
   254 	 385,  449,
   255 /* Big font */
   255 /* Big font */
   256 	 450,  540, ///< ' ' till 'z'
   256 	 450,  540, ///< ' ' till 'z'
   257 	SKIP,   36,
   257 	SKIP,   36,
   258 	 608,  608, ///< Move  to the correct position
   258 	 608,  608, ///< Move Ÿ to the correct position
   259 	SKIP,    1,
   259 	SKIP,    1,
   260 	 579,  581,
   260 	 579,  581,
   261 	SKIP,    1,
   261 	SKIP,    1,
   262 	 583,  583,
   262 	 583,  583,
   263 	SKIP,    5,
   263 	SKIP,    5,
   292 	SPR_IMG_AUTORAIL, SPR_CURSOR_WAYPOINT, // icons etc
   292 	SPR_IMG_AUTORAIL, SPR_CURSOR_WAYPOINT, // icons etc
   293 	134, 134,  ///< euro symbol medium size
   293 	134, 134,  ///< euro symbol medium size
   294 	582, 582,  ///<  euro symbol large size
   294 	582, 582,  ///<  euro symbol large size
   295 	358, 358,  ///<  euro symbol tiny
   295 	358, 358,  ///<  euro symbol tiny
   296 	SPR_CURSOR_CANAL, SPR_IMG_FASTFORWARD, // more icons
   296 	SPR_CURSOR_CANAL, SPR_IMG_FASTFORWARD, // more icons
   297 	648, 648, ///<  nordic char: 
   297 	648, 648, ///<  nordic char: æ
   298 	616, 616, ///<  nordic char: 
   298 	616, 616, ///<  nordic char: Æ
   299 	666, 666, ///<  nordic char: 
   299 	666, 666, ///<  nordic char: ø
   300 	634, 634, ///<  nordic char: 
   300 	634, 634, ///<  nordic char: Ø
   301 	SPR_PIN_UP, SPR_CURSOR_CLONE_TRAIN, // more icons
   301 	SPR_PIN_UP, SPR_CURSOR_CLONE_TRAIN, // more icons
   302 	382, 383, ///<    tiny
   302 	382, 383, ///<  Œ œ tiny
   303 	158, 159, ///<    medium
   303 	158, 159, ///<  Œ œ medium
   304 	606, 607, ///<    large
   304 	606, 607, ///<  Œ œ large
   305 	360, 360, ///<   tiny
   305 	360, 360, ///<  Š tiny
   306 	362, 362, ///<   tiny
   306 	362, 362, ///<  š tiny
   307 	136, 136, ///<   medium
   307 	136, 136, ///<  Š medium
   308 	138, 138, ///<   medium
   308 	138, 138, ///<  š medium
   309 	584, 584, ///<   large
   309 	584, 584, ///<  Š large
   310 	586, 586, ///<   large
   310 	586, 586, ///<  š large
   311 	626, 626, ///<   large
   311 	626, 626, ///<  Ð large
   312 	658, 658, ///<   large
   312 	658, 658, ///<  ð large
   313 	374, 374, ///<   tiny
   313 	374, 374, ///<  Ž tiny
   314 	378, 378, ///<   tiny
   314 	378, 378, ///<  ž tiny
   315 	150, 150, ///<   medium
   315 	150, 150, ///<  Ž medium
   316 	154, 154, ///<   medium
   316 	154, 154, ///<  ž medium
   317 	598, 598, ///<   large
   317 	598, 598, ///<  Ž large
   318 	602, 602, ///<   large
   318 	602, 602, ///<  ž large
   319 	640, 640, ///<   large
   319 	640, 640, ///<  Þ large
   320 	672, 672, ///<   large
   320 	672, 672, ///<  þ large
   321 	380, 380, ///<   tiny
   321 	380, 380, ///<  º tiny
   322 	156, 156, ///<   medium
   322 	156, 156, ///<  º medium
   323 	604, 604, ///<   large
   323 	604, 604, ///<  º large
   324 	317, 320, ///<  { | } ~ tiny
   324 	317, 320, ///<  { | } ~ tiny
   325 	 93,  96, ///<  { | } ~ medium
   325 	 93,  96, ///<  { | } ~ medium
   326 	541, 544, ///<  { | } ~ large
   326 	541, 544, ///<  { | } ~ large
   327 	SPR_HOUSE_ICON, SPR_HOUSE_ICON,
   327 	SPR_HOUSE_ICON, SPR_HOUSE_ICON,
   328 	585, 585, ///<   large
   328 	585, 585, ///<  § large
   329 	587, 587, ///<   large
   329 	587, 587, ///<  © large
   330 	592, 592, ///<   large
   330 	592, 592, ///<  ® large
   331 	594, 597, ///<      large
   331 	594, 597, ///<  ° ± ² ³ large
   332 	633, 633, ///<   large
   332 	633, 633, ///<  × large
   333 	665, 665, ///<   large
   333 	665, 665, ///<  ÷ large
   334 	SPR_SELL_TRAIN, SPR_SHARED_ORDERS_ICON,
   334 	SPR_SELL_TRAIN, SPR_SHARED_ORDERS_ICON,
   335 	377, 377, ///<   small
   335 	377, 377, ///<  · small
   336 	153, 153, ///<   medium
   336 	153, 153, ///<  · medium
   337 	601, 601, ///<   large
   337 	601, 601, ///<  · large
   338 	SPR_WARNING_SIGN, SPR_WARNING_SIGN,
   338 	SPR_WARNING_SIGN, SPR_WARNING_SIGN,
   339 	END
   339 	END
   340 };
   340 };
   341 
   341 
   342 
   342 
   394 	load_index += LoadGrfFile("roadstops.grf", load_index, i++);
   394 	load_index += LoadGrfFile("roadstops.grf", load_index, i++);
   395 
   395 
   396 	assert(load_index == SPR_GROUP_BASE);
   396 	assert(load_index == SPR_GROUP_BASE);
   397 	load_index += LoadGrfFile("group.grf", load_index, i++);
   397 	load_index += LoadGrfFile("group.grf", load_index, i++);
   398 
   398 
       
   399 	assert(load_index == SPR_TRAMWAY_BASE);
       
   400 	load_index += LoadGrfFile("tramtrkw.grf", load_index, i++);
       
   401 
       
   402 	assert(load_index == SPR_ONEWAY_BASE);
       
   403 	load_index += LoadGrfFile("oneway.grf", load_index, i++);
       
   404 
       
   405 	assert(load_index == SPR_FLAGS_BASE);
       
   406 	load_index += LoadGrfFile("flags.grf", load_index, i++);
       
   407 
   399 	/* Initialize the unicode to sprite mapping table */
   408 	/* Initialize the unicode to sprite mapping table */
   400 	InitializeUnicodeGlyphMap();
   409 	InitializeUnicodeGlyphMap();
   401 
   410 
   402 	LoadNewGRF(load_index, i);
   411 	LoadNewGRF(load_index, i);
   403 }
   412 }