C# Class TuxedoBerries.ScenePanel.Drawers.ScreenshotDrawer

Screenshot drawer. Draws the screenshot tool.
Inheritance: BaseDrawer
Afficher le fichier Open project: TuxedoBerries/ScenePanel Class Usage Examples

Méthodes publiques

Méthode Description
DrawConfiguration ( ) : void

Draws the configuration.

DrawControls ( string dataPath, bool enableShot ) : string

Draws the controls for a screenshot.

DrawControls ( string dataPath, bool enableShot, string suggestedFolder, string suggestedName ) : string

Draws the controls for a screenshot.

DrawFull ( ) : void

Draws the configuration, controls and previews for a screenshot using the last screenshot taken.

DrawPreview ( string dataPath ) : bool

Draws the preview screenshot given the image path.

DrawSnapshot ( ISceneEntity entity ) : void

Draws the snapshot section of the entity.

ScreenshotDrawer ( ) : System.Collections.Generic

Private Methods

Méthode Description
DeleteAllGeneralScreenshots ( ) : void
DrawOpenFolderButton ( string dataPath ) : void
DrawRefreshScreenshotButton ( string dataPath ) : string
DrawScreenshots ( ) : void
DrawTakeScreenshotButton ( string dataPath, bool enableShot, string suggestedFolder, string suggestedName ) : string
GetContent ( string label, string tooltip ) : GUIContent
GetContentIcon ( string iconName, string tooltip ) : GUIContent
GetTexture ( string path, bool refresh ) : Texture
MaxHeight ( Texture texture ) : float
MaxWidth ( Texture texture ) : float
RefreshScreenshots ( ) : void

Method Details

DrawConfiguration() public méthode

Draws the configuration.
public DrawConfiguration ( ) : void
Résultat void

DrawControls() public méthode

Draws the controls for a screenshot.
public DrawControls ( string dataPath, bool enableShot ) : string
dataPath string Data path.
enableShot bool If set to true enable shot.
Résultat string

DrawControls() public méthode

Draws the controls for a screenshot.
public DrawControls ( string dataPath, bool enableShot, string suggestedFolder, string suggestedName ) : string
dataPath string Data path.
enableShot bool If set to true enable shot.
suggestedFolder string
suggestedName string
Résultat string

DrawFull() public méthode

Draws the configuration, controls and previews for a screenshot using the last screenshot taken.
public DrawFull ( ) : void
Résultat void

DrawPreview() public méthode

Draws the preview screenshot given the image path.
public DrawPreview ( string dataPath ) : bool
dataPath string Data path.
Résultat bool

DrawSnapshot() public méthode

Draws the snapshot section of the entity.
public DrawSnapshot ( ISceneEntity entity ) : void
entity ISceneEntity Entity.
Résultat void

ScreenshotDrawer() public méthode

public ScreenshotDrawer ( ) : System.Collections.Generic
Résultat System.Collections.Generic