C# Class TuxedoBerries.ScenePanel.Drawers.ScreenshotDrawer

Screenshot drawer. Draws the screenshot tool.
Inheritance: BaseDrawer
Datei anzeigen Open project: TuxedoBerries/ScenePanel Class Usage Examples

Public Methods

Method 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

Method 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 method

Draws the configuration.
public DrawConfiguration ( ) : void
return void

DrawControls() public method

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.
return string

DrawControls() public method

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
return string

DrawFull() public method

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

DrawPreview() public method

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

DrawSnapshot() public method

Draws the snapshot section of the entity.
public DrawSnapshot ( ISceneEntity entity ) : void
entity ISceneEntity Entity.
return void

ScreenshotDrawer() public method

public ScreenshotDrawer ( ) : System.Collections.Generic
return System.Collections.Generic