案件託管
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. |
| 寬度 | 整數 | 1280 | Surface width in pixels. |
| 高度 | 整數 | 800 | Surface 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. |
| 寬度 | 整數 | 1280 | Surface width in pixels. |
| 高度 | 整數 | 800 | Surface 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. |
| 全屏 | 真否 | False | Whether to open full screen. |
| 寬度 | 整數 | 1280 | Window width, which a full-screen host replaces immediately. |
| 高度 | 整數 | 800 | Window 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.
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 事件 例程 狀態機狀態
- 宣告於
- 案件託管
- 所屬包
- 罪案引擎