コード例 #1
0
 public AssDialogue(AssDocumentItem item)
 {
     Start = item.GetTimestamp("Start");
     End   = item.GetTimestamp("End");
     Style = item.GetString("Style");
     Text  = item.GetString("Text");
 }
コード例 #2
0
 public AssStyle(AssDocumentItem item)
 {
     Name             = item.GetString("Name");
     Font             = item.GetString("Fontname");
     LineHeight       = item.GetFloat("Fontsize");
     Bold             = item.GetBool("Bold");
     Italic           = item.GetBool("Italic");
     Underline        = item.GetBool("Underline");
     PrimaryColor     = item.GetColor("PrimaryColour");
     SecondaryColor   = item.GetColor("SecondaryColour");
     OutlineColor     = item.GetColor("OutlineColour");
     OutlineThickness = item.GetFloat("Outline");
     OutlineIsBox     = item.GetInt("BorderStyle") == 3;
     ShadowColor      = item.GetColor("BackColour");
     ShadowDistance   = item.GetFloat("Shadow");
     AnchorPoint      = AssDocument.GetAnchorPoint(item.GetInt("Alignment"));
 }