Mii
The best way to display user's Miis
When you want to source Mii imagery from a user, you use a mixture of JavaScript and the miip
protocol. This is useful for identifying various users to send letters to, with all of its 64x64px action.
Members
Member Name | Discussion |
---|---|
| Returns the amount of Miis this console has. Will not exceed 100. |
| Returns a boolean if the Mii at number index exists. This is helpful when looping to access via index from 100. |
| Returns a string with the Mii at index's name. |
Protocol
You have two ways of accessing Miis: via an index (IDX), or using the Mii's character ID (CID).
Regardless of what method, the miip://
protocol accepts a basic format:
You need to set a few params in order to use such a URL.
METHOD
must beIDX
orCID
.IDENTIFIER
is the value relating to what's mentioned above - be it an index of a Mii, or a friend's character ID.bgR
,bgG
andbgB
are the background of the Mii image in integer values. Instead of 0xff in hexadecimal, you would write 255.width
andheight
are the rendered size in pixels of this bmp.
IDX
Nintendo imposes a max of 100 Miis. Due to this, you can iterate an index from 0-99 and call wiiMii#isValidIcon(index)
to verify its validity.
For example, to show the images of all valid Miis and log names using the functions above:
CID
Every Mii has a unique ID (known as a Mii ID, character ID, or CID) derived from its creation timestamp and other data. (For more information, read the WiiBrew article.)
When you utilize NWC24 to retrieve the user's friends list, you are able to query a friend's attached Mii and retrieve a usable CID. (For more in-depth information about the friends list, see its available methods.) Internally, the CID is converted to a usable index.
For example, to iterate through all available friends and show their respective Miis:
Last updated