public IFFChunk(FileReader Reader,GraphicsDevice Device,Iff Parent) { m_Parent = Parent; m_Device = Device; ReadHeader(Reader); }
public CreditsScreen(ScreenManager Manager, SpriteBatch SBatch) : base(Manager, "Credits", SBatch, new Vector2(0, 0), new Vector2(GlobalSettings.Default.ScreenWidth, GlobalSettings.Default.ScreenHeight), GlobalSettings.Default.StartupPath + "\\" + "gamedata\\uiscripts\\credits.uis") { BackgroundImg = (UIImage)m_Walker.Elements["\"BackgroundImage\""]; TSOLogoImage = m_Walker.Controls["\"TSOLogoImage\""].Image; BackButtonIndentImage = m_Walker.Controls["\"BackButtonIndentImage\""].Image; WillImage = (UIImage)m_Walker.Elements["\"WillImage\""]; MaxisButton = (UIButton)m_Walker.Elements["\"MaxisButton\""]; MaxisButton.OnButtonClicked += MaxisButton_OnButtonClicked; m_WillWrightDiag = new WillWrightDiag(WillImage, this, new Vector2(100, 100)); m_WillWrightDiag.IsDrawn = false; m_Walker.Elements.Add("WillWrightDiag", m_WillWrightDiag); m_Credits = FileManager.GetIFF("credits.iff"); m_CreditsArea = (UIControl)m_Walker.Controls["\"CreditsArea\""]; m_CreditsY = m_CreditsArea.Size.Y; foreach(TranslatedString TStr in m_Credits.GetSTR(163).GetStringList(LanguageCodes.EngUS)) { foreach (string Str in TStr.TranslatedStr.Split('\n')) m_CreditsStrings.Add(Str); } m_CreditsTimer = new Timer(300); m_CreditsTimer.Elapsed += M_CreditsTimer_Elapsed; m_CreditsTimer.Start(); }
public IFFChunk(FileReader Reader, GraphicsDevice Device, Iff Parent) { m_Parent = Parent; m_Device = Device; ReadHeader(Reader); }
public DGRPImg(GraphicsDevice Device, Iff Parent, FileReader Reader, uint Version) { m_Graphics = Device; m_SBatch = new SpriteBatch(m_Graphics); if (Version == 20000 || Version == 20001) { SpriteCount = Reader.ReadUShort(); Direction = (DirectionFlags)Reader.ReadByte(); ZoomLevel = Reader.ReadByte(); for (int i = 0; i < SpriteCount; i++) { SpriteInfo Info = new SpriteInfo(Reader, this, Version); m_Sprites.Add(new DrawGroupSprite(Device, Info, Parent.GetSprite((ushort)Info.SPRChunkID).GetFrame(Info.SPRFrameNum))); } } else { Direction = (DirectionFlags)Reader.ReadUInt32(); ZoomLevel = Reader.ReadUInt32(); SpriteCount = Reader.ReadUInt32(); for (int i = 0; i < SpriteCount; i++) { SpriteInfo Info = new SpriteInfo(Reader, this, Version); m_Sprites.Add(new DrawGroupSprite(Device, Info, Parent.GetSprite((ushort)Info.SPRChunkID).GetFrame(Info.SPRFrameNum))); } } }
public IFFChunk(IFFChunk BaseChunk) { m_Parent = BaseChunk.m_Parent; m_Device = BaseChunk.m_Parent.Device; m_Data = BaseChunk.m_Data; Size = BaseChunk.Size; ID = BaseChunk.ID; Type = BaseChunk.Type; }
public IFFChunk(FileReader Reader,Iff Parent) { m_Parent = Parent; ReadHeader(Reader); }
private Iff m_SemiGlobal; //Related semi-global IFF file. public BHAVAnalyzer(Iff IffFile) { m_MyFile = IffFile; }
public IFFChunk(FileReader Reader, Iff Parent) { m_Parent = Parent; ReadHeader(Reader); }