Esempio n. 1
0
 public override System.Collections.Generic.Queue <Moonfish.Tags.BlamPointer> ReadFields(System.IO.BinaryReader binaryReader)
 {
     System.Collections.Generic.Queue <Moonfish.Tags.BlamPointer> pointerQueue = new System.Collections.Generic.Queue <Moonfish.Tags.BlamPointer>(base.ReadFields(binaryReader));
     this.Name                   = binaryReader.ReadStringID();
     pointerQueue                = new System.Collections.Generic.Queue <Moonfish.Tags.BlamPointer>(pointerQueue.Concat(this.HudWidgetInputsStruct.ReadFields(binaryReader)));
     pointerQueue                = new System.Collections.Generic.Queue <Moonfish.Tags.BlamPointer>(pointerQueue.Concat(this.HudWidgetStateDefinitionStruct.ReadFields(binaryReader)));
     this.Anchor                 = ((AnchorEnum)(binaryReader.ReadInt16()));
     this.HudTextWidgetsFlags    = ((Flags)(binaryReader.ReadInt16()));
     this.Shader                 = binaryReader.ReadTagReference();
     this.String                 = binaryReader.ReadStringID();
     this.Justification          = ((JustificationEnum)(binaryReader.ReadInt16()));
     this.fieldpad               = binaryReader.ReadBytes(2);
     this.FullscreenFontIndex    = ((FullscreenFontIndexEnum)(binaryReader.ReadByte()));
     this.HalfscreenFontIndex    = ((HalfscreenFontIndexEnum)(binaryReader.ReadByte()));
     this.QuarterscreenFontIndex = ((QuarterscreenFontIndexEnum)(binaryReader.ReadByte()));
     this.fieldpad0              = binaryReader.ReadBytes(1);
     this.FullscreenScale        = binaryReader.ReadSingle();
     this.HalfscreenScale        = binaryReader.ReadSingle();
     this.QuarterscreenScale     = binaryReader.ReadSingle();
     this.FullscreenOffset       = binaryReader.ReadPoint();
     this.HalfscreenOffset       = binaryReader.ReadPoint();
     this.QuarterscreenOffset    = binaryReader.ReadPoint();
     pointerQueue.Enqueue(binaryReader.ReadBlamPointer(104));
     return(pointerQueue);
 }
 public override System.Collections.Generic.Queue <Moonfish.Tags.BlamPointer> ReadFields(System.IO.BinaryReader binaryReader)
 {
     System.Collections.Generic.Queue <Moonfish.Tags.BlamPointer> pointerQueue = new System.Collections.Generic.Queue <Moonfish.Tags.BlamPointer>(base.ReadFields(binaryReader));
     this.Name               = binaryReader.ReadStringID();
     this.TextBounds         = binaryReader.ReadVector2();
     this.Justification      = ((JustificationEnum)(binaryReader.ReadInt16()));
     this.Font               = ((FontEnum)(binaryReader.ReadInt16()));
     this.TextColor          = binaryReader.ReadColourR1G1B1();
     this.ShadowColor        = binaryReader.ReadColourR1G1B1();
     this.FadeInTimeseconds  = binaryReader.ReadSingle();
     this.UpTimeseconds      = binaryReader.ReadSingle();
     this.FadeOutTimeseconds = binaryReader.ReadSingle();
     this.padding            = binaryReader.ReadBytes(2);
     return(pointerQueue);
 }
Esempio n. 3
0
        public static XAlignmentEnum ToXAlignment(this JustificationEnum value)
        {
            switch (value)
            {
            case JustificationEnum.Left:
                return(XAlignmentEnum.Left);

            case JustificationEnum.Center:
                return(XAlignmentEnum.Center);

            case JustificationEnum.Right:
                return(XAlignmentEnum.Right);

            default:
                throw new NotSupportedException();
            }
        }
Esempio n. 4
0
 /**
  * <summary>Gets the code corresponding to the given value.</summary>
  */
 public static PdfInteger GetCode(this JustificationEnum value)
 {
     return(codes[value]);
 }
Esempio n. 5
0
 /**
  * <summary>Gets the code corresponding to the given value.</summary>
  */
 private static PdfInteger ToCode(
     JustificationEnum value
     )
 {
     return(JustificationEnumCodes[value]);
 }