C# 클래스 Nexus.Client.ModAuthoring.UI.ModPackagingFormVM

This class encapsulates the data and the operations presented by UI elements that display a mod packaging Project editor.
상속: ObservableObject
파일 보기 프로젝트 열기: NexusMods/NexusModManager-4.5 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
ConfirmSaveCurrentProject Func
GetIgnoreWarnings Func
GetNewModSavePath Func
GetOpenPath Func
GetProjectSavePath Func

공개 메소드들

메소드 설명
ModPackagingFormVM ( InstallScriptEditorVM p_vmlScriptEditorVM, ModInfoEditorVM p_vmlInfoEditorVM, Project p_prjModProject, IScriptTypeRegistry p_srgScriptTypeRegistry, ModPackager p_mpkModBuilder ) : System

A simple constructor that initializes the object with the given values.

Validate ( ) : bool

Validates the project.

보호된 메소드들

메소드 설명
BuildMod ( string p_strPath ) : void

Build a mod file at the given path from the current Project.

GetAbandonCurrentProject ( ) : bool

Determine if we should

NewProject ( ) : void

Creates a new packaging Project.

OpenProject ( ) : void

Opens the mod packaging Project from the given path.

SaveProject ( string p_strPath ) : void

Saves the mod packaging Project to the given path.

ValidateFiles ( ) : bool

Validates the mod files.

This raises a warning if no files have been selected.

ValidateModInfo ( ) : bool

This validates the mod info.

ValidateReadme ( ) : bool

Validates the readme.

This raises a warning if there is no readme.

ValidateScript ( ) : bool

This validates the install script.

비공개 메소드들

메소드 설명
Project_PropertyChanged ( object sender, PropertyChangedEventArgs e ) : void

Handles the INotifyPropertyChanged.PropertyChanged event of the Project being edited.

메소드 상세

BuildMod() 보호된 메소드

Build a mod file at the given path from the current Project.
protected BuildMod ( string p_strPath ) : void
p_strPath string The file path at which to build the mod.
리턴 void

GetAbandonCurrentProject() 보호된 메소드

Determine if we should
protected GetAbandonCurrentProject ( ) : bool
리턴 bool

ModPackagingFormVM() 공개 메소드

A simple constructor that initializes the object with the given values.
public ModPackagingFormVM ( InstallScriptEditorVM p_vmlScriptEditorVM, ModInfoEditorVM p_vmlInfoEditorVM, Project p_prjModProject, IScriptTypeRegistry p_srgScriptTypeRegistry, ModPackager p_mpkModBuilder ) : System
p_vmlScriptEditorVM Nexus.Client.ModAuthoring.UI.Controls.InstallScriptEditorVM The that encapsulates the data /// and operations for diaplying the editor.
p_vmlInfoEditorVM Nexus.Client.ModAuthoring.UI.Controls.ModInfoEditorVM The that encapsulates the data /// and operations for diaplying the editor.
p_prjModProject Project The to edit.
p_srgScriptTypeRegistry IScriptTypeRegistry The of available s.
p_mpkModBuilder ModPackager he to use to build mod files /// from s.
리턴 System

NewProject() 보호된 메소드

Creates a new packaging Project.
protected NewProject ( ) : void
리턴 void

OpenProject() 보호된 메소드

Opens the mod packaging Project from the given path.
protected OpenProject ( ) : void
리턴 void

SaveProject() 보호된 메소드

Saves the mod packaging Project to the given path.
protected SaveProject ( string p_strPath ) : void
p_strPath string The file path to which to save the .
리턴 void

Validate() 공개 메소드

Validates the project.
public Validate ( ) : bool
리턴 bool

ValidateFiles() 보호된 메소드

Validates the mod files.
This raises a warning if no files have been selected.
protected ValidateFiles ( ) : bool
리턴 bool

ValidateModInfo() 보호된 메소드

This validates the mod info.
protected ValidateModInfo ( ) : bool
리턴 bool

ValidateReadme() 보호된 메소드

Validates the readme.
This raises a warning if there is no readme.
protected ValidateReadme ( ) : bool
리턴 bool

ValidateScript() 보호된 메소드

This validates the install script.
protected ValidateScript ( ) : bool
리턴 bool

프로퍼티 상세

ConfirmSaveCurrentProject 공개적으로 프로퍼티

Gets whether the current Project should be saved.
If the delegate returns null, then the user wishes to keep the current project as the project being edited.
public Func ConfirmSaveCurrentProject
리턴 Func

GetIgnoreWarnings 공개적으로 프로퍼티

Determines if the validation warnings should be ignored.
public Func GetIgnoreWarnings
리턴 Func

GetNewModSavePath 공개적으로 프로퍼티

Gets the file path to which to save the new mod.
public Func GetNewModSavePath
리턴 Func

GetOpenPath 공개적으로 프로퍼티

Gets the path of the Project file to open.
public Func GetOpenPath
리턴 Func

GetProjectSavePath 공개적으로 프로퍼티

Gets the file path to which to save the Project.
public Func GetProjectSavePath
리턴 Func