C# 클래스 Nexus.Client.ModManagement.Scripting.ModScript.ModScriptUIUtil

This class displays UI elements on another thread.
This class is useful for marshalling UI interaction to the UI thread.
상속: UIUtil
파일 보기 프로젝트 열기: NexusMods/NexusModManager-4.5 1 사용 예제들

공개 메소드들

메소드 설명
GetText ( string p_strTitle, string p_strInitialValue ) : string

Displays text editor, and returns the entered text.

ModScriptUIUtil ( IGameMode p_gmdGameMode, IEnvironmentInfo p_eifEnvironmentInfo, SynchronizationContext p_scxSyncContext ) : System.Threading

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

ShowImage ( Image p_imgImage, string p_strTitle ) : void

Displays the given image.

ShowText ( string p_strTitle, string p_strInitialValue ) : void

Displays text.

비공개 메소드들

메소드 설명
ShowImageViewer ( Image p_imgImage, string p_strTitle ) : void

Displays the given image.

This method is called by the SynchronizationContext so that the image viewer is created and displayed on the UI thread.

메소드 상세

GetText() 공개 메소드

Displays text editor, and returns the entered text.
public GetText ( string p_strTitle, string p_strInitialValue ) : string
p_strTitle string The title of the editor.
p_strInitialValue string The initial value of the editor.
리턴 string

ModScriptUIUtil() 공개 메소드

A simple constructor that initializes the object with the given values.
public ModScriptUIUtil ( IGameMode p_gmdGameMode, IEnvironmentInfo p_eifEnvironmentInfo, SynchronizationContext p_scxSyncContext ) : System.Threading
p_gmdGameMode IGameMode The current game mode.
p_eifEnvironmentInfo IEnvironmentInfo The application's envrionment info.
p_scxSyncContext System.Threading.SynchronizationContext The synchronization context to use to marshall calls to the UI thread.
리턴 System.Threading

ShowImage() 공개 메소드

Displays the given image.
public ShowImage ( Image p_imgImage, string p_strTitle ) : void
p_imgImage Image The image to display.
p_strTitle string The title to display in the image viewer.
리턴 void

ShowText() 공개 메소드

Displays text.
public ShowText ( string p_strTitle, string p_strInitialValue ) : void
p_strTitle string The title of the editor.
p_strInitialValue string The initial value of the editor.
리턴 void