C# Class SpriteEditor.SESpriteGridManager

Summary description for SESpriteGridManager.
Afficher le fichier Open project: vchelaru/FlatRedBall Class Usage Examples

Méthodes publiques

Свойство Type Description
CurrentSpriteGrid FlatRedBall.ManagedSpriteGroups.SpriteGrid
SpriteGridGrabbed FlatRedBall.ManagedSpriteGroups.SpriteGrid
newlySelectedCurrentSprite FlatRedBall.Sprite
newlySelectedCurrentSpriteGrid FlatRedBall.ManagedSpriteGroups.SpriteGrid
oldPosition System.Vector3

Méthodes publiques

Méthode 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

Méthode 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 méthode

public Activity ( ) : void
Résultat void

AskIfChangesShouldBeApplied() public static méthode

public static AskIfChangesShouldBeApplied ( GuiMessage extraMessage ) : void
extraMessage GuiMessage
Résultat void

ClickGrid() public méthode

public ClickGrid ( FlatRedBall.ManagedSpriteGroups.SpriteGrid gridClicked, Sprite spriteClicked ) : void
gridClicked FlatRedBall.ManagedSpriteGroups.SpriteGrid
spriteClicked FlatRedBall.Sprite
Résultat void

DeleteGrid() public méthode

public DeleteGrid ( FlatRedBall.ManagedSpriteGroups.SpriteGrid gridToDelete ) : void
gridToDelete FlatRedBall.ManagedSpriteGroups.SpriteGrid
Résultat void

HasBlueprintChanged() public static méthode

public static HasBlueprintChanged ( ) : bool
Résultat bool

PopulateAndAddGridToEngine() public méthode

public PopulateAndAddGridToEngine ( FlatRedBall.ManagedSpriteGroups.SpriteGrid gridToAdd, Sprite spriteToUseAsPopulationSource ) : void
gridToAdd FlatRedBall.ManagedSpriteGroups.SpriteGrid
spriteToUseAsPopulationSource FlatRedBall.Sprite
Résultat void

SESpriteGridManager() public méthode

public SESpriteGridManager ( ) : System
Résultat System

ShowMessageBoxIfBoundsAreInvalid() public static méthode

public static ShowMessageBoxIfBoundsAreInvalid ( ) : void
Résultat void

ToString() public méthode

public ToString ( ) : string
Résultat string

UpdateGridBorder() public méthode

public UpdateGridBorder ( ) : void
Résultat void

grabGridSprite() public méthode

public grabGridSprite ( ) : void
Résultat void

spriteGridArrayLogic() public méthode

public spriteGridArrayLogic ( ) : void
Résultat void

Property Details

CurrentSpriteGrid public_oe static_oe property

public static SpriteGrid,FlatRedBall.ManagedSpriteGroups CurrentSpriteGrid
Résultat FlatRedBall.ManagedSpriteGroups.SpriteGrid

SpriteGridGrabbed public_oe property

public SpriteGrid,FlatRedBall.ManagedSpriteGroups SpriteGridGrabbed
Résultat FlatRedBall.ManagedSpriteGroups.SpriteGrid

newlySelectedCurrentSprite public_oe property

public Sprite,FlatRedBall newlySelectedCurrentSprite
Résultat FlatRedBall.Sprite

newlySelectedCurrentSpriteGrid public_oe property

public SpriteGrid,FlatRedBall.ManagedSpriteGroups newlySelectedCurrentSpriteGrid
Résultat FlatRedBall.ManagedSpriteGroups.SpriteGrid

oldPosition public_oe static_oe property

public static Vector3,System oldPosition
Résultat System.Vector3