mbga.Avatar
- Object
- Method
- mbga.Avatar.Field
- mbga.Avatar.Field.ID
- mbga.Avatar.Field.SIZE
- mbga.Avatar.Field.VIEW
- mbga.Avatar.Field.EMOTION
- mbga.Avatar.Field.DIMENSION
- mbga.Avatar.Field.TRANSPARENT
- mbga.Avatar.Field.TYPE
- mbga.Avatar.Field.EXTENSION
- mbga.Avatar.Field.MOTION
- mbga.Avatar.Field.SCENE
- mbga.Avatar.Field.FPS
- mbga.Avatar.Field.MOIVIE_CLIP
- mbga.Avatar.Field.URL
- mbga.AvatarRequestFields
- mbga.AvatarRequest.SortBy
- mbga.AvatarRequest.SortOrder
- mbga.AvatarRequest.Format
- mbga.Enum.Avatar
Object
Name |
Type |
Description |
---|---|---|
id |
UserId |
– |
size |
EnumAvatarSize |
– |
view |
EnumAvatarView |
– |
emotion |
EnumAvatarEmotion |
– |
dimension |
EnumAvatarDimension |
– |
transparent |
Boolean |
– |
type |
EnumAvatarType |
– |
extension |
EnumAvatarExtension |
– |
motion |
Interger |
– |
scene |
AvatarMotionScenes |
– |
fps |
Integer |
– |
movieClip |
String |
– |
url |
String |
– |
The correspondence relationship between EnumAvatarSize, EnumAvatarView, and EnumAvatarExtension is as follows.
size |
view |
width |
height |
extension |
support |
---|---|---|---|---|---|
xlarge |
entire |
150 |
200 |
gif, swf |
true |
xlarge |
upper |
– |
– |
– |
false |
large |
entire |
120 |
160 |
gif, swf |
true |
large |
upper |
60 |
80 |
gif, swf |
true |
medium |
entire |
60 |
80 |
gif, swf |
true |
medium |
upper |
30 |
40 |
gif, swf |
true |
small |
entire |
30 |
40 |
gif, swf |
true |
small |
upper |
– |
– |
– |
false |
The correspondence relationship between EnumAvatarDimention, transparent is as follows.
dimension |
transparent |
support |
---|---|---|
2d |
true |
false |
2d |
false |
true |
3d |
true |
true |
3d |
false |
true |
EnumAvatarSize
Key |
Description |
---|---|
xlarge |
Can only be used when the Avatar.view is 'entire'. |
large |
– |
medium |
– |
small |
– |
AvatarMotionScenes
AvatarMotionScenes is string data in a format determined by the following BNF.
For example, if it is
then the scene label s1 is composed of frames 10 and 11, and there is no repeat. Then, scene label s2 is composed of frames 13 and 15, and 13, 15 will repeat.
This may be omitted if the view is upper, but it must be specified if it is entire.
Method
mbga.Avatar.getId
mbga.Avatar.getUrl
mbga.Avatar.getField
mbga.Avatar.setField
mbga.Avatar.Field
mbga.Avatar.Field.ID
The ID of the avatar image.
mbga.Avatar.Field.SIZE
The size of the avatar image. mbga.Enum.AvatarSize can be specified.
mbga.Avatar.Field.VIEW
The view of the avatar image. mbga.Enum.Avatar.View can be specified.
mbga.Avatar.Field.EMOTION
The emotion of the avatar image. mbga.Enum.Avatar.Emotion can be specified.
mbga.Avatar.Field.DIMENSION
The dimension of the avatar image. mbga.Enum.Avatar.Dimension can be specified (only 3D avatars are provided in the PC version).
mbga.Avatar.Field.TRANSPARENT
Whether or not the background of the avatar image is transparent.
mbga.Avatar.Field.TYPE
The type of avatar image. mbga.Enum.Avatar.Type can be specified.
mbga.Avatar.Field.EXTENSION
The extension of the avatar image. mbga.Enum.Avatar.Extension can be specified.
mbga.Avatar.Field.MOTION
The motion of the avatar image.
mbga.Avatar.Field.SCENE
The scene of the avatar image.
mbga.Avatar.Field.FPS
The fps of the avatar image (values between 0 and 35 may be specified)
mbga.Avatar.Field.MOVIE_CLIP
The movie clip of the avatar image.
mbga.Avatar.Field.URL
The URL of the avatar image.
mbga.AvatarRequestFields
A list of fields that can be used with mbga.newFetchAvatarRequest and mbga.requestFetchAvatar opt_params.
mbga.AvatarRequestFields.SORT_BY
mbga.BlackList.SortBy can be specified.
mbga.AvatarRequestFields.SORT_ORDER
mbga.AvatarRequest.SortOrder can be specified.
mbga.AvatarRequestFields.FORMAT
mbga.AvatarRequest.Format can be specified.
mbga.AvatarRequestFields.FIELDS
Specifies arrays with fields to be acquired from those in mbga.Avatar.Fields arranged.
mbga.AvatarRequest.SortBy
mbga.AvatarRequest.SortBy.ID
Sorts avatar objects based on mbga.Avatar.Field.ID. Below is a sample of acquiring data that has been sorted in ascending order of ID.
Sample
mbga.AvatarRequest.SortOrder
mbga.AvatarRequest.SortOrder.ASCENDING
Sorts avatar objects in ascending order of key value.
mbga.AvatarRequest.SortOrder.DESCENDING
Sorts avatar objects in the descending order of key value.
mbga.AvatarRequest.Format
mbga.AvatarRequest.Format.JSON
mbga.Enum.Avatar.Size
mbga.Enum.Avatar.Size.X_LARGE
Sets the size of the avatar image to extra large (150px × 200px).
mbga.Enum.Avatar.Size.LARGE
Sets the size of the avatar image to large (120px × 160px).
mbga.Enum.Avatar.Size.MEDIUM
Sets the size of the avatar image to medium (60px × 80px).
mbga.Enum.Avatar.Size.SMALL
Sets the size of the avatar image to small (30px × 40px).
mbga.Enum.Avatar.View
mbga.Enum.Avatar.View.ENTIRE
The view that shows the entire avatar image.
mbga.Enum.Avatar.View.UPPER
The view that shows the upper half of the avatar image.
mbga.Enum.Avatar.Emotion
mbga.Enum.Avatar.Emotion.DEFINED
Sets the emotion of the avatar image to the default value (specified by the user).
mbga.Enum.Avatar.Emotion.NORMAL
Sets the emotion of the avatar image to normal.
mbga.Enum.Avatar.Emotion.SMILE
Sets the emotion of the avatar image to smiling.
mbga.Enum.Avatar.Emotion.CRY
Sets the emotion of the avatar image to crying.
mbga.Enum.Avatar.Emotion.ANGRY
Sets the emotion of the avatar image to angry.
mbga.Enum.Avatar.Emotion.SHY
Sets the emotion of the avatar image to shy.
mbga.Enum.Avatar.Dimension
mbga.Enum.Avatar.Dimension.DEFINED
Sets the dimension of the avatar image to the default value (specified by the user).
mbga.Enum.Avatar.Dimension.THREE_DIMENSION
Sets the dimension of the avatar image to 3D.
mbga.Enum.Avatar.Type
mbga.Enum.Avatar.Type.IMAGE
Sets the type of the avatar image to normal image.
mbga.Enum.Avatar.Type.FLASH
Sets the type of the avatar image to FLASH.
mbga.Enum.Avatar.Extension
mbga.Enum.Avatar.Extension.GIF
Sets the extension of the avatar image to gif.
mbga.Enum.Avatar.Extension.SWF
Sets the extension of the avatar image to swf.
Revision History
- 12/2010
- Initial Release.