元編程參考文件

案件託管

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.

所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
事件 例程 狀態機狀態
宣告於
案件託管
所屬包
罪案引擎