元编程参考文档

案件托管

3 个节点

本页内容 3

截取案件画面

函数

Draws one of the case's screens with no display, and gives back the picture.

签名
截取案件画面 -> Pixel Image
    案件: CrimeProject
    屏幕: Case Screen
    宽度: 整数
    高度: 整数
PixelImage CaptureCase(
    CrimeProject crimeCase,
    CaseScreen screen = CaseScreen.Menu,
    int width = 1280,
    int height = 800)

参数

名称类型默认值说明
案件CrimeProject—A case, from CaseAuthoring.OpenCase.
屏幕Case Screen菜单Which screen to draw.
宽度整数1280Surface width in pixels.
高度整数800Surface height in pixels.

返回

结果Pixel Image

备注

Settled before it is read: the host is pumped until nothing is animating, so the frame is the screen at rest rather than a frame caught part-way into a fade. The splash is the exception and is held mid-card on purpose, because a splash at rest is a splash that has already finished.

所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
事件 例程 状态机状态
声明于
案件托管
所属包
罪案引擎

截取案件画面到文件

函数

Draws one of the case's screens and writes it to a file.

签名
截取案件画面到文件 -> 文本
    案件: CrimeProject
    图像路径: 文本
    屏幕: Case Screen
    宽度: 整数
    高度: 整数
string CaptureCaseToFile(
    CrimeProject crimeCase,
    string imagePath,
    CaseScreen screen = CaseScreen.Menu,
    int width = 1280,
    int height = 800)

参数

名称类型默认值说明
案件CrimeProject—A case, from CaseAuthoring.OpenCase.
图像路径文本—Where to write the PNG.
屏幕Case Screen菜单Which screen to draw.
宽度整数1280Surface width in pixels.
高度整数800Surface height in pixels.

返回

结果文本
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
事件 例程 状态机状态
声明于
案件托管
所属包
罪案引擎

游玩案件

函数

Opens a case in a window and plays it, returning when the window closes.

签名
游玩案件
    案件: CrimeProject
    打开位置: Case Screen
    全屏: 真否
    宽度: 整数
    高度: 整数
void PlayCase(
    CrimeProject crimeCase,
    CaseScreen openAt = CaseScreen.Menu,
    bool fullScreen = false,
    int width = 1280,
    int height = 800)

参数

名称类型默认值说明
案件CrimeProject—A case, from CaseAuthoring.OpenCase.
打开位置Case Screen菜单Which screen to open on.
全屏真否FalseWhether to open full screen.
宽度整数1280Window width, which a full-screen host replaces immediately.
高度整数800Window height.

备注

Blocks for as long as somebody is playing, which is what a window is. A graph that wants a picture rather than a session wants CaseHosting.CaptureCase.

所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
事件 例程 状态机状态
声明于
案件托管
所属包
罪案引擎