Ray VN API 参考

《VN API (Suika.*)》是为视觉小说创作而设计的。

每个 Suika.* API 函数都只接受一个参数。 该参数必须是一个字典, 并且函数的选项必须作为键值对存储在字典中。 在本文档中,「参数」是指该字典中的键值对。

索引


Suika.loadPlugin()

加载插件。

只有这个 API 接受非字典参数。

参数(直接)

参数类型说明
名称String插件名称。

返回

无返回。


Suika.setConfig()

设置配置。

参数(字典)

参数类型说明
String配置的键。
String配置的值。

返回

无返回。


Suika.getConfigCount()

获取配置键的数量。

参数(字典)

无参数。

返回

代表配置键数量的整数。


Suika.getConfigKey()

获取配置键的索引。

参数(字典)

参数类型说明
索引Integer配置的索引。

返回

代表指定索引处配置键的字符串。


Suika.isGlobalSaveConfig()

检查配置键是否存储到全局保存数据。

参数类型说明
String键名。

返回

表示配置是否全局保存的布尔值。


Suika.isLocalSaveConfig()

检查配置键是否存储到本地保存数据。

参数(字典)

参数类型说明
String键名。

返回

表示配置是否本地保存的布尔值。


Suika.getConfigType()

获取配置值类型。("s", "b", "i", "f")

参数(字典)

参数类型说明
String键名。

返回

以下字符串之一。

含义
"s"配置是字符串。
"b"配置是布尔值。
"i"配置是整数。
"f"配置是浮点数。

Suika.getStringConfig()

获取字符串配置值。

参数(字典)

参数类型说明
String键名。

返回

配置的字符串值。


Suika.getBoolConfig()

获取布尔配置值。

参数(字典)

参数类型说明
String键名。

返回

配置的布尔值。


Suika.getIntConfig()

获取整数配置值。

参数(字典)

参数类型说明
String键名。

返回

配置的整数值。


Suika.getFloatConfig()

获取浮点配置值。

参数(字典)

参数类型说明
String键名。

返回

配置的浮点值。


Suika.getConfigAsString()

Get a config 值 as a string.

参数(字典)

参数类型说明
String键名。

返回

Stringified 值 of the config.


Suika.compareLocale()

检查指定的语言环境是否与当前语言环境相同。

参数(字典)

参数类型说明
localeStringLocale 名称.

返回

表示指定语言环境是否匹配的布尔值 current one.


Suika.getMousePosX()

获取鼠标 X 位置。

参数(字典)

无参数。

返回

代表当前鼠标 X 座标的整数。


Suika.getMousePosY()

获取鼠标 Y 位置。

参数(字典)

无参数。

返回

代表当前鼠标 Y 座标的整数。


Suika.isMouseLeftPressed()

检查鼠标左按钮是否被按下。

参数(字典)

无参数。

返回

表示左按钮是否当前被按住的布尔值.


Suika.isMouseRightPressed()

检查鼠标右按钮是否被按下。

参数(字典)

无参数。

返回

表示右按钮是否当前被按住的布尔值n.


Suika.isMouseLeftClicked()

Check if mouse left button is pressed then released.

参数(字典)

无参数。

返回

Boolean that represents whether a left-click occurred in the current frame.


Suika.isMouseRightClicked()

Check if mouse right button is pressed then released.

参数(字典)

无参数。

返回

Boolean that represents whether a right-click occurred in the current frame.


Suika.isMouseDragging()

Check if mouse is dragging.

参数(字典)

无参数。

返回

Boolean that represents whether the mouse is being moved while a button is pressed.


Suika.isReturnKeyPressed()

Check if return 键 is pressed.

参数(字典)

无参数。

返回

Boolean 值.


Suika.isSpaceKeyPressed()

Check if space 键 is pressed.

参数(字典)

无参数。

返回

Boolean 值.


Suika.isEscapeKeyPressed()

Check if escape 键 is pressed.

参数(字典)

无参数。

返回

Boolean 值.


Suika.isUpKeyPressed()

Check if up 键 is pressed.

参数(字典)

无参数。

返回

Boolean 值.


Suika.isDownKeyPressed()

Check if down 键 is pressed.

参数(字典)

无参数。

返回

Boolean 值.


Suika.isLeftKeyPressed()

Check if left 键 is pressed.

参数(字典)

无参数。

返回

Boolean 值.


Suika.isRightKeyPressed()

Check if right 键 is pressed.

参数(字典)

无参数。

返回

Boolean 值.


Suika.isPageUpKeyPressed()

Check if pageup 键 is pressed.

参数(字典)

无参数。

返回

Boolean 值.


Suika.isPageDownKeyPressed()

Check if pagedown 键 is pressed.

参数(字典)

无参数。

返回

Boolean 值.


Suika.isControlKeyPressed()

Check if control 键 is pressed.

参数(字典)

无参数。

返回

Boolean 值.


Suika.isSKeyPressed()

Check if S 键 is pressed.

参数(字典)

无参数。

返回

Boolean 值.


Suika.isLKeyPressed()

Check if L 键 is pressed.

参数(字典)

无参数。

返回

Boolean 值.


Suika.isHKeyPressed()

Check if H 键 is pressed.

参数(字典)

无参数。

返回

Boolean 值.


Suika.isTouchCanceled()

检查触摸是否被取消。

参数(字典)

无参数。

返回

Boolean 值.


Suika.isSwiped()

Check if swiped.

参数(字典)

无参数。

返回

Boolean 值.


Suika.clearInputState()

Clear input states to avoid further input processing in the current frame.

参数(字典)

无参数。

返回

无返回。


Suika.startCommandRepetition()

Start a multiple-frame command execution.

参数(字典)

无参数。

返回

无返回。


Suika.stopCommandRepetition()

Stop a multiple-frame command execution.

参数(字典)

无参数。

返回

无返回。


Suika.isInCommandRepetition()

Check whether we are in a multiple-frame command execution or not.

参数(字典)

无参数。

返回

Boolean 值.


Suika.setMessageActive()

Set the message showing state to active.

参数(字典)

无参数。

返回

无返回。


Suika.clearMessageActive()

Reset the message showing state.

参数(字典)

无参数。

返回

无返回。


Suika.isMessageActive()

Check whether the message showing state is set or not.

参数(字典)

无参数。

返回

Boolean 值.


Suika.startAutoMode()

Start the auto-mode.

参数(字典)

无参数。

返回

无返回。


Suika.stopAutoMode()

Stop the auto-mode.

参数(字典)

无参数。

返回

无返回。


Suika.isAutoMode()

Check whether we are in the auto-mode or not.

参数(字典)

无参数。

返回

Boolean 值.


Suika.startSkipMode()

Start the skip-mode.

参数(字典)

无参数。

返回

无返回。


Suika.stopSkipMode()

停止跳过模式。

参数(字典)

无参数。

返回

无返回。


Suika.isSkipMode()

检查我们是否在跳过模式中。

参数(字典)

无参数。

返回

Boolean 值.


Suika.setSaveLoad()

设置保存/加载启用设置。

参数(字典)

参数类型说明
enableBoolean是否启用保存和加载。

返回

无返回。


Suika.isSaveLoadEnabled()

获取保存/加载启用设置。

参数(字典)

无参数。

返回

Boolean 值.


Suika.setNonInterruptible()

Set the non-interruptible mode setting.

参数(字典)

参数类型说明
enableBooleanNon-interruptible mode.

返回

无返回。


Suika.isNonInterruptible()

Get the non-interruptible mode setting.

参数(字典)

无参数。

返回

Boolean 值.


Suika.setPenPosition()

Set the pen position for text drawing.

参数(字典)

ParameterTypeDescription
xIntegerX coordinate.
yIntegerY coordinate.

返回

无返回。


Suika.getPenPositionX()

Get the pen X position.

参数(字典)

无参数。

返回

Integer 值.


Suika.getPenPositionY()

Get the pen Y position.

参数(字典)

无参数。

返回

Integer 值.


Suika.pushForCall()

Push the return point to the call stack.

参数(字典)

ParameterTypeDescription
fileStringScript file 名称.
索引IntegerCommand 索引.

返回

Boolean that represents success or failure.


Suika.popForReturn()

Pop the return point from the call stack.

参数(字典)

无参数。

返回

Returns a dictionary that contains:

  • obj.file: File 名称
  • obj.索引: Tag 索引

Suika.readCallStack()

Read the call stack element at the specified 索引.

参数(字典)

ParameterTypeDescription
spIntegerStack element 索引.

返回

Returns a dictionary that contains:

  • obj.file: File 名称
  • obj.索引: Tag 索引

Suika.writeCallStack()

Write the call stack element at the specified 索引.

参数(字典)

ParameterTypeDescription
spIntegerStack element 索引.
fileStringScript file 名称.
索引IntegerTag 索引.

返回

无返回。


Suika.setCallArgument()

Set a calling argument for GUI or anime.

参数(字典)

ParameterTypeDescription
索引Integer参数索引。
String参数值。

返回

Boolean 值.


Suika.getCallArgument()

Get a calling argument.

参数(字典)

ParameterTypeDescription
索引Integer参数索引。

返回

String 值.


Suika.isPageMode()

Check if the script page mode is enabled.

参数(字典)

无参数。

返回

返回布尔值。


Suika.appendBufferedMessage()

Append a string to the page mode buffer string.

参数(字典)

ParameterTypeDescription
messageStringMessage.

返回

无返回。


Suika.getBufferedMessage()

Get the page mode buffer string.

参数(字典)

无参数。

返回

Returns a string.


Suika.clearBufferedMessage()

Clear the page mode buffer string.

参数(字典)

无参数。

返回

无返回。


Suika.resetPageLine()

Reset the message line count in a page.

参数(字典)

无参数。

返回

无返回。


Suika.incPageLine()

Increment the line count in a page.

参数(字典)

无参数。

返回

无返回。


Suika.isPageTop()

Check if we are at the first line in a page.

参数(字典)

无参数。

返回

无返回。


Suika.registerBGVoice()

Register a BGVoice.

参数(字典)

ParameterTypeDescription
fileStringBGVoice file.

返回

无返回。


Suika.getBVoice()

Get the BGVoice.

参数(字典)

无参数。

返回

Returns a file 名称 string.


Suika.setBGVoicePlaying()

Set the BGVoice state playing.

参数(字典)

ParameterTypeDescription
isPlayingBooleanState.

返回

无返回。


Suika.isBGVoicePlaying()

Check if the BGVoice is playing.

参数(字典)

无参数。

返回

返回布尔值。


Suika.setChapterName()

Set the chapter 名称.

参数(字典)

ParameterTypeDescription
名称String章节名称。

返回

无返回。


Suika.getChapterName()

Get the chapter 名称.

参数(字典)

无参数。

返回

Returns a string.


Suika.setLastMessage()

设置最后一条消息。

参数(字典)

ParameterTypeDescription
messageStringMessage.
isAppendBooleanAppend or replace.

返回

无返回。


Suika.getLastMessage()

获取最后一条消息。

参数(字典)

无参数。

返回

Returns a string.


Suika.setTextSpeed()

Set the text speed.

参数(字典)

ParameterTypeDescription
speedFloatText speed.

返回

无返回。


Suika.getTextSpeed()

Get the text speed.

参数(字典)

无参数。

返回

Returns a float.


Suika.setAutoSpeed()

Set the auto mode speed.

参数(字典)

ParameterTypeDescription
speedFloatAuto speed.

返回

无返回。


Suika.getAutoSpeed()

Get the auto speed.

参数(字典)

无参数。

返回

Returns a float.


Suika.markLastEnglishTagIndex()

Mark the last English 索引.

参数(字典)

无参数。

返回

无返回。


Suika.getLastEnglishTagIndex()

Get the last English 索引.

参数(字典)

无参数。

返回

Returns an integer.


Suika.clearLastEnglishTagIndex()

Clear the last English 索引.

参数(字典)

无参数。

返回

无返回。


Suika.getLastTagName()

Get the last tag 名称.

参数(字典)

无参数。

返回

Returns a string.


Suika.createImageFromFile()

Load an image from a file.

参数(字典)

ParameterTypeDescription
fileStringPath to the image file.

返回

An image object, or null on failure.


Suika.createImage()

Create a new blank image.

参数(字典)

ParameterTypeDescription
widthInteger宽度 of the image.
heightInteger高度 of the image.

返回

An image object.


Suika.getImage宽度()

获取图像的宽度。

参数(字典)

ParameterTypeDescription
imgObjectImage object.

返回

Integer that represents the width.


Suika.getImage高度()

获取图像的高度。

参数(字典)

ParameterTypeDescription
imageObjectImage object.

返回

Integer that represents the height.


Suika.destroyImage()

Destroy an image and free its memory.

参数(字典)

ParameterTypeDescription
imageObjectImage object to destroy.

返回

无返回。


Suika.drawImage()

Copy an image to another image (no blending).

参数(字典)

ParameterTypeDescription
dstImageObjectDestination image.
dstLeftIntegerX coordinate in destination.
dstTopIntegerY coordinate in destination.
srcImageObjectSource image.
dst宽度Integer宽度 to draw.
dst高度Integer高度 to draw.
srcLeftIntegerX coordinate in source.
srcTopIntegerY coordinate in source.
alphaInteger0-255
blendIntegerBlending type.

Blending Types

TypeDescription
Suika.BLEND_COPYCopy.
Suika.BLEND_ALPHAAlpha blending.
Suika.BLEND_ADDAdd blending.
Suika.BLEND_SUBSub blending.
Suika.BLEND_DIMRGB 50% alpha blending.
Suika.BLEND_GLYPHAlpha blending for normal glyphs.
Suika.BLEND_EMOJIAlpha blending for emoji glyphs.

返回

无返回。


Suika.drawImage3D()

Copy an image to another image (no blending).

参数(字典)

ParameterTypeDescription
dstImageObjectDestination image.
x1Integerx1 coordinate in destination.
y1Integery1 coordinate in destination.
x2Integerx2 coordinate in destination.
y2Integery2 coordinate in destination.
x3Integerx3 coordinate in destination.
y3Integery3 coordinate in destination.
x4Integerx4 coordinate in destination.
y5Integery4 coordinate in destination.
srcImageObjectSource image.
srcLeftIntegerX coordinate in source.
srcTopIntegerY coordinate in source.
src宽度Integer宽度 in source.
src高度Integer高度 in source.
alphaInteger0-255
blendIntegerBlending type.

Blending Types

TypeDescription
Suika.BLEND_ALPHAAlpha blending.
Suika.BLEND_ADDAdd blending.
Suika.BLEND_SUBSub blending.
Suika.BLEND_DIMRGB 50% alpha blending.

返回

无返回。


Suika.drawImageAlpha()

Draw an image with alpha blending.

参数(字典)

ParameterTypeDescription
dstImageObjectDestination image.
dstLeftIntegerX coordinate in destination.
dstTopIntegerY coordinate in destination.
dst宽度Integer宽度 to draw.
dst高度Integer高度 to draw.
srcImageObjectSource image.
srcLeftIntegerX coordinate in source.
srcTopIntegerY coordinate in source.
alphaIntegerAlpha 值 (0-255).

返回

无返回。


Suika.drawImageAdd()

Draw an image with additive blending.

参数(字典)

ParameterTypeDescription
dstImageObjectDestination image.
dstLeftIntegerX coordinate in destination.
dstTopIntegerY coordinate in destination.
dst宽度Integer宽度 to draw.
dst高度Integer高度 to draw.
srcImageObjectSource image.
srcLeftIntegerX coordinate in source.
srcTopIntegerY coordinate in source.
alphaIntegerAlpha 值 (0-255).

返回

无返回。


Suika.drawImageSub()

Draw an image with subtractive blending.

参数(字典)

ParameterTypeDescription
dstImageObjectDestination image.
dstLeftIntegerX coordinate in destination.
dstTopIntegerY coordinate in destination.
dst宽度Integer宽度 to draw.
dst高度Integer高度 to draw.
srcImageObjectSource image.
srcLeftIntegerX coordinate in source.
srcTopIntegerY coordinate in source.
alphaIntegerAlpha 值 (0-255).

返回

无返回。


Suika.makeColor()

Create a pixel 值 from RGBA components.

参数(字典)

ParameterTypeDescription
rIntegerRed (0-255).
gIntegerGreen (0-255).
bIntegerBlue (0-255).
aIntegerAlpha (0-255).

返回

A pixel 值.


Suika.fillImageRect()

Fill a rectangular area on an image with a color.

参数(字典)

ParameterTypeDescription
imageObjectTarget image.
leftIntegerX coordinate.
topIntegerY coordinate.
widthInteger宽度.
heightInteger高度.
colorIntegerColor created by Suika.makeColor().

返回

无返回。


Suika.reloadStageImages()

Reload the stage images by the config.

参数(字典)

无参数。

返回

Boolean that represents success or failure.


Suika.reloadStage位置s()

Reload the stage positions by the config.

参数(字典)

无参数。

返回

无返回。


Suika.getLayerX()

Get the current position of a specific layer.

参数(字典)

参数类型说明
layerInteger舞台图层的索引。

返回

Integer 值 of the coordinate.


Suika.getLayerY()

Get the current position of a specific layer.

参数(字典)

参数类型说明
layerInteger舞台图层的索引。

返回

Integer 值 of the coordinate.


Suika.setLayer位置()

Set the position of a specific layer.

参数(字典)

参数类型说明
layerInteger舞台图层的索引。
xIntegerX coordinate.
yIntegerY coordinate.

返回

无返回。


Suika.getLayerScaleX()

Get the X scaling factor of a specific layer.

参数(字典)

参数类型说明
layerInteger舞台图层的索引。

返回

Float 值 of the scale.


Suika.getLayerScaleY()

Get the Y scaling factor of a specific layer.

参数(字典)

参数类型说明
layerInteger舞台图层的索引。

返回

Float 值 of the scale.


Suika.setLayerScale()

Set the scaling factor of a specific layer.

参数(字典)

参数类型说明
layerInteger舞台图层的索引。
scale_xFloatHorizontal scale.
scale_yFloatVertical scale.

返回

无返回。


Suika.getLayerRotate()

Get the rotation angle of a specific layer.

参数(字典)

参数类型说明
layerInteger舞台图层的索引。

返回

返回浮点数。


Suika.setLayerRotate()

Set the rotation angle of a specific layer.

参数(字典)

参数类型说明
layerInteger舞台图层的索引。
rotFloat旋转角度 in radians.

返回

无返回。


Suika.getLayerDim()

获取特定图层的昏暗状态。

参数(字典)

参数类型说明
layerInteger舞台图层的索引。

返回

返回布尔值。


Suika.setLayerDim()

设置特定图层的昏暗状态。

参数(字典) (Set)

参数类型说明
layerInteger舞台图层的索引。
dimBoolean是否昏暗图层。

返回

无返回。


Suika.getLayerAlpha()

获取特定图层的透明度。

参数(字典)

参数类型说明
layerInteger舞台图层的索引。

返回

返回整数。


Suika.setLayerAlpha()

设置特定图层的透明度。

参数(字典)

参数类型说明
layerInteger舞台图层的索引。
alphaIntegerAlpha 值 (0-255).

返回

无返回。


Suika.setLayerBlend()

Set the blending mode for a layer.

参数(字典)

参数类型说明
layerInteger舞台图层的索引。
blendIntegerBlend mode (Alpha, Add, Sub).

返回

无返回。


Suika.setLayerFile()

Set a file to be displayed on a layer.

参数(字典)

参数类型说明
layerInteger舞台图层的索引。
file_名称StringPath to the image file.

返回

Boolean that represents success or failure.


Suika.setLayerFrame()

Set the frame 索引 for eye blinking and lip synchronization.

参数(字典)

参数类型说明
layerInteger舞台图层的索引。
frameIntegerFrame 索引.

返回

无返回。


Suika.getLayerText()

Get the string displayed on a text layer.

参数(字典)

参数类型说明
索引IntegerIndex of the text layer.

返回

返回字符串。


Suika.setLayerText()

Set the string displayed on a text layer.

参数(字典)

参数类型说明
索引IntegerIndex of the text layer.
textStringText message to set.

返回

无返回。


Suika.getSysBtnIdleImage()

Get the sysbtn idle image.

参数(字典)

无参数。

返回

Returns an image object.


Suika.getSysBtnHoverImage()

Get the sysbtn hover image.

参数(字典)

无参数。

返回

Returns an image object.


Suika.clearStageBasic()

Clear the basic layers.

参数(字典)

无参数。

返回

Returns an image object.


Suika.clearStage()

Clear the stage and make it initial state.

参数(字典)

无参数。

返回

Returns an image object.


Suika.chposToLayer()

Convert a character position to a stage layer 索引.

参数(字典)

ParameterTypeDescription
chposInteger字符位置。

返回

Returns an integer.


Suika.chposToEyeLayer()

Convert a character position to a stage layer 索引 (character eye).

参数(字典)

ParameterTypeDescription
chposInteger字符位置。

返回

Returns an integer.


Suika.chposToLipLayer()

Convert a character position to a stage layer 索引 (character lip).

参数(字典)

ParameterTypeDescription
chposInteger字符位置。

返回

Returns an integer.


Suika.layerToChpos()

Convert a stage layer 索引 to a character position.

参数(字典)

ParameterTypeDescription
layerInteger图层索引。

返回

Returns an integer.


Suika.renderStage()

Render the stage with all stage layers.

参数(字典)

无参数。

返回

无返回。


Suika.startFade()

Start a transition effect.

参数(字典)

ParameterTypeDescription
descArrayFade descriptor.
methodStringFading method.
timeFloatDuration in seconds.
ruleImageObjectRule image object (optional).

返回

Boolean 值.


Suika.getShakeOffset()

Get the offset for the shake command.

参数(字典)

无参数。

返回

An object that contains:

  • x
  • y

Suika.setShakeOffset()

Set the offset for the shake command.

参数(字典)

ParameterTypeDescription
xIntegerX offset.
yIntegerY offset.

返回

无返回。


Suika.isFadeRunning()

Check if the fading is running.

参数(字典)

无参数。

返回

Boolean 值.


Suika.finishFade()

Immediately end the fading effect.

参数(字典)

无参数。

返回

无返回。


Suika.setChNameMapping()

Specify a character 名称 索引 for a character position.

参数(字典)

ParameterTypeDescription
chposInteger字符位置。
chNameIndexIntegerCharacter 名称 索引.

返回

无返回。


Suika.getTalkingChpos()

Get the position of the character currently speaking.

参数(字典)

无参数。

返回

Returns an integer.


Suika.setChTalking()

设置正在说话的字符。

参数(字典)

参数类型说明
chposInteger字符位置。

返回

无返回。


Suika.getTalkingChpos()

Get the talker character position.

参数(字典)

无参数。

返回

Returns an integer.


Suika.updateChDimByTalkingCh()

Automatically update character dimming based on who is speaking.

参数(字典)

无参数。

返回

无返回。


Suika.forceChDim()

Update the character dimming manually.

参数(字典)

参数类型说明
chposInteger字符位置。
dimBooleanDim or not.

返回

无返回。


Suika.getChDim()

Get the dimming state.

参数(字典)

参数类型说明
chposInteger字符位置。

返回

Returns a boolean.


Suika.fillNameBox()

Fill the 名称 box by the 名称 box image.

参数(字典)

无参数。

返回

无返回。


Suika.getNameBoxRect()

Get the 名称 box position and size.

参数(字典)

无参数。

返回

Object.

  • x
  • y
  • w
  • h

Suika.showNameBox()

Show or hides the 名称 box.

参数(字典)

参数类型说明
showBooleanShow or hide.

返回

无返回。


Suika.fillMessageBox()

Fill the message box by the message box image.

参数(字典)

无参数。

返回

无返回。


Suika.showMessageBox()

Show or hide the message box.

参数(字典)

参数类型说明
showBooleanWhether to show the box.

返回

无返回。


Suika.getMessageBoxRect()

Get the message box rect.

参数(字典)

无参数。

返回

An object that contains:

  • x
  • y
  • w
  • h

Suika.setClick位置()

Set the click animation position.

参数(字典)

参数类型说明
xIntegerX 位置。
yIntegerY 位置。

返回

无返回。


Suika.showClick()

Show or hide the click animation.

参数(字典)

参数类型说明
showBooleanShow or hide.

返回

无返回。


Suika.setClickIndex()

Set the 索引 of the click animation frame.

参数(字典)

参数类型说明
索引IntegerFrame 索引.

返回

无返回。


Suika.getClickRect()

Get the click animation rect.

参数(字典)

无参数。

返回

An object that contains:

  • x
  • y
  • w
  • h

Suika.fillChooseBoxIdleImage()

Fill a choose box idle layer by the choose box idle image.

参数(字典)

参数类型说明
索引IntegerChoose box 索引.

返回

无返回。


Suika.fillChooseBoxHoverImage()

Fill a choose box hover layer by the choose box hover image.

参数(字典)

参数类型说明
索引IntegerChoose box 索引.

返回

无返回。


Suika.showChoosebox()

Show or hide a choice box.

参数(字典)

ParameterTypeDescription
索引IntegerChoice box 索引. (0-7)
showIdleBooleanShow idle state.
showHoverBooleanShow hover state.

返回

无返回。


Suika.getChooseBoxRect()

Get the choose box rect.

参数(字典)

无参数。

返回

An object that contains:

  • x
  • y
  • w
  • h

Suika.showAutoModeBanner()

Show or hide the auto mode banner.

参数(字典)

ParameterTypeDescription
showBooleanShow or hide.

返回

无返回。


Suika.showSkipModeBanner()

Show or hide the skip mode banner.

参数(字典)

ParameterTypeDescription
showBooleanShow or hide.

返回

无返回。


Suika.renderImage()

Perform direct rendering of an image to the screen.

Note that you should consider using the stage layers for normal rendering. This API is useful for effects.

参数(字典)

ParameterOmissibleTypeDescription
dstLeftNoIntegerDestination top-left X position.
dstTopNoIntegerDestination top-left Y position.
imageNoObjectImage.
srcLeftNoIntegerSource top-left X position.
srcTopNoIntegerSource top-left Y position.
src宽度NoIntegerSource width.
src高度NoIntegerSource height.
alphaNoIntegerAlpha 值. (0-255)
blendNoIntegerBlend type.

Blend Types

NameDescription
Suika.BLEND_ALPHAAlpha blending.
Suika.BLEND_ADDAdd blending.
Suika.BLEND_SUBSub blending.

返回

无返回。


Suika.renderImage3d()

Perform direct rendering of an image to the screen with 3D transformation.

Note that you should consider using the stage layers for normal rendering. This API is useful for effects.

参数(字典)

ParameterOmissibleTypeDescription
x1NoIntegerDestination vertex 1 X position.
y1NoIntegerDestination vertex 1 Y position.
x2NoIntegerDestination vertex 2 X position.
y2NoIntegerDestination vertex 2 Y position.
x3NoIntegerDestination vertex 3 X position.
y3NoIntegerDestination vertex 3 Y position.
x4NoIntegerDestination vertex 4 X position.
y4NoIntegerDestination vertex 4 Y position.
texNoObjectImage.
srcLeftNoIntegerSource top-left X position.
srcTopNoIntegerSource top-left Y position.
src宽度NoIntegerSource width.
src高度NoIntegerSource height.
alphaNoIntegerAlpha 值. (0-255)

返回

无返回。


Suika.startKirakira()

Start Kirakira effect.

Kirakira effect is an animation that is shown at the screen position where the mouse cursor is clicked.

参数(字典)

无参数。

返回

无返回。


Suika.renderKirakira()

Render Kirakira effect.


Suika.setMixerInputFile()

Play a sound file on a specific mixer track.

参数(字典)

ParameterOmissibleTypeDescription
trackNoStringMixer track 名称.
fileNoStringPath to the sound file.
isLoopedYes(false)BooleanWhether to loop the playback.

Track Names

NameDescription
bgmBackground music track.
seSound effect track.
voiceCharacter voice track.
sysSystem sound track.

返回

Boolean that represents whether the file was opened successfully.


Suika.setMixerVolume()

Set the volume for a specific mixer track.

参数(字典)

参数类型说明
trackStringMixer track 名称.
volFloat音量级别 (0.0 to 1.0).
spanFloatFade duration in seconds.

Track Names

NameDescription
bgmBackground music track.
seSound effect track.
voiceCharacter voice track.
sysSystem sound track.

返回

无返回。


Suika.getMixerVolume()

Get the volume for a specific mixer track.

参数(字典)

参数类型说明
trackStringMixer track 名称.
volumeFloat音量级别 (0.0 to 1.0).
spanFloatFade duration in seconds.

Track Names

NameDescription
bgmBackground music track.
seSound effect track.
voiceCharacter voice track.
sysSystem sound track.

返回

返回浮点数。


Suika.setMasterVolume()

Set the master volume affecting all tracks.

参数(字典)

参数类型说明
volumeFloat主音量 level (0.0 to 1.0).

返回

无返回。


Suika.getMasterVolume()

Get the master volume affecting all tracks.

参数(字典)

无参数。

返回

返回浮点数。


Suika.setMixerGlobalVolume()

Set the global volume for a track (often used for config settings).

参数(字典)

参数类型说明
trackStringMixer track 名称.
volFloat全局音量 level.

Track Names

NameDescription
bgmBackground music track.
seSound effect track.
voiceCharacter voice track.
sysSystem sound track.

返回

无返回。


Suika.getMixerGlobalVolume()

Get the global volume for a track (often used for config settings).

参数(字典)

参数类型说明
trackStringMixer track 名称.

Track Names

NameDescription
bgmBackground music track.
seSound effect track.
voiceCharacter voice track.
sysSystem sound track.

返回

返回浮点数。


Suika.setCharacterVolume()

Set the volume for a specific character's voice.

参数(字典)

参数类型说明
索引IntegerCharacter 名称 索引.
volFloat音量级别.

返回

无返回。


Suika.getCharacterVolume()

获取特定字符声音的音量。

参数(字典)

参数类型说明
ch_索引IntegerCharacter 名称 索引.

返回

返回浮点数。


Suika.isMixerSoundFinished()

检查特定轨道上的播放是否已完成。

参数(字典)

参数类型说明
trackIntegerMixer track 索引.

返回

Boolean 值.


Suika.getTrackFileName()

Get the file 名称 of the sound currently loaded in a track.

参数(字典)

参数类型说明
trackIntegerMixer track 索引.

返回

String representing the file path.


Suika.applyCharacterVolume()

Apply a character's specific volume setting to the VOICE track.

参数(字典)

参数类型说明
chIntegerCharacter 名称 索引.

返回

无返回。


Suika.enableSysBtn()

Control the system button.

参数(字典)

参数类型说明
isEnabledBooleanEnable the system button or not.

返回

无返回。


Suika.isSysBtnEnabled()

Check if the system button is enabled.

Parameters

无参数。

返回

Returns a boolean 值.


Suika.updateSysBtnState()

Update the mouse tracking for the system button.

Parameters

无参数。

返回

无返回。


Suika.isSysBtnPointed()

Check if the system button is pointed.

Parameters

无参数。

返回

Returns a boolean 值.


Suika.isSysBtnClicked()

Check if the system button is clicked.

Parameters

无参数。

返回

Returns a boolean 值.


Suika.drawTextOnLayer()

Draw a text on a specified layer.

参数(字典)

ParameterTypeDescription
layerIntegerTarget stage layer 索引.
fontTypeIntegerFont selection 索引.
fontSizeIntegerSize of the font.
colorIntegerColor.
outline宽度IntegerOutline width.
outlineColorIntegerOutline color.
lineMarginIntegerLine margin.
charMarginIntegerCharacter margin.
xIntegerBounding box X position.
yIntegerBounding box Y position.
widthIntegerBounding box width.
heightIntegerBounding box height.
textStringText.

返回

无返回。


Suika.getString宽度()

Get the total width of a UTF-8 string.

参数(字典)

ParameterTypeDescription
fontTypeIntegerFont selection 索引.
fontSizeIntegerSize of the font.
textStringText.

返回

Integer 值 of the width in pixels.


Suika.getString高度()

Get the total height of a UTF-8 string.

参数(字典)

ParameterTypeDescription
fontTypeIntegerFont selection 索引.
fontSizeIntegerSize of the font.
textStringText.

返回

Integer 值 of the height in pixels.


Suika.drawGlyph()

绘制单个字形 onto an image.

参数(字典)

ParameterTypeDescription
imgObjectTarget image.
font_typeIntegerFont selection 索引.
font_sizeIntegerRendering font size.
base_font_sizeIntegerBase font size for metrics.
outline_sizeInteger宽度 of the outline.
xIntegerX coordinate.
yIntegerY coordinate.
colorPixelMain text color.
outline_colorPixelOutline color.
codepointIntegerUTF-32 code point.
is_dimBooleanWhether to apply dimming.

返回

Boolean that represents success.


Suika.createDrawMsg()

Create a complex message drawing context for high-level text rendering.

参数(字典)

ParameterTypeDescription
imageIntegerDestination image.
textStringMessage to draw.
fontTypeIntegerFont selection.
fontSizeIntegerFont size.
baseFontSizeIntegerBase font size.
rubySizeIntegerRuby size.
outlineSizeIntegerOutline width.
penXIntegerPen X position.
penYIntegerPen Y position.
area宽度IntegerDraw area width.
area高度IntegerDraw area height.
leftMarginIntegerLeft margin.
rightMarginIntegerRight margin.
topMarginIntegerTop margin.
bottomMarginIntegerBottom margin.
lineMarginIntegerLine margin.
charMarginIntegerCharacter margin.
colorIntegerColor.
outlineColorIntegerOutline color.
bgColorIntegerBackground color.
fillBgBooleanFill background?
dimBooleanDim?
ignoreLFBooleanIgnore LF?
ignoreFontBooleanIgnore font change?
ignoreOutlineBooleanIgnore outline change?
ignoreColorBooleanIgnore color change?
ignoreSizeBooleanIgnore size change?
ignore位置BooleanIgnore cursor change?
ignoreRubyBooleanIgnore ruby?
ignoreWaitBooleanIgnore inline wait?
inlineWaitHookFunctionInline wait hook.
tategakiBooleanUse tategaki?

返回

A message drawing context object.


Suika.destroyDrawMsg()

Destroy a message drawing context.

参数(字典)

ParameterTypeDescription
contextObjectDraw message context.

返回

无返回。


Suika.countDrawMsgChars()

Count the remaining characters excluding escape sequences.

参数(字典)

ParameterTypeDescription
contextObjectDraw message context.

返回

Returns an integer.


Suika.drawMessage()

Draw characters in a message up to (maxChars) characters.

参数(字典)

ParameterTypeDescription
contextObjectDraw message context.
maxCharsIntegerMax chars.

返回

Returns an integer that indicates the count of characters drawn in the call.


Suika.getDrawMsgPenPosition()

Get the current pen position from a drawing context.

参数(字典)

参数类型说明
contextObjectDrawing context.

返回

An object containing x and y.


Suika.isEscapeSequenceChar()

Check if a character is part of an escape sequence.

参数(字典)

参数类型说明
cStringCharacter to check.

返回

Boolean 值.


Suika.moveToTagFile()

Load a new tag file and move the execution point to its beginning.

参数(字典)

参数类型说明
fileStringPath to the .novel or script file.

返回

Boolean that represents success or failure.


Suika.getTagCount()

Get the total number of tags in the current script file.

参数(字典)

无参数。

返回

Integer representing the tag count.


Suika.moveToTagIndex()

Move the execution pointer to a specific tag 索引.

参数(字典)

参数类型说明
索引IntegerTarget tag 索引.

返回

Boolean 值.


Suika.moveToNextTag()

Move the execution pointer to the very next tag.

参数(字典)

无参数。

返回

Boolean 值.


Suika.moveToLabelTag()

Jump to a specific label.

参数(字典)

ParameterTypeDescription
名称StringTarget label 名称.

返回

Boolean 值.


Suika.moveToMacroTag()

Jump to a specific macro by 名称.

参数(字典)

ParameterTypeDescription
名称StringTarget macro 名称.

返回

Boolean 值.


Suika.moveToElseTag()

Jump to a correspoinding else/elseif/endif tag.

参数(字典)

ParameterTypeDescription
名称StringTarget macro 名称.

返回

Boolean 值.


Suika.moveToEndIfTag()

Jump to a correspoinding endif tag.

参数(字典)

ParameterTypeDescription
名称StringTarget macro 名称.

返回

Boolean 值.


Suika.moveToEndMacroTag()

Jump to a correspoinding endmacro tag.

参数(字典)

ParameterTypeDescription
名称StringTarget macro 名称.

返回

Boolean 值.


Suika.getTagFileName()

Get the current script file 名称 current tag.

参数(字典)

无参数。

返回

String representing the file 名称.


Suika.getTagName()

获取当前标签的名称。

参数(字典)

无参数。

返回

String representing the tag 名称.


Suika.getTagPropertyCount()

Get the number of the properties of the current tag.

参数(字典)

无参数。

返回

String representing the 名称 or 值.


Suika.getTagPropertyName()

Iterate through and retrieve the properties (arguments) of the current tag.

参数(字典)

ParameterTypeDescription
索引IntegerProperty 索引.

返回

String representing the 名称.


Suika.getTagPropertyValue()

Iterate through and retrieve the properties (arguments) of the current tag.

参数(字典) (for PropertyName/Value)

ParameterTypeDescription
索引IntegerProperty 索引.

返回

String representing the 值.


Suika.getTagArgBool()

Get a specific argument of the current tag, with support for default 值s and optionality.

参数(字典)

参数类型说明
名称StringName of the argument.
omissibleBooleanWhether the argument is optional.
defValBooleanDefault 值 if missing.

返回

The 值 of the argument in the requested type.


Suika.getTagArgInt()

Get a specific argument of the current tag, with support for default 值s and optionality.

参数(字典)

参数类型说明
名称StringName of the argument.
omissibleBooleanWhether the argument is optional.
defValIntegerDefault 值 if missing.

返回

The 值 of the argument in the requested type.


Suika.getTagArgFloat()

Get a specific argument of the current tag, with support for default 值s and optionality.

参数(字典)

参数类型说明
名称StringName of the argument.
omissibleBooleanWhether the argument is optional.
defValFloatDefault 值 if missing.

返回

The 值 of the argument in the requested type.


Suika.getTagArgString()

Get a specific argument of the current tag, with support for default 值s and optionality.

参数(字典)

参数类型说明
名称StringName of the argument.
omissibleBooleanWhether the argument is optional.
defValStringDefault 值 if missing.

返回

The 值 of the argument in the requested type.


Suika.evaluateTag()

Evaluate the property 值s of the current tag to expand inline variables. (${var名称} form)

Calling this API updates the cache for the property 值s.

参数(字典)

无参数。

返回

Boolean 值.


Suika.pushTagStackIf()

Manage the internal stack for [if] conditional blocks.

This API marks the if block position for nested block processing.

参数(字典)

无参数。

返回

无返回。


Suika.popTagStackIf()

Manage the internal stack for if conditional blocks.

This API marks the end of if block for nested block processing.

参数(字典)

无参数。

返回

无返回。


Suika.pushTagStackWhile()

Manage the internal stack for loops (while).

This API marks the while block for nested block processing.

参数(字典)

无参数。

返回

Boolean 值.


Suika.popTagStackWhile()

Manage the internal stack for loops (while).

This API marks the end of while block for nested block processing.

参数(字典)

无参数。

返回

Boolean 值.


Suika.pushTagStackFor()

Manage the internal stack for loops (for).

This API marks the for block for nested block processing.

参数(字典)

无参数。

返回

Boolean 值.


Suika.popTagStackFor()

Manage the internal stack for loops (for).

This API marks the end of for block for nested block processing.

参数(字典)

无参数。

返回

Boolean 值.


Suika.loadAnimeFromFile()

Load an animation definition from a file and register it.

参数(字典)

参数类型说明
fileStringPath to the anime file.
reg_名称StringRegistration 名称 for the anime.

返回

An array of boolean that indicate each layer is loaded or not.


Suika.newAnimeSequence()

Begin describing a new animation sequence for a specific layer. This API is used for manually generated animations.

参数(字典)

参数类型说明
layerIntegerTarget stage layer 索引.

返回

Boolean that represents success.


Suika.addAnimeSequencePropertyF()

Add a float property (e.g., position, alpha) to the current anime sequence. This API is used for manually generated animations.

参数(字典)

参数类型说明
StringProperty 键 (e.g., "x", "y", "a").
valFloatTarget 值.

返回

Boolean 值.


Suika.addAnimeSequencePropertyI()

Add an integer property (e.g., position, alpha) to the current anime sequence. This API is used for manually generated animations.

参数(字典)

参数类型说明
StringProperty 键 (e.g., "x", "y", "a").
valIntegerTarget 值.

返回

Boolean 值.


Suika.startLayerAnime()

Start the registered animation sequence for a specific layer.

参数(字典)

参数类型说明
layerIntegerTarget stage layer 索引.

返回

Boolean 值.


Suika.isAnimeRunning()

Check the overall animation status.

参数(字典)

无参数。

返回

Boolean 值.


Suika.isAnimeFinishedForLayer()

Check if a specific layer's animation has ended.

参数(字典)

参数类型说明
layerIntegerTarget stage layer 索引.

返回

Boolean 值.


Suika.updateAnimeFrame()

Update the animation frame state. Usually called once per frame.

参数(字典)

无参数。

返回

无返回。


Suika.loadEyeImageIfExists()

Manage eye-blinking (eye-patch) image and animation for a character position.

参数(字典)

参数类型说明
chposIntegerCharacter position (Left, Center, etc.).
fileStringPath to the eye image file.

返回

Boolean 值.


Suika.reloadEyeAnime()

Restart the eye-blinking (eye-patch) animation for a character position.

参数(字典)

参数类型说明
chposIntegerCharacter position (Left, Center, etc.).

返回

Boolean 值.


Suika.runLipAnime()

Start lip-sync animation based on the message content for a character.

参数(字典)

参数类型说明
chposInteger字符位置。
textStringThe message text to sync with.

返回

无返回。


Suika.stopLipAnime()

Stop lip-sync animation.

参数(字典)

参数类型说明
chposInteger字符位置。

返回

无返回。


Suika.clearLayerAnimeSequence()

Clear animation sequences for a specific layer.

参数(字典)

参数类型说明
layerIntegerTarget stage layer 索引.

返回

无返回。


Suika.clearAllAnimeSequence()

Clear animation sequences for all layers.

参数(字典)

无参数。

返回

无返回。


Suika.setVariableInt()

Set a 值 to a local or global variable.

参数(字典)

ParameterTypeDescription
名称StringName of the variable.
IntegerValue to set

返回

Boolean that represents success or failure.


Suika.setVariableFloat()

Set a 值 to a local or global variable.

参数(字典)

ParameterTypeDescription
名称StringName of the variable.
FloatValue to set

返回

Boolean that represents success or failure.


Suika.setVariableString()

Set a 值 to a local or global variable.

参数(字典)

ParameterTypeDescription
名称StringName of the variable.
StringValue to set

返回

Boolean that represents success or failure.


Suika.getVariableInt()

Get the current 值 of a variable.

参数(字典)

参数类型说明
名称StringName of the variable.

返回

The 值 of the variable in integer.


Suika.getVariableFloat()

Get the current 值 of a variable.

参数(字典)

参数类型说明
名称StringName of the variable.

返回

The 值 of the variable in float.


Suika.getVariableString()

Get the current 值 of a variable.

参数(字典)

参数类型说明
名称StringName of the variable.

返回

The 值 of the variable in string


Suika.unsetVariable()

取消设置 (delete) a specific variable.

参数(字典)

参数类型说明
名称StringName of the variable to unset.

返回

无返回。


Suika.unsetLocalVariables()

取消设置 (delete) all local variables.

参数(字典)

无参数。

返回

无返回。


Suika.makeVariableGlobal()

Set a variable to be global (persistent across saves).

参数(字典)

参数类型说明
名称StringName of the variable.
is_globalBooleanWhether to make it global.

返回

Boolean 值.


Suika.isGlobalVariable()

Check the variable's global status.

参数(字典)

参数类型说明
名称StringName of the variable.

返回

Boolean 值.


Suika.getVariableCount()

Get the number of variables.

参数(字典)

无参数。

返回

Integer for count.


Suika.getVariableName()

Iterate through the registered variables.

参数(字典) (for getVariableName)

参数类型说明
索引IntegerIndex of the variable.

返回

String for 名称.


Suika.checkVariableExists()

Check if a variable with the specified 名称 exists.

参数(字典)

参数类型说明
名称StringName to check.

返回

Boolean 值.


Suika.executeSaveGlobal()

Execute a global save. Global data typically includes persistent settings.

参数(字典)

无参数。

返回

Boolean that represents success or failure.


Suika.executeLoadGlobal()

Execute a global load. Global data typically includes persistent settings.

参数(字典)

无参数。

返回

Boolean that represents success or failure.


Suika.executeSaveLocal()

Save the game progress to a specific slot.

参数(字典)

参数类型说明
索引IntegerIndex of the save slot.

返回

Boolean that represents success or failure.


Suika.executeLoadLocal()

Load game progress from a specific slot.

参数(字典)

参数类型说明
索引IntegerIndex of the save slot.

返回

Boolean that represents success or failure.


Suika.checkSaveExists()

Check if the save data exists for the specified slot 索引.

参数(字典)

参数类型说明
索引IntegerIndex of the save slot.

返回

Boolean 值.


Suika.deleteLocalSave()

Delete a local save slot.

参数(字典)

参数类型说明
索引IntegerIndex of the save slot.

返回

无返回。


Suika.deleteGlobalSave()

Delete the entire global save data.

参数(字典)

无参数。

返回

无返回。


Suika.checkRightAfterLoad()

Check if the current frame is immediately following a successful load operation.

参数(字典)

无参数。

返回

Boolean 值.


Suika.getSaveTimestamp()

Get the timestamp (Unix time) when the save data was created.

参数(字典)

参数类型说明
索引IntegerIndex of the save slot.

返回

Integer (timestamp).


Suika.getLatestSaveIndex()

Get the 索引 of the most recently updated save slot.

参数(字典)

无参数。

返回

Integer representing the slot 索引.


Suika.getSaveChapterName()

Retrieve the chapter title stored in a save slot.

参数(字典)

参数类型说明
索引IntegerIndex of the save slot.

返回

String representing the chapter 名称.


Suika.getSaveLastMessage()

Retrieve the last displayed message stored in a save slot.

参数(字典)

参数类型说明
索引IntegerIndex of the save slot.

返回

String representing the message.


Suika.getSaveThumbnail()

Get the thumbnail image associated with a save slot.

参数(字典)

参数类型说明
索引IntegerIndex of the save slot.

返回

An image object.


Suika.clearHistory()

Clear all messages from the history (backlog).

参数(字典)

无参数。

返回

无返回。


Suika.addHistory()

Add a new entry to the history.

参数(字典)

ParameterTypeDescription
名称StringCharacter 名称.
消息String消息文本。
voiceStringPath to the voice file.
bodyColorIntegerBody color.
bodyOutlineColorIntegerBody outline color.
名称ColorIntegerName color.
名称OutlineColorIntegerName outline color.

返回

Boolean that represents success.


Suika.getHistoryCount()

Get the total number of entries currently in the history.

参数(字典)

无参数。

返回

Integer representing the history count.


Suika.getHistoryName()

Retrieve the 名称 at a specific history 索引.

参数(字典)

参数类型说明
索引IntegerIndex in the history.

返回

String 值.


Suika.getHistoryMessage()

Retrieve the message at a specific history 索引.

参数(字典)

参数类型说明
索引IntegerIndex in the history.

返回

String 值.


Suika.getHistoryVoice()

Retrieve the voice path at a specific history 索引.

参数(字典)

参数类型说明
索引IntegerIndex in the history.

返回

String 值.


Suika.loadSeen()

Load the seen (read) flags for the current script file.

参数(字典)

无参数。

返回

Boolean that represents success.


Suika.saveSeen()

Save the seen (read) flags for the current script file.

参数(字典)

无参数。

返回

Boolean that represents success.


Suika.getSeenFlags()

Get the seen status for the current tag.

参数(字典)

无参数。

返回

Get returns Integer.

For a [text] tag, 0 means unread and 1 means read.

For a [choose] tag, each bit indicates the option is selected before.


Suika.setSeenFlags()

Set the seen status for the current tag.

参数(字典)

参数类型说明
flagIntegerSeen status flag.

返回

无返回。


Suika.loadGUIFile()

Load a GUI definition file and prepare it for execution.

参数(字典)

参数类型说明
fileStringPath to the .gui file.
sysBooleanWhether it's a system GUI (Save/Load/etc).

What is System GUI

System GUI is typically called when [text] or [choose] is running, and the control will return to the interrupted tag.

返回

Boolean that represents success or failure.


Suika.startGUI()

Start the loaded GUI.

参数(字典)

无参数。

返回

无返回。


Suika.stopGUI()

Stop the currently running GUI.

参数(字典)

无参数。

返回

无返回。


Suika.isGUIRunning()

Check if a GUI is currently active.

参数(字典)

无参数。

返回

Boolean 值.


Suika.isGUIFinished()

Check if a GUI has completed its operation.

参数(字典)

无参数。

返回

Boolean 值.


Suika.getGUIResultLabel()

Get the label of the button that was selected to finish the GUI.

参数(字典)

无参数。

返回

String representing the result label.


Suika.isGUIResultTitle()

Check if the GUI was closed with a "back to title" action.

参数(字典)

无参数。

返回

Boolean 值.


Suika.checkIfSavedInGUI()

Check if a save operation was performed while the GUI was active.

参数(字典)

无参数。

返回

Boolean 值.


Suika.checkIfLoadedInGUI()

Check if a load operation was performed while the GUI was active.

参数(字典)

无参数。

返回

Boolean 值.


Suika.checkRightAfterSysGUI()

Check if the current frame is immediately following a return from a system GUI.

参数(字典)

无参数。

返回

Boolean 值.


Suika.getMillisec()

Get a lap time since the time origin in milliseconds.

参数(字典)

无参数。

返回

Integer in milliseconds.


Suika.checkFileExists()

Check if a file exists.

参数(字典)

参数类型说明
fileStringPath to the file.

返回

返回布尔值。


Suika.readFileContent()

Read an entire file content.

参数(字典) (for readFileContent)

参数类型说明
fileStringPath to the file.

返回

Returns a string.


Suika.writeSaveData()

Directly write raw save data associated with a 键.

参数(字典)

参数类型说明
StringUnique 键 for the data.
dataStringData to write/read.

返回

Boolean that represents success or failure.


Suika.readSaveData()

Directly read raw save data associated with a 键.

参数(字典)

参数类型说明
StringUnique 键 for the data.

返回

Boolean that represents success or failure.


Suika.playVideo()

Control video playback.

参数(字典) (for playVideo)

ParameterTypeDescription
fileStringPath to the video file.
is_skippableBooleanWhether the user can skip the video.

返回

Play 返回布尔值;IsPlaying 返回布尔值。


Suika.stopVideo()

停止视频播放。

参数(字典)

无参数。

返回

无返回。


Suika.isVideoPlaying()

检查视频是否正在播放。

参数(字典)

无参数。

返回

返回布尔值。


Suika.isFullScreenSupported()

检查全屏模式能力。

参数(字典)

无参数。

返回

布尔值。


Suika.enterFullScreenMode()

进入全屏模式。

参数(字典)

无参数。

返回

无返回。


Suika.speakText()

执行给定消息的文本到语音(TTS)。

参数(字典)

参数类型说明
消息String要朗读的文本。

返回

无返回。