C# Class Oglr.Plugins.Krypton.TexturedHullEditor

Inheritance: Oglr.Core.ItemEditor
Mostrar archivo Open project: SteveDunn/oglr Class Usage Examples

Private Properties

Property Type Description
TexturedHullEditor System
computeFrameIndex void
getTextureOrigin Vector2
initialiseTexture void
intersectPixels bool
makeRelativePath string
reversedFrameIndex void
summonMainForm IMainForm

Public Methods

Method Description
CanRotate ( ) : bool
Clone ( ) : ItemEditor
ContainsPoint ( Vector2 point ) : bool
CreateInDesignMode ( LayerEditor parentLayer, IEntityCreationProperties creationProperties ) : void
DrawInEditor ( SpriteBatch spriteBatch ) : void
DrawSelectionFrame ( SpriteBatch spriteBatch, Microsoft.Xna.Framework.Color color ) : void
HandleKeyPressWhenFocused ( ) : void
OnMouseButtonDown ( Vector2 mouseWorldPos ) : void
OnMouseButtonUp ( Vector2 mouseWorldPos ) : void
OnMouseOver ( Vector2 mouseWorldPos ) : void
RecreateFromXml ( LayerEditor parentLayer, System.Xml.Linq.XElement xml ) : void
SetPosition ( Vector2 position ) : void
UserInteractionDuringCreation ( ) : void

Protected Methods

Method Description
WhenUpdatedByUi ( ) : void

Private Methods

Method Description
TexturedHullEditor ( ) : System
computeFrameIndex ( ) : void
getTextureOrigin ( ) : Vector2
initialiseTexture ( string textureFilename ) : void
intersectPixels ( Vector2 worldpos ) : bool
makeRelativePath ( PathToFolder fromPath, string toPath ) : string

Creates a relative path from one file or folder to another.

reversedFrameIndex ( ) : void
summonMainForm ( ) : IMainForm

Method Details

CanRotate() public method

public CanRotate ( ) : bool
return bool

Clone() public method

public Clone ( ) : ItemEditor
return Oglr.Core.ItemEditor

ContainsPoint() public method

public ContainsPoint ( Vector2 point ) : bool
point Vector2
return bool

CreateInDesignMode() public method

public CreateInDesignMode ( LayerEditor parentLayer, IEntityCreationProperties creationProperties ) : void
parentLayer LayerEditor
creationProperties IEntityCreationProperties
return void

DrawInEditor() public method

public DrawInEditor ( SpriteBatch spriteBatch ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
return void

DrawSelectionFrame() public method

public DrawSelectionFrame ( SpriteBatch spriteBatch, Microsoft.Xna.Framework.Color color ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
color Microsoft.Xna.Framework.Color
return void

HandleKeyPressWhenFocused() public method

public HandleKeyPressWhenFocused ( ) : void
return void

OnMouseButtonDown() public method

public OnMouseButtonDown ( Vector2 mouseWorldPos ) : void
mouseWorldPos Vector2
return void

OnMouseButtonUp() public method

public OnMouseButtonUp ( Vector2 mouseWorldPos ) : void
mouseWorldPos Vector2
return void

OnMouseOver() public method

public OnMouseOver ( Vector2 mouseWorldPos ) : void
mouseWorldPos Vector2
return void

RecreateFromXml() public method

public RecreateFromXml ( LayerEditor parentLayer, System.Xml.Linq.XElement xml ) : void
parentLayer LayerEditor
xml System.Xml.Linq.XElement
return void

SetPosition() public method

public SetPosition ( Vector2 position ) : void
position Vector2
return void

UserInteractionDuringCreation() public method

public UserInteractionDuringCreation ( ) : void
return void

WhenUpdatedByUi() protected method

protected WhenUpdatedByUi ( ) : void
return void