# MB_ICON_*,MB_GAME_*,MB_USER_*

## Definition

  `#include <nitro/mb.h>`

      #define MB_ICON_COLOR_NUM        16                      // Number of icon colors
      #define MB_ICON_PALETTE_SIZE     (MB_ICON_COLOR_NUM * 2)  // Icon palette size (16 bits of color x number of colors)
      #define MB_ICON_DATA_SIZE        512                      // Icon data size (32x32 dots, 16 colors)
      #define MB_GAME_NAME_LENGTH      48                   // Game name length (2-byte units) // Note: Specify to within the number of characters shown  // to the left and within a width of 185 dots.
      #define MB_GAME_INTRO_LENGTH     96                       // Game description length (2-byte units) // Note: Specify to within the number of characters shown  // to the left and within a width of 199 dots x 2.
      #define MB_USER_NAME_LENGTH      10                       // User name length (2-byte units)

## Description

These are the prescribed constants that relate to game information and user information in the MB library. The meaning of each enumerator constant is shown in the following table:

Constant | Description
MB_ICON_COLOR_NUM | Maximum value for the number of palette colors in the icon that is used for download game display. This is fixed at 16 colors.
MB_ICON_PALETTE_SIZE | Palette data size for the icon that is used for download game display. Regardless of the number of colors that are actually used, this will be a array of 16 colors' worth of `GXRgb`-type data.
MB_ICON_DATA_SIZE | Image data size for the icon that is used for download game display. This is fixed as a `32 x 32`-pixel, `16`-color indexed color bitmap.

MB_GAME_NAME_LENGTH

The maximum number of characters in the download game name. This is fixed at `48` characters.
Because the string is handled using `UTF16-LE` wide characters, the number of characters will be `sizeof(wchar_t)` multiplied by the number of bytes.
When displaying for IPL, the length must fit within `185` pixels.
?

MB_GAME_INTRO_LENGTH

The maximum number of characters in the download game name description.
This is fixed at `96` characters.
Because the string is handled using `UTF16-LE` wide characters, the number of characters will be `sizeof(wchar_t)` multiplied by the number of bytes.
When displaying for IPL, the length must fit within `2` rows of `199` pixels each.
?

MB_USER_NAME_LENGTH | The maximum number of characters in the user name. This is fixed at `10` characters. Because the string is handled using `UTF16-LE` wide characters, the number of characters will be `sizeof(wchar_t)` multiplied by the number of bytes.

## See Also

`MBGameRegistry`

## Revision History

2004/10/05 Corrected links.
2004/09/27 Initial version.

CONFIDENTIAL