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); }
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(); } }
/** * <summary>Gets the code corresponding to the given value.</summary> */ public static PdfInteger GetCode(this JustificationEnum value) { return(codes[value]); }
/** * <summary>Gets the code corresponding to the given value.</summary> */ private static PdfInteger ToCode( JustificationEnum value ) { return(JustificationEnumCodes[value]); }