C# Class ME3Explorer.KFreonTPFTools3

This is a tool to deal with TPF's and to install textures from TPF's and external images.
Inheritance: System.Windows.Forms.Form
显示文件 Open project: ME3Explorer/ME3Explorer Class Usage Examples

Private Properties

Property Type Description
AnalyseButton_Click void
AnalyseVsTree void
Autofix bool
AutofixInternal bool
AutofixSingleButton_Click void
BeginLoadingFiles void
BeginTreeLoading void
BulkExtractTPFButton_Click void
CancelButton_Click void
ChangeButton_Click void
ChangeIndicatorColours void
ChangeTreeViewCheckState void
ChangeTrees void
CheckAllButton_Click void
CheckNodes void
CheckSelectAllPCCsList void
CheckTextures bool
CheckTree bool
Cleanup void
ClearPreview void
CloseFilesButton_Click void
ConvertButton_Click void
CopyClipBoardButton_Click void
CopySelectedClipBoardButton_Click void
DeleteEntry bool
DisableCancelButton void
DisappearDuplicatesBox void
DisappearTextBox void
DisplayInfo void
DoGameIndicatorChecks void
EnableSecondProgressBar void
ExportPCCListButton_Click void
ExtractAndBuildLog void
ExtractButton_Click void
Extractor void
Extractor void
FindTreeDuplicates void
FirstHalfInfoState void
Form_Closing void
GetCheckedTexes List
GetDupNode KFreonLib.GUI.myTreeNode
GetHashesFromTPF List
GetParentTex int
GetSavePath string
GetSelectedTex int
GetTexFromNode int
GotoDupButton_Click void
GotoInvalid_Click void
HashBox_Altered void
HashBox_FocusLost void
HashBox_KeyDown void
HelpButton_Click void
Initialise void
InitialiseGUI void
InitializeComponent void
InstallButton_Click void
InstallSingleButton_Click void
InstallTextures bool
InstallValid bool
LoadButton_Click void
LoadFiles bool
LoadMOD void
LoadTPF void
LoadTrees bool
MODtoTPFButton_Click void
MainTreeView_AfterSelect void
MainTreeView_Click void
MainTreeView_DragDrop void
MainTreeView_DragEnter void
MainTreeView_DrawNode void
MainTreeView_FocusLeave void
MainTreeView_KeyDown void
MatchHashes void
PCCSelectAllButton_Click void
PCCsCheckBox_IndexChanged void
PreviewObject void
PromoteDupButton_Click void
RemoveFileDuplicates void
RepackWithTexplorer void
ReplaceButton_Click void
ResetHashButton_Click void
ResetImageList void
RunAutofixButton_Click void
SaveModButton_Click void
SaveModInternal bool
SaveProperties void
SaveValidToMod bool
SecondHalfInfoState void
SetTreeImages void
SetTreeImagesInternal void
ShowContextPanel void
ShowPCCContextPanel void
TPFBuild void
TabControl_TabChanged void
UncheckAllButton_Click void
UpdateHash KFreonLib.Textures.TPFTexInfo
UpdateHash KFreonLib.Textures.TPFTexInfo
UpdateSelectedTexPCCList void
allTexturesToolStripMenuItem_Click void
extractAllToolStripMenuItem_Click void
extractInvalidToolStripMenuItem_Click void
extractValidsToolStripMenuItem_Click void
onlyCheckedToolStripMenuItem_Click void
texmodPreviewBox_TextChanged void
toggleHelpTooltipsToolStripMenuItem_Click void
wikiArticleToolStripMenuItem_Click void

Public Methods

Method Description
GetCurrentInstance ( ) : Task
KFreonTPFTools3 ( ) : System

Constructor.

LoadExternal ( string file, bool isDef ) : int
RedrawTreeView ( ) : void
SetupToolTip ( Control control ) : ToolTip
UpdateHashAndReplace ( TPFTexInfo tex, int index, string hash ) : void
UpdateHashAndReplace ( int index, string hash ) : void
UpdateHashAndReplace ( int index, uint hash, bool SetOrigToo ) : void
UpgradeSettings ( ) : void

Upgrades settings to current build. Some weird thing necessary for keeping settings throughout rebuilds.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
AnalyseButton_Click ( object sender, EventArgs e ) : void
AnalyseVsTree ( ) : void
Autofix ( ) : bool
AutofixInternal ( TPFTexInfo tex ) : bool
AutofixSingleButton_Click ( object sender, EventArgs e ) : void
BeginLoadingFiles ( List Files = null ) : void
BeginTreeLoading ( ) : void

Begins tree loading MAYBE ASYNC?

BulkExtractTPFButton_Click ( object sender, EventArgs e ) : void
CancelButton_Click ( object sender, EventArgs e ) : void
ChangeButton_Click ( object sender, EventArgs e ) : void
ChangeIndicatorColours ( int game, bool state, bool isTree ) : void

Sets colours of game-exists and tree-exists indicators.

ChangeTreeViewCheckState ( bool isChecked ) : void
ChangeTrees ( int whichgame ) : void
CheckAllButton_Click ( object sender, EventArgs e ) : void
CheckNodes ( IEnumerable texes ) : void
CheckSelectAllPCCsList ( bool SelectAll, bool FromButton ) : void
CheckTextures ( ) : bool
CheckTree ( ) : bool
Cleanup ( ) : void

Cleans up temporary files.

ClearPreview ( ) : void
CloseFilesButton_Click ( object sender, EventArgs e ) : void
ConvertButton_Click ( object sender, EventArgs e ) : void
CopyClipBoardButton_Click ( object sender, EventArgs e ) : void
CopySelectedClipBoardButton_Click ( object sender, EventArgs e ) : void
DeleteEntry ( int ind = -1 ) : bool
DisableCancelButton ( bool state ) : void

Changes cancel button visibility.

DisappearDuplicatesBox ( bool state ) : void
DisappearTextBox ( bool state ) : void

Changes textbox and previewbox visibility.

DisplayInfo ( TPFTexInfo tex ) : void
DoGameIndicatorChecks ( ) : void

Changes game indicator colours if necessary

EnableSecondProgressBar ( bool state ) : void
ExportPCCListButton_Click ( object sender, EventArgs e ) : void
ExtractAndBuildLog ( string extractPath, List tmptexes ) : void
ExtractButton_Click ( object sender, EventArgs e ) : void
Extractor ( string ExtractPath ) : void
Extractor ( string ExtractPath, TPFTexInfo tex, Predicate predicate ) : void
FindTreeDuplicates ( ) : void
FirstHalfInfoState ( bool state ) : void
Form_Closing ( object sender, FormClosingEventArgs e ) : void
GetCheckedTexes ( ) : List
GetDupNode ( TPFTexInfo tex, int forwardDupIndex ) : myTreeNode
GetHashesFromTPF ( SaltTPF zippy, bool removeDuplicates = true ) : List
GetParentTex ( TPFTexInfo &tex ) : int
GetSavePath ( string title, string extension ) : string
GetSelectedTex ( TPFTexInfo &tex ) : int
GetTexFromNode ( myTreeNode node, TPFTexInfo &tex ) : int
GotoDupButton_Click ( object sender, EventArgs e ) : void
GotoInvalid_Click ( object sender, EventArgs e ) : void
HashBox_Altered ( ) : void
HashBox_FocusLost ( object sender, EventArgs e ) : void
HashBox_KeyDown ( object sender, KeyEventArgs e ) : void
HelpButton_Click ( object sender, EventArgs e ) : void
Initialise ( bool changeTree ) : void

Sets up some basic things.

InitialiseGUI ( ) : void

Sets up GUI elements

InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

InstallButton_Click ( object sender, EventArgs e ) : void
InstallSingleButton_Click ( object sender, EventArgs e ) : void
InstallTextures ( List textures, bool result ) : bool
InstallValid ( bool result ) : bool
LoadButton_Click ( object sender, EventArgs e ) : void
LoadFiles ( List files ) : bool
LoadMOD ( string filename ) : void
LoadTPF ( string file ) : void
LoadTrees ( ) : bool

Loads Tree.

MODtoTPFButton_Click ( object sender, EventArgs e ) : void
MainTreeView_AfterSelect ( object sender, TreeViewEventArgs e ) : void
MainTreeView_Click ( object sender, EventArgs e ) : void
MainTreeView_DragDrop ( object sender, DragEventArgs e ) : void
MainTreeView_DragEnter ( object sender, DragEventArgs e ) : void
MainTreeView_DrawNode ( object sender, DrawTreeNodeEventArgs e ) : void
MainTreeView_FocusLeave ( object sender, EventArgs e ) : void
MainTreeView_KeyDown ( object sender, KeyEventArgs e ) : void
MatchHashes ( ) : void
PCCSelectAllButton_Click ( object sender, EventArgs e ) : void
PCCsCheckBox_IndexChanged ( object sender, System.Windows.Forms.ItemCheckedEventArgs e ) : void
PreviewObject ( TPFTexInfo tex ) : void
PromoteDupButton_Click ( object sender, EventArgs e ) : void
RemoveFileDuplicates ( ) : void
RepackWithTexplorer ( List texes ) : void
ReplaceButton_Click ( object sender, EventArgs e ) : void
ResetHashButton_Click ( object sender, EventArgs e ) : void
ResetImageList ( ) : void
RunAutofixButton_Click ( object sender, EventArgs e ) : void
SaveModButton_Click ( object sender, EventArgs e ) : void
SaveModInternal ( bool result ) : bool
SaveProperties ( ) : void
SaveValidToMod ( string saveFile ) : bool
SecondHalfInfoState ( bool state ) : void
SetTreeImages ( TreeView treeview ) : void
SetTreeImagesInternal ( myTreeNode treeNode ) : void
ShowContextPanel ( bool state ) : void
ShowPCCContextPanel ( bool state ) : void
TPFBuild ( List texes ) : void
TabControl_TabChanged ( object sender, EventArgs e ) : void
UncheckAllButton_Click ( object sender, EventArgs e ) : void
UpdateHash ( TPFTexInfo tex, string hash ) : TPFTexInfo
UpdateHash ( TPFTexInfo tex, uint hash ) : TPFTexInfo
UpdateSelectedTexPCCList ( TPFTexInfo tex, int index, bool SelectAll = false ) : void
allTexturesToolStripMenuItem_Click ( object sender, EventArgs e ) : void
extractAllToolStripMenuItem_Click ( object sender, EventArgs e ) : void
extractInvalidToolStripMenuItem_Click ( object sender, EventArgs e ) : void
extractValidsToolStripMenuItem_Click ( object sender, EventArgs e ) : void
onlyCheckedToolStripMenuItem_Click ( object sender, EventArgs e ) : void
texmodPreviewBox_TextChanged ( object sender, EventArgs e ) : void
toggleHelpTooltipsToolStripMenuItem_Click ( object sender, EventArgs e ) : void
wikiArticleToolStripMenuItem_Click ( object sender, EventArgs e ) : void

Method Details

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
return void

GetCurrentInstance() public static method

public static GetCurrentInstance ( ) : Task
return Task

KFreonTPFTools3() public method

Constructor.
public KFreonTPFTools3 ( ) : System
return System

LoadExternal() public method

public LoadExternal ( string file, bool isDef ) : int
file string
isDef bool
return int

RedrawTreeView() public method

public RedrawTreeView ( ) : void
return void

SetupToolTip() public method

public SetupToolTip ( Control control ) : ToolTip
control System.Windows.Forms.Control
return System.Windows.Forms.ToolTip

UpdateHashAndReplace() public method

public UpdateHashAndReplace ( TPFTexInfo tex, int index, string hash ) : void
tex KFreonLib.Textures.TPFTexInfo
index int
hash string
return void

UpdateHashAndReplace() public method

public UpdateHashAndReplace ( int index, string hash ) : void
index int
hash string
return void

UpdateHashAndReplace() public method

public UpdateHashAndReplace ( int index, uint hash, bool SetOrigToo ) : void
index int
hash uint
SetOrigToo bool
return void

UpgradeSettings() public static method

Upgrades settings to current build. Some weird thing necessary for keeping settings throughout rebuilds.
public static UpgradeSettings ( ) : void
return void