C# Class SpriteEditor.SESpriteGridManager

Summary description for SESpriteGridManager.
Exibir arquivo Open project: vchelaru/FlatRedBall Class Usage Examples

Public Properties

Property Type Description
CurrentSpriteGrid FlatRedBall.ManagedSpriteGroups.SpriteGrid
SpriteGridGrabbed FlatRedBall.ManagedSpriteGroups.SpriteGrid
newlySelectedCurrentSprite FlatRedBall.Sprite
newlySelectedCurrentSpriteGrid FlatRedBall.ManagedSpriteGroups.SpriteGrid
oldPosition System.Vector3

Public Methods

Method Description
Activity ( ) : void
AskIfChangesShouldBeApplied ( GuiMessage extraMessage ) : void
ClickGrid ( FlatRedBall.ManagedSpriteGroups.SpriteGrid gridClicked, Sprite spriteClicked ) : void
DeleteGrid ( FlatRedBall.ManagedSpriteGroups.SpriteGrid gridToDelete ) : void
HasBlueprintChanged ( ) : bool
PopulateAndAddGridToEngine ( FlatRedBall.ManagedSpriteGroups.SpriteGrid gridToAdd, Sprite spriteToUseAsPopulationSource ) : void
SESpriteGridManager ( ) : System
ShowMessageBoxIfBoundsAreInvalid ( ) : void
ToString ( ) : string
UpdateGridBorder ( ) : void
grabGridSprite ( ) : void
spriteGridArrayLogic ( ) : void

Private Methods

Method Description
DoBoundsOverlapSprites ( FlatRedBall.ManagedSpriteGroups.SpriteGrid spriteGrid ) : bool
PaintGridAt ( float x, float y, float z ) : void
PaintSpriteGrid ( Sprite tempSpriteGrabbed ) : void
PaintTextureCoordinatesOnCurrentSpriteInGrid ( ) : void
RepopulateSpriteGrid ( object spriteGrid ) : void
ShouldAskUserIfChangesShouldBeApplied ( FlatRedBall.ManagedSpriteGroups.SpriteGrid tempSpriteGridGrabbed, Sprite tempSpriteGrabbed ) : bool

Deselects the grid on the list window and returns whether to ask to keep changes

When either a new SpriteGrid or a different Sprite in the same SpriteGrid is selected, the ShouldAskUserIfChangesShouldBeApplied() method must be called. This method does not deselect the currentSpriteGrid, but returns whether changes have been made so that the code calling this method can store the newly-selected Sprite and SpriteGrid in the newlySelectedCurrentSprite and newlySelectedCurrentSpriteGrid variables. For this, this method is private and only called from within this class. To deselect a grid from outside of this class, call clickGrid(null, null).

Method Details

Activity() public method

public Activity ( ) : void
return void

AskIfChangesShouldBeApplied() public static method

public static AskIfChangesShouldBeApplied ( GuiMessage extraMessage ) : void
extraMessage GuiMessage
return void

ClickGrid() public method

public ClickGrid ( FlatRedBall.ManagedSpriteGroups.SpriteGrid gridClicked, Sprite spriteClicked ) : void
gridClicked FlatRedBall.ManagedSpriteGroups.SpriteGrid
spriteClicked FlatRedBall.Sprite
return void

DeleteGrid() public method

public DeleteGrid ( FlatRedBall.ManagedSpriteGroups.SpriteGrid gridToDelete ) : void
gridToDelete FlatRedBall.ManagedSpriteGroups.SpriteGrid
return void

HasBlueprintChanged() public static method

public static HasBlueprintChanged ( ) : bool
return bool

PopulateAndAddGridToEngine() public method

public PopulateAndAddGridToEngine ( FlatRedBall.ManagedSpriteGroups.SpriteGrid gridToAdd, Sprite spriteToUseAsPopulationSource ) : void
gridToAdd FlatRedBall.ManagedSpriteGroups.SpriteGrid
spriteToUseAsPopulationSource FlatRedBall.Sprite
return void

SESpriteGridManager() public method

public SESpriteGridManager ( ) : System
return System

ShowMessageBoxIfBoundsAreInvalid() public static method

public static ShowMessageBoxIfBoundsAreInvalid ( ) : void
return void

ToString() public method

public ToString ( ) : string
return string

UpdateGridBorder() public method

public UpdateGridBorder ( ) : void
return void

grabGridSprite() public method

public grabGridSprite ( ) : void
return void

spriteGridArrayLogic() public method

public spriteGridArrayLogic ( ) : void
return void

Property Details

CurrentSpriteGrid public_oe static_oe property

public static SpriteGrid,FlatRedBall.ManagedSpriteGroups CurrentSpriteGrid
return FlatRedBall.ManagedSpriteGroups.SpriteGrid

SpriteGridGrabbed public_oe property

public SpriteGrid,FlatRedBall.ManagedSpriteGroups SpriteGridGrabbed
return FlatRedBall.ManagedSpriteGroups.SpriteGrid

newlySelectedCurrentSprite public_oe property

public Sprite,FlatRedBall newlySelectedCurrentSprite
return FlatRedBall.Sprite

newlySelectedCurrentSpriteGrid public_oe property

public SpriteGrid,FlatRedBall.ManagedSpriteGroups newlySelectedCurrentSpriteGrid
return FlatRedBall.ManagedSpriteGroups.SpriteGrid

oldPosition public_oe static_oe property

public static Vector3,System oldPosition
return System.Vector3