pub struct LuaGameScriptTakeTechnologyScreenshotParams {
pub allow_in_replay: bool,
pub path: String,
pub player: LuaAny,
pub quality: i32,
pub selected_technology: LuaAny,
pub skip_disabled: bool,
}Expand description
Take a screenshot of the technology screen and save it to the script-output folder, located in the game’s user data directory. The name of the image file can be specified via the path parameter.
Fields§
§allow_in_replay: boolWhether to save the screenshot even during replay playback. Defaults to false.
path: StringThe name of the image file. It should include a file extension indicating the desired format. Supports .png, .jpg /.jpeg, .tga and .bmp. Providing a directory path (ex. "save/here/screenshot.png") will create the necessary folder structure in script-output. Defaults to "technology-screenshot.png".
player: LuaAnyThe screenshot will be taken for this player.
quality: i32The .jpg render quality as a percentage (from 0% to 100% inclusive), if used. A lower value means a more compressed image. Defaults to 80.
selected_technology: LuaAnyThe technology to highlight.
skip_disabled: boolIf true, disabled technologies will be skipped. Their successors will be attached to the disabled technology’s parents. Defaults to false.
Trait Implementations§
Source§impl Clone for LuaGameScriptTakeTechnologyScreenshotParams
impl Clone for LuaGameScriptTakeTechnologyScreenshotParams
Source§fn clone(&self) -> LuaGameScriptTakeTechnologyScreenshotParams
fn clone(&self) -> LuaGameScriptTakeTechnologyScreenshotParams
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more