subkt / myaa.subkt.ass / ScriptInfoSection
class ScriptInfoSection :
KeyValSection
(source)
Represents a script info section.
Example usage:
val scriptInfoSection = assFile.scriptInfo
scriptInfoSection.playResX = 1920
scriptInfoSection.values["PlayResX"] = 1920 // equivalent to the above
name
- The name of the section, usually Script Info
.
Name | Summary |
---|---|
<init> | ScriptInfoSection(name: String ) Represents a script info section. |
Name | Summary |
---|---|
colorMatrix | var colorMatrix: ColorMatrix ? |
editing | var editing: String ? |
originalScript | var originalScript: String ? |
playResX | var playResX: Int ? |
playResY | var playResY: Int ? |
scaledBorderAndShadow | var scaledBorderAndShadow: Boolean ? |
scriptType | var scriptType: String ? |
synchPoint | var synchPoint: String ? |
timer | var timer: Double ? |
timing | var timing: String ? |
title | var title: String ? |
translation | var translation: String ? |
updatedBy | var updatedBy: String ? |
updateDetails | var updateDetails: String ? |
wrapStyle | var wrapStyle: WrapStyle ? |
Name | Summary |
---|---|
values | val values: MutableMap < String , Any > The values of this section. |
Name | Summary |
---|---|
parse | open fun parse(data: List < KeyValLine >, extraData: ExtraData ): Unit Deserializes a list of lines in KeyValLine format and adds them to this section. |
serializeContents | open fun serializeContents(includeExtraData: Boolean ): Sequence < String > Returns a string sequence representing the serialization of the contents of this section, without the section name. |