public TXT1(BRLYT.Header header, string name) { LoadDefaults(); Name = name; layoutFile = header; //Add new material var mat = new Material(this.Name, header); header.MaterialList.Materials.Add(mat); MaterialIndex = (ushort)header.MaterialList.Materials.IndexOf(mat); Material = mat; Text = Encoding.Unicode.GetString(new byte[0]); FontIndex = 0; FontName = ""; TextLength = 4; MaxTextLength = 4; TextAlignment = 0; LineAlignment = LineAlign.Unspecified; ItalicTilt = 0; FontTopColor = STColor8.White; FontBottomColor = STColor8.White; FontSize = new Vector2F(92, 101); CharacterSpace = 0; LineSpace = 0; ShadowXY = new Vector2F(1, -1); ShadowXYSize = new Vector2F(1, 1); ShadowBackColor = STColor8.Black; ShadowForeColor = STColor8.Black; ShadowItalic = 0; }
public PIC1(FileReader reader, BRLYT.Header header) : base(reader, header) { ParentLayout = header; ColorTopLeft = STColor8.FromBytes(reader.ReadBytes(4)); ColorTopRight = STColor8.FromBytes(reader.ReadBytes(4)); ColorBottomLeft = STColor8.FromBytes(reader.ReadBytes(4)); ColorBottomRight = STColor8.FromBytes(reader.ReadBytes(4)); MaterialIndex = reader.ReadUInt16(); byte numUVs = reader.ReadByte(); reader.Seek(1); //padding TexCoords = new TexCoord[numUVs]; for (int i = 0; i < numUVs; i++) { TexCoords[i] = new TexCoord() { TopLeft = reader.ReadVec2SY(), TopRight = reader.ReadVec2SY(), BottomLeft = reader.ReadVec2SY(), BottomRight = reader.ReadVec2SY(), }; } Material = header.MaterialList.Materials[MaterialIndex]; }
public TevStage(FileReader reader, BRLYT.Header header) { }