Skip to content

Latest commit

 

History

History
58 lines (43 loc) · 4.16 KB

File metadata and controls

58 lines (43 loc) · 4.16 KB

subkt / myaa.subkt.ass / ScriptInfoSection

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

Parameters

name - The name of the section, usually Script Info.

Constructors

Name Summary
<init> ScriptInfoSection(name: String)
Represents a script info section.

Properties

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?

Inherited Properties

Name Summary
values val values: MutableMap<String, Any>
The values of this section.

Inherited Functions

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.