3ds-theme-parser 中文文档教程

发布于 7年前 浏览 27 更新于 3年前

3ds-theme-parser

解析并提取 3DS body_LZ.bin 主题文件。

CLI

Usage: 3ds-theme-parser body_lz_bin [output_directory] [options]

Options:
  --save-body, -B        Save the extracted body.bin                   [boolean]
  --pretty-json, -p      Format the JSON with indents                  [boolean]
  --save-json, -j, -A    Write JSON of the body_LZ data to data.json   [boolean]
  --output-json, -J      Write JSON of the body_LZ data to STDOUT      [boolean]
  --save-images, -i, -A  Save the images                               [boolean]
  --save-cwavs, -c, -A   Save the CWAV sound effects                   [boolean]
  --apply-alpha, -a      Apply alpha masks to the folder images        [boolean]
  --process-borders, -b  Process the icon border into a complete image [boolean]
  --json-textures        Include the textures in the output JSON
                         WARNING: RESULTS IN LARGE JSON!               [boolean]
  --json-cwavs           Include the CWAVs in the output JSON
                         WARNING: RESULTS IN LARGE JSON!               [boolean]

API Reference

Classes

ThemeInfo

Typedefs

ThemeInfoObject : Object

这是包含主题信息的顶级对象 包含

TopScreenObject : Object

关于顶层屏幕的各种信息

TopScreenBackgroundObject : Object

包含关于顶层屏幕背景

BottomScreenObject : Object

的信息 包含关于底层屏幕的

BottomScreenBackgroundObject : Object

信息 关于底层屏幕背景的信息

ColorsObject : Object

这包含主题中使用的所有颜色

CursorColor : Object

四种 RGB 颜色影响光标的扩展和收缩。

Folder3DModelColor : Object

这包含 3D 文件夹模型的颜色。

CartridgeColor : Object

这包含影响为 DSiWare 显示的购物车图标和文件夹中显示的文件图形的颜色。

PagerObject : Object

这包含影响寻呼机​​的颜色。

PagerButtonColor : Object

这包含影响寻呼机​​按钮的颜色。

PagerArrowColor : Object

这包含影响寻呼机​​箭头的颜色。

OpenCloseButtonObject : Object

包含显示在底部屏幕上的打开和关闭按钮的 RGB 数据。

OpenCloseButtonColor : Object

包含用于打开/关闭按钮颜色的

OpenCloseButtonTextColor : Object

三种颜色 包含用于打开/关闭按钮文本颜色的三种颜色

ZoomedTextObject : Object

包含影响缩放到最大级别时出现在游戏图标上方的文本的颜色数据。

BottomScreenIconAreaObject : Object

包含与底部屏幕图标区域相关的信息。 当绘图类型设置为纯色时使用。

FolderBackgroundObject : Object

包含与文件夹背景相关的信息。

SettingsAndResizeObject : Object

包含影响底部屏幕图标大小和设置按钮的颜色。

ActivateCameraOverlayObject : Object

包含“按下以激活相机”覆盖层的颜色。

DemoUsesRemainingObject : Object

包含消息的颜色,告诉您剩余的演示使用次数。

BottomScreenOuterAreaObject : Object

包含与底部屏幕外部区域相关的颜色。 当绘图类型设置为纯色时使用。

TexturesObject : Object
CWAVSObject : Object

包含所有音效的 CWAV 数据缓冲区。

RGBObject : Object

这描述了 RGB 颜色

RGBAObject : Object

这描述了 RGBA 颜色

TiledImageObject : Object

具有平铺图像位图数据、大小和裁剪尺寸的对象。

ThemeInfo

Kind:全局类

new ThemeInfo(bodyBuffer)

ThemeInfo 构造函数。

ParamTypeDescription
bodyBufferBufferThe body_LZ.bin buffer to parse

themeInfo.getData([callback]) ⇒ Promise.<ThemeInfoObject>

这是主要功能,它将解析body_LZ.bin 数据并输出一个javascript 对象。

KindThemeInfo
的实例方法 返回Promise.<ThemeInfoObject> - 主题信息

ParamTypeDescription
[callback]functionAn optional node.js style callback

ThemeInfoObject : Object

这是包含主题信息的顶级对象

Kind: global typedef
Properties

NameTypeDescription
enableBGMBooleanIf background music is enabled
customSFXBooleanIf custom sound effects are used
customFoldersBooleanIf custom folder images are used
customCartridgeColorsBooleanIf custom cartridge colors are used
customBordersBooleanIf custom border images are used
customTopScreenBackgroundBooleanIf the top screen has a custom background image
customBottomScreenBackgroundBooleanIf the bottom screen has a custom background image
topScreenTopScreenObjectAn object containing information about the top screen
bottomScreenBottomScreenObjectAn object containing information about the bottom screen
colorsColorsObjectAn object containing information about all of the theme colors
texturesTexturesObjectAn object containing all of the theme textures
cwavsCWAVSObjectAn object containing all of the theme sound effects

TopScreenObject : Object

包含关于top screen的各种信息

Kind: global typedef
Properties

NameTypeDescription
drawTypeIntegerTop screen draw type: 0 = none, 1 = solid color, 2 = solid color with textured squares, 3 = texture.
frameTypeInteger | undefinedTop screen frame type, when draw-type is 3: 0 = texture1 (regular scrolling speed), 1 = texture0 (no scroll), 3 = texture1 (slow scrolling speed).
topScreen.backgroundTopScreenBackgroundObjectContains information about the top screen background
topScreen.squareOpacityFloatControls the opacity of the squares that float in front of the background, ranges from 0 - 1.

TopScreenBackgroundObject : Object

包含关于顶部屏幕背景的信息

Kind: global typedef
Properties

NameTypeDescription
textureTiledImageObject | undefinedThe top screen texture when drawType allows it.
colorRGBObject | undefinedThe top screen background color if drawType is set to either 1 or 2.
gradientInteger | undefinedThe top screen background gradient (0=none, 255=fade all the way to white at the top)

BottomScreenObject : Object

包含关于底部屏幕的信息

Kind: global typedef
Properties

NameTypeDescription
backgroundBottomScreenBackgroundObjectInformation about the bottom screen background
drawTypeIntegerThe bottom screen draw type: 0 = none, 1 = solid color(see below), 2 = invalid, 3 = texture.
framTypeIntegerThe bottom screen frame type when draw-type is 3: 0 = texture4 (regular scroll), 1 = texture2 (no scroll), 2 = texture3 (flipbook scroll, 0 > 1 > 2 > 0), 3 = texture4 (slow scroll), 4 = texture3 (flipbook scroll, 0 > 1 > 2 > 1 > 0).

BottomScreenBackgroundObject : Object

底屏背景信息

Kind: global typedef
Properties

NameTypeDescription
textureTiledImageObject | undefinedThe bottom screen background image

ColorsObject : Object

这包含主题中使用的所有颜色

Kind:全局 typedef
属性

NameTypeDescription
cursorCursorColor | undefinedFour RGB colors that affect the cursor as it expands and contracts.
folder3DModelFolder3DModelColor | undefinedThis contains colors for the 3D folder model.
cartridgeCartridgeColor | undefinedThis contains colors that affect both the cart icon that appears for DSiWare, and the file graphic that appears in folders.
folderTopHighlightRGBObject | undefinedThe highlight used at the top of a folder icon
pagerPagerObject | undefinedThis contains colors that affect the the pager.
openButtonOpenCloseButtonObject | undefinedContains RGB data for the open button that appears on the bottom screen when an app is under the cursor.
closeButtonOpenCloseButtonObject | undefinedContains RGB data for the close button that appears when home button pressed from within a app.
zoomedTextZoomedTextObject | undefinedContains color data that affects the text that appears above game icons when zoomed to the maximum level.
bottomScreenIconAreaBottomScreenIconAreaObject | undefinedContains colors related to the bottom screen icon area. Used when the draw-type is set to solid color.
bottomScreenOuterAreaBottomScreenOuterAreaObject | undefinedContains colors releated to the bottom screen outer area. Used when the draw-type is set to solid color.
folderBackgroundFolderBackgroundObject | undefinedContains information related to the background of folders.
settingsAndResizeSettingsAndResizeObject | undefinedContains colors that affect the bottom screen icon-resize and settings buttons.
activateCameraOverlayActivateCameraOverlayObject | undefinedContains colors for the "press to activate camera" overlay.
demoUsesRemainingDemoUsesRemainingObject | undefinedContains colors for the message that tells you how many demo uses you have remaining.
topScreenBackgroundRGBObject | undefinedThe top screen background color if drawType is set to either 1 or 2.

CursorColor : Object

影响光标扩展和收缩的四种 RGB 颜色。

种类:全局类型定义
Properties

NameTypeDescription
borderRGBObjectThe cursor border color
mainRGBObjectThe cursor main color
unknownRGBObjectAn unknown color
expandedGlowRGBObjectThe glow of the expanded cursor

Folder3DModelColor : Object

这包含 3D 文件夹模型的颜色。

种类:全局类型定义
属性

NameTypeDescription
mainRGBObjectThe main color
shadowedRGBObjectThe shadowed color

CartridgeColor : Object

这包含影响为 DSiWare 显示的购物车图标和文件夹中显示的文件图形的颜色。

种类:全局类型定义
属性

NameTypeDescription
mainRGBObjectThe main color
bottomShadowRGBObjectThe bottom shadow color

PagerObject : Object

这包含影响寻呼机​​的颜色。

种类:全局类型定义
属性

NameTypeDescription
buttonPagerButtonColor | undefinedThis contains colors that affect the button of the pager
arrowPagerArrowColor | undefinedThis contains colors that affect the arrows of the pager

PagerButtonColor : Object

这包含影响寻呼机​​按钮的颜色。

种类:全局类型定义
属性

NameTypeDescription
downwardSheenRGBObjectThe downward sheen color
mainRGBObjectThe main color
leftwardSheenRGBObjectThe leftward sheen color

PagerArrowColor : Object

这包含影响寻呼机​​箭头的颜色。

种类:全局类型定义
Properties

NameTypeDescription
edgeRGBObjectThe edge color
unpressedRGBObjectThe unpressed color
pressedRGBObjectThe pressed color

OpenCloseButtonObject : Object

包含显示在底部屏幕上的打开和关闭按钮的 RGB 数据。

种类:全局类型定义
Properties

NameTypeDescription
buttonOpenCloseButtonColorThe colors for the button
textOpenCloseButtonTextColorThe colors for the button text

OpenCloseButtonColor : Object

包含三种用于打开/关闭按钮颜色的颜色

Kind: global typedef
Properties

NameTypeDescription
pressedRGBObjectThe button background when pressed
unpressedRGBObjectThe button background when not pressed
borderRGBObjectThe button border color

OpenCloseButtonTextColor : Object

包含三种用于打开/关闭按钮文本颜色的颜色

Kind: global typedef
Properties

NameTypeDescription
pressedRGBObjectThe pressed text color
unpressedRGBObjectThe unpressed text color
shadoowRGBObjectThe text shadow color

ZoomedTextObject : Object

包含影响缩放到最大级别时出现在游戏图标上方的文本的颜色数据。

种类:全局类型定义
Properties

NameTypeDescription
backgroundRGBObjectThe background color
textRGBObjectThe text color

BottomScreenIconAreaObject : Object

包含与底部屏幕图标区域相关的信息。 当绘图类型设置为纯色时使用。

种类:全局类型定义
Properties

NameTypeDescription
emptySlotShadowRGBObjectThe shadow color at the top of an empty slot
backgroundRGBObjectThe background color
emptySlotBorderRGBObjectThe empty slot border color
folderGlowRGBAObjectThe shadow / glow around the folder area

FolderBackgroundObject : Object

包含与文件夹背景相关的信息。

种类:全局类型定义
属性

NameTypeDescription
emptySlotShadowRGBObjectThe empty slot shadow color
backgroundRGBObjectThe background color
borderRGBObjectThe border color

SettingsAndResizeObject : Object

包含影响底部屏幕图标大小和设置按钮的颜色。

种类:全局类型定义
属性

NameTypeDescription
leftBoxShadowRGBObjectThe left box shadow (subtle)
backgroundRGBObjectThe background color
borderRGBObjectThe border color
iconGradientArray.<RGBObject>A two value array that contains the color values for the icon gradient.
pressedRGBObjectThe pressed color
rightBoxShadowRGBObjectThe color right shadow (subtle)

ActivateCameraOverlayObject : Object

包含“按下以激活相机”覆盖层的颜色。

种类:全局类型定义
Properties

NameTypeDescription
backgroundRGBObjectThe background color
textRGBObjectThe text color

DemoUsesRemainingObject : Object

包含消息的颜色,告诉您剩余的演示使用次数。

种类:全局类型定义
Properties

NameTypeDescription
backgroundRGBObjectThe background color
textRGBObjectThe text color

BottomScreenOuterAreaObject : Object

包含与底部屏幕外部区域相关的颜色。 当绘图类型设置为纯色时使用。

种类:全局类型定义
属性

NameTypeDescription
stripedRGBObjectThe striped color
backgroundRGBObjectThe background color
edgeGlowRGBObjectThe edge glow color

TexturesObject : Object

种类:全局typedef
Properties

NameTypeDescription
topBackgroundTiledImageObject | undefinedThis is the texture used for the top-screen background when topScreen.frameType = 1, Used for backgrounds that don't scroll.
topScrollingBackgroundTiledImageObject | undefinedThis is the texture used for the top-screen background when topScreen.frameType = 0 or 3, Used for backgrounds that scroll.
bottomBackgroundTiledImageObject | undefinedThis is the texture used for the bottom-screen background when bottomScreen.frameType = 1, Used for backgrounds that don't scroll.
bottomFlipbookBackgroundTiledImageObject | undefinedThis is the texture used for the bottom-screen background when bottomScreen.frameType = 2 or 4, Split into three separate 320x240 textures that it jumps through like a flipbook.
bottomScrollingBackgroundTiledImageObject | undefinedThis is the texture used for the bottom-screen background when bottomScreen.frameType = 0 or 3, Used for backgrounds that scroll.
movingPatternTiledImageObject | undefinedThis is used with the top screen when topScreen.drawType = 2, see above. Used to tile the top screen in much the same way as the white squares that appear when no theme is selected, this is the moving pattern, it is rotated 90 degrees.
stillPatternTiledImageObject | undefinedtextures.movingPattern This is used with the top screen when topScreen.drawType = 2, see above. Used to tile the top screen in much the same way as the white squares that appear when no theme is selected, this is the still pattern, it is rotated 90 degrees.
closedFolderTiledImageObject | undefinedThis is used for closed folders on the main menu.
openFolderTiledImageObject | undefinedThis is used for open folders on the main menu.
largeIconBorderTiledImageObject | undefinedThis is used for 48x48 icon borders on the main menu.
smallIconBorderTiledImageObject | undefinedThis is used for 24x24 icon borders on the main menu.

CWAVSObject : Object

包含所有音效的 CWAV 数据缓冲区。

种类:全局类型定义
Properties

NameTypeDescription
cursorBuffer | undefinedThe sound for cusor movement
LaunchBuffer | undefinedThe sound for application launch
folderBuffer | undefinedThe sound for folder buttons
cancelBuffer | undefinedThe sound for cancel buttons
frame0Buffer | undefined
frame1Buffer | undefined
frame2Buffer | undefined
openLidBuffer | undefinedThe sound for when the lid is opened

RGBObject : Object

这描述了一个RGB颜色

Kind: global typedef
Properties

NameTypeDescription
rIntegerRed channel from 0 - 255
gIntegerGreen channel from 0 - 255
bIntegerBlue channel from 0 - 255

RGBAObject : Object

这描述了一个RGBA颜色

Kind: global typedef
属性

NameTypeDescription
rIntegerRed channel from 0 - 255
gIntegerGreen channel from 0 - 255
bIntegerBlue channel from 0 - 255
aIntegerAlpha channel from 0 - 255

TiledImageObject : Object

具有平铺图像位图数据、大小和裁剪尺寸的对象。

种类:全局类型定义
属性

NameTypeDescription
dataBufferThe image bitmap data buffer
widthIntegerThe image width
heightIntegerThe image height
cropWidthIntegerThe image crop width
cropHeightIntegerThe image crop height
typeStringThe image type, one of the following: rgb565, bgr888, a8
tagStringA string identifying the image, see TextureKind.js

3ds-theme-parser

Parses and extracts 3DS body_LZ.bin theme files.

CLI

Usage: 3ds-theme-parser body_lz_bin [output_directory] [options]

Options:
  --save-body, -B        Save the extracted body.bin                   [boolean]
  --pretty-json, -p      Format the JSON with indents                  [boolean]
  --save-json, -j, -A    Write JSON of the body_LZ data to data.json   [boolean]
  --output-json, -J      Write JSON of the body_LZ data to STDOUT      [boolean]
  --save-images, -i, -A  Save the images                               [boolean]
  --save-cwavs, -c, -A   Save the CWAV sound effects                   [boolean]
  --apply-alpha, -a      Apply alpha masks to the folder images        [boolean]
  --process-borders, -b  Process the icon border into a complete image [boolean]
  --json-textures        Include the textures in the output JSON
                         WARNING: RESULTS IN LARGE JSON!               [boolean]
  --json-cwavs           Include the CWAVs in the output JSON
                         WARNING: RESULTS IN LARGE JSON!               [boolean]

API Reference

Classes

ThemeInfo

Typedefs

ThemeInfoObject : Object

This is the top-level object containing the theme information

TopScreenObject : Object

Contains various information about the top screen

TopScreenBackgroundObject : Object

Contains information about the top screen background

BottomScreenObject : Object

Contains information about the bottom screen

BottomScreenBackgroundObject : Object

Information about the bottom screen background

ColorsObject : Object

This contains all of the colors used in the theme

CursorColor : Object

Four RGB colors that affect the cursor as it expands and contracts.

Folder3DModelColor : Object

This contains colors for the 3D folder model.

CartridgeColor : Object

This contains colors that affect both the cart icon that appears for DSiWare, and the file graphic that appears in folders.

PagerObject : Object

This contains colors that affect the the pager.

PagerButtonColor : Object

This contains colors that affect the buttons of the pager.

PagerArrowColor : Object

This contains colors that affect the arrows of the pager.

OpenCloseButtonObject : Object

Contains RGB data for the open and close buttons that appear on the bottom screen.

OpenCloseButtonColor : Object

Contains three colors that are used for the open/close button color

OpenCloseButtonTextColor : Object

Contains three colors that are used for the open/close button text color

ZoomedTextObject : Object

Contains color data that affects the text that appears above game icons when zoomed to the maximum level.

BottomScreenIconAreaObject : Object

Contains information related to the bottom screen icon area. Used when the draw-type is set to solid color.

FolderBackgroundObject : Object

Contains information related to the background of folders.

SettingsAndResizeObject : Object

Contains colors that affect the bottom screen icon-resize and settings buttons.

ActivateCameraOverlayObject : Object

Contains colors for the "press to activate camera" overlay.

DemoUsesRemainingObject : Object

Contains colors for the message that tells you how many demo uses you have remaining.

BottomScreenOuterAreaObject : Object

Contains colors related to the bottom screen outer area. Used when the draw-type is set to solid color.

TexturesObject : Object
CWAVSObject : Object

Contains buffers of CWAV data for all of the sound effects.

RGBObject : Object

This describes a RGB color

RGBAObject : Object

This describes a RGBA color

TiledImageObject : Object

An object with the tiled image bitmap data, size, and crop dimensions.

ThemeInfo

Kind: global class

new ThemeInfo(bodyBuffer)

The ThemeInfo constructor.

ParamTypeDescription
bodyBufferBufferThe body_LZ.bin buffer to parse

themeInfo.getData([callback]) ⇒ Promise.<ThemeInfoObject>

This is the main function, it will parse the body_LZ.bin data and output a javascript object.

Kind: instance method of ThemeInfo
Returns: Promise.<ThemeInfoObject> - The theme info

ParamTypeDescription
[callback]functionAn optional node.js style callback

ThemeInfoObject : Object

This is the top-level object containing the theme information

Kind: global typedef
Properties

NameTypeDescription
enableBGMBooleanIf background music is enabled
customSFXBooleanIf custom sound effects are used
customFoldersBooleanIf custom folder images are used
customCartridgeColorsBooleanIf custom cartridge colors are used
customBordersBooleanIf custom border images are used
customTopScreenBackgroundBooleanIf the top screen has a custom background image
customBottomScreenBackgroundBooleanIf the bottom screen has a custom background image
topScreenTopScreenObjectAn object containing information about the top screen
bottomScreenBottomScreenObjectAn object containing information about the bottom screen
colorsColorsObjectAn object containing information about all of the theme colors
texturesTexturesObjectAn object containing all of the theme textures
cwavsCWAVSObjectAn object containing all of the theme sound effects

TopScreenObject : Object

Contains various information about the top screen

Kind: global typedef
Properties

NameTypeDescription
drawTypeIntegerTop screen draw type: 0 = none, 1 = solid color, 2 = solid color with textured squares, 3 = texture.
frameTypeInteger | undefinedTop screen frame type, when draw-type is 3: 0 = texture1 (regular scrolling speed), 1 = texture0 (no scroll), 3 = texture1 (slow scrolling speed).
topScreen.backgroundTopScreenBackgroundObjectContains information about the top screen background
topScreen.squareOpacityFloatControls the opacity of the squares that float in front of the background, ranges from 0 - 1.

TopScreenBackgroundObject : Object

Contains information about the top screen background

Kind: global typedef
Properties

NameTypeDescription
textureTiledImageObject | undefinedThe top screen texture when drawType allows it.
colorRGBObject | undefinedThe top screen background color if drawType is set to either 1 or 2.
gradientInteger | undefinedThe top screen background gradient (0=none, 255=fade all the way to white at the top)

BottomScreenObject : Object

Contains information about the bottom screen

Kind: global typedef
Properties

NameTypeDescription
backgroundBottomScreenBackgroundObjectInformation about the bottom screen background
drawTypeIntegerThe bottom screen draw type: 0 = none, 1 = solid color(see below), 2 = invalid, 3 = texture.
framTypeIntegerThe bottom screen frame type when draw-type is 3: 0 = texture4 (regular scroll), 1 = texture2 (no scroll), 2 = texture3 (flipbook scroll, 0 > 1 > 2 > 0), 3 = texture4 (slow scroll), 4 = texture3 (flipbook scroll, 0 > 1 > 2 > 1 > 0).

BottomScreenBackgroundObject : Object

Information about the bottom screen background

Kind: global typedef
Properties

NameTypeDescription
textureTiledImageObject | undefinedThe bottom screen background image

ColorsObject : Object

This contains all of the colors used in the theme

Kind: global typedef
Properties

NameTypeDescription
cursorCursorColor | undefinedFour RGB colors that affect the cursor as it expands and contracts.
folder3DModelFolder3DModelColor | undefinedThis contains colors for the 3D folder model.
cartridgeCartridgeColor | undefinedThis contains colors that affect both the cart icon that appears for DSiWare, and the file graphic that appears in folders.
folderTopHighlightRGBObject | undefinedThe highlight used at the top of a folder icon
pagerPagerObject | undefinedThis contains colors that affect the the pager.
openButtonOpenCloseButtonObject | undefinedContains RGB data for the open button that appears on the bottom screen when an app is under the cursor.
closeButtonOpenCloseButtonObject | undefinedContains RGB data for the close button that appears when home button pressed from within a app.
zoomedTextZoomedTextObject | undefinedContains color data that affects the text that appears above game icons when zoomed to the maximum level.
bottomScreenIconAreaBottomScreenIconAreaObject | undefinedContains colors related to the bottom screen icon area. Used when the draw-type is set to solid color.
bottomScreenOuterAreaBottomScreenOuterAreaObject | undefinedContains colors releated to the bottom screen outer area. Used when the draw-type is set to solid color.
folderBackgroundFolderBackgroundObject | undefinedContains information related to the background of folders.
settingsAndResizeSettingsAndResizeObject | undefinedContains colors that affect the bottom screen icon-resize and settings buttons.
activateCameraOverlayActivateCameraOverlayObject | undefinedContains colors for the "press to activate camera" overlay.
demoUsesRemainingDemoUsesRemainingObject | undefinedContains colors for the message that tells you how many demo uses you have remaining.
topScreenBackgroundRGBObject | undefinedThe top screen background color if drawType is set to either 1 or 2.

CursorColor : Object

Four RGB colors that affect the cursor as it expands and contracts.

Kind: global typedef
Properties

NameTypeDescription
borderRGBObjectThe cursor border color
mainRGBObjectThe cursor main color
unknownRGBObjectAn unknown color
expandedGlowRGBObjectThe glow of the expanded cursor

Folder3DModelColor : Object

This contains colors for the 3D folder model.

Kind: global typedef
Properties

NameTypeDescription
mainRGBObjectThe main color
shadowedRGBObjectThe shadowed color

CartridgeColor : Object

This contains colors that affect both the cart icon that appears for DSiWare, and the file graphic that appears in folders.

Kind: global typedef
Properties

NameTypeDescription
mainRGBObjectThe main color
bottomShadowRGBObjectThe bottom shadow color

PagerObject : Object

This contains colors that affect the the pager.

Kind: global typedef
Properties

NameTypeDescription
buttonPagerButtonColor | undefinedThis contains colors that affect the button of the pager
arrowPagerArrowColor | undefinedThis contains colors that affect the arrows of the pager

PagerButtonColor : Object

This contains colors that affect the buttons of the pager.

Kind: global typedef
Properties

NameTypeDescription
downwardSheenRGBObjectThe downward sheen color
mainRGBObjectThe main color
leftwardSheenRGBObjectThe leftward sheen color

PagerArrowColor : Object

This contains colors that affect the arrows of the pager.

Kind: global typedef
Properties

NameTypeDescription
edgeRGBObjectThe edge color
unpressedRGBObjectThe unpressed color
pressedRGBObjectThe pressed color

OpenCloseButtonObject : Object

Contains RGB data for the open and close buttons that appear on the bottom screen.

Kind: global typedef
Properties

NameTypeDescription
buttonOpenCloseButtonColorThe colors for the button
textOpenCloseButtonTextColorThe colors for the button text

OpenCloseButtonColor : Object

Contains three colors that are used for the open/close button color

Kind: global typedef
Properties

NameTypeDescription
pressedRGBObjectThe button background when pressed
unpressedRGBObjectThe button background when not pressed
borderRGBObjectThe button border color

OpenCloseButtonTextColor : Object

Contains three colors that are used for the open/close button text color

Kind: global typedef
Properties

NameTypeDescription
pressedRGBObjectThe pressed text color
unpressedRGBObjectThe unpressed text color
shadoowRGBObjectThe text shadow color

ZoomedTextObject : Object

Contains color data that affects the text that appears above game icons when zoomed to the maximum level.

Kind: global typedef
Properties

NameTypeDescription
backgroundRGBObjectThe background color
textRGBObjectThe text color

BottomScreenIconAreaObject : Object

Contains information related to the bottom screen icon area. Used when the draw-type is set to solid color.

Kind: global typedef
Properties

NameTypeDescription
emptySlotShadowRGBObjectThe shadow color at the top of an empty slot
backgroundRGBObjectThe background color
emptySlotBorderRGBObjectThe empty slot border color
folderGlowRGBAObjectThe shadow / glow around the folder area

FolderBackgroundObject : Object

Contains information related to the background of folders.

Kind: global typedef
Properties

NameTypeDescription
emptySlotShadowRGBObjectThe empty slot shadow color
backgroundRGBObjectThe background color
borderRGBObjectThe border color

SettingsAndResizeObject : Object

Contains colors that affect the bottom screen icon-resize and settings buttons.

Kind: global typedef
Properties

NameTypeDescription
leftBoxShadowRGBObjectThe left box shadow (subtle)
backgroundRGBObjectThe background color
borderRGBObjectThe border color
iconGradientArray.<RGBObject>A two value array that contains the color values for the icon gradient.
pressedRGBObjectThe pressed color
rightBoxShadowRGBObjectThe color right shadow (subtle)

ActivateCameraOverlayObject : Object

Contains colors for the "press to activate camera" overlay.

Kind: global typedef
Properties

NameTypeDescription
backgroundRGBObjectThe background color
textRGBObjectThe text color

DemoUsesRemainingObject : Object

Contains colors for the message that tells you how many demo uses you have remaining.

Kind: global typedef
Properties

NameTypeDescription
backgroundRGBObjectThe background color
textRGBObjectThe text color

BottomScreenOuterAreaObject : Object

Contains colors related to the bottom screen outer area. Used when the draw-type is set to solid color.

Kind: global typedef
Properties

NameTypeDescription
stripedRGBObjectThe striped color
backgroundRGBObjectThe background color
edgeGlowRGBObjectThe edge glow color

TexturesObject : Object

Kind: global typedef
Properties

NameTypeDescription
topBackgroundTiledImageObject | undefinedThis is the texture used for the top-screen background when topScreen.frameType = 1, Used for backgrounds that don't scroll.
topScrollingBackgroundTiledImageObject | undefinedThis is the texture used for the top-screen background when topScreen.frameType = 0 or 3, Used for backgrounds that scroll.
bottomBackgroundTiledImageObject | undefinedThis is the texture used for the bottom-screen background when bottomScreen.frameType = 1, Used for backgrounds that don't scroll.
bottomFlipbookBackgroundTiledImageObject | undefinedThis is the texture used for the bottom-screen background when bottomScreen.frameType = 2 or 4, Split into three separate 320x240 textures that it jumps through like a flipbook.
bottomScrollingBackgroundTiledImageObject | undefinedThis is the texture used for the bottom-screen background when bottomScreen.frameType = 0 or 3, Used for backgrounds that scroll.
movingPatternTiledImageObject | undefinedThis is used with the top screen when topScreen.drawType = 2, see above. Used to tile the top screen in much the same way as the white squares that appear when no theme is selected, this is the moving pattern, it is rotated 90 degrees.
stillPatternTiledImageObject | undefinedtextures.movingPattern This is used with the top screen when topScreen.drawType = 2, see above. Used to tile the top screen in much the same way as the white squares that appear when no theme is selected, this is the still pattern, it is rotated 90 degrees.
closedFolderTiledImageObject | undefinedThis is used for closed folders on the main menu.
openFolderTiledImageObject | undefinedThis is used for open folders on the main menu.
largeIconBorderTiledImageObject | undefinedThis is used for 48x48 icon borders on the main menu.
smallIconBorderTiledImageObject | undefinedThis is used for 24x24 icon borders on the main menu.

CWAVSObject : Object

Contains buffers of CWAV data for all of the sound effects.

Kind: global typedef
Properties

NameTypeDescription
cursorBuffer | undefinedThe sound for cusor movement
LaunchBuffer | undefinedThe sound for application launch
folderBuffer | undefinedThe sound for folder buttons
cancelBuffer | undefinedThe sound for cancel buttons
frame0Buffer | undefined
frame1Buffer | undefined
frame2Buffer | undefined
openLidBuffer | undefinedThe sound for when the lid is opened

RGBObject : Object

This describes a RGB color

Kind: global typedef
Properties

NameTypeDescription
rIntegerRed channel from 0 - 255
gIntegerGreen channel from 0 - 255
bIntegerBlue channel from 0 - 255

RGBAObject : Object

This describes a RGBA color

Kind: global typedef
Properties

NameTypeDescription
rIntegerRed channel from 0 - 255
gIntegerGreen channel from 0 - 255
bIntegerBlue channel from 0 - 255
aIntegerAlpha channel from 0 - 255

TiledImageObject : Object

An object with the tiled image bitmap data, size, and crop dimensions.

Kind: global typedef
Properties

NameTypeDescription
dataBufferThe image bitmap data buffer
widthIntegerThe image width
heightIntegerThe image height
cropWidthIntegerThe image crop width
cropHeightIntegerThe image crop height
typeStringThe image type, one of the following: rgb565, bgr888, a8
tagStringA string identifying the image, see TextureKind.js
    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文