public override bool Close() { State &= ~(int)FileState.FileOK; myBIG.Destroy(); myBIG = null; return(true); }
private void FindModified(BIGFile big, Progress progress) { progress.Begin(big.BankCount); for (int i = 0; i < big.BankCount; ++i) { FindModified(big.get_Banks(i), progress); } progress.End(); }
protected override bool OnLoad(Progress progress) { try { myBIG = new BIGFile(); myBIG.Load(FileName, progress); } catch (Exception ex) { FormMain.Instance.ErrorMessage(ex.Message); return(false); } return(true); }
public virtual void Build(BIGFile big, Progress progress) { myBIG = big; int numEntries = 0; for (int i = 0; i < myBIG.BankCount; ++i) { numEntries += myBIG.get_Banks(i).EntryCount; } progress.Begin(numEntries); for (int i = 0; i < myBIG.BankCount; ++i) { TreeNode bankNode = new TreeNode(); bankNode.Text = myBIG.get_Banks(i).Name; bankNode.Tag = myBIG.get_Banks(i); bankNode.ImageIndex = 2; bankNode.SelectedImageIndex = 2; AddNode(null, bankNode); for (int j = 0; j < big.get_Banks(i).EntryCount; ++j) { AssetEntry entry = myBIG.get_Banks(i).get_Entries(j); AddToTree( bankNode, entry.DevSymbolName, entry); progress.Update(); } } progress.End(); if (myBIG == FileDatabase.Instance.Textures) { addEntryToolStripMenuItem.Text = "Add Texture"; } }
public override void Build(BIGFile big, Progress progress) { base.Build(big, progress); addEntryToolStripMenuItem.Text = "Add Texture"; }
protected override BIGBank GetGUITextureBank(BIGFile textures) { return(textures.FindBankByName( Settings.GetString("Banks", "GUITextures"))); }