C# 클래스 Sphere_Editor.EditorComponents.MapEditorControl

상속: System.Windows.Forms.UserControl
파일 보기 프로젝트 열기: Radnen/spherestudio

공개 프로퍼티들

프로퍼티 타입 설명
Autoset AutosetEditor
Entities List
EntityStatusLabel System.Windows.Forms.ToolStripStatusLabel
Layers List
TileStatusLabel System.Windows.Forms.ToolStripStatusLabel
Tileset TilesetControl
zone_brush System.Drawing.Brush
zone_pen System.Drawing.Pen

공개 메소드들

메소드 설명
AddLayer ( string name ) : Layer

Adds a blank layer to the map

AddLayer ( BinaryReader stream ) : void

Adds a Layer from a stream object. In this case a Binary Reader.

DoAllLayerAdjustment ( int startIndex, short count ) : void

Handles adjustment of tile insertion and deletion.

LoadMap ( string filename ) : void
MapEditorControl ( ) : System
RedoAction ( ) : void

Restores the next stored layer and ests the current undo position.

RemoveLayer ( short index ) : void

Removes a layer from the map.

ResizeAllLayers ( short width, short height ) : void
SaveMap ( string filename ) : bool
SetLayerTile ( int x, int y ) : void
SetSize ( int width, int height ) : void

Sets the size of the drawing portion of the map:

SetStampMap ( short indicies, int map_w, int map_h ) : void
SetTileSize ( short width, short height ) : void
SetTileSize ( short width, short height, bool rescale ) : void
SetZoomLevel ( int num ) : void

Set's the zoom of the map.

UndoAction ( ) : void

Draws the previously stored layer set and sets the current undo position.

UpdateAllLayers ( ) : void

Forces all layers to "redraw" and draws them to screen.

UpdateControl ( ) : void

Positions the object in the middle of its container. Also toggles scrollbars where apropriate.

UpdateScrollbars ( ) : void

보호된 메소드들

메소드 설명
OnScroll ( ScrollEventArgs se ) : void
ScrollToControl ( Control activeControl ) : Point

비공개 메소드들

메소드 설명
CheckFloodPoint ( Stack points, int x, int y, int old_index ) : void
CloneAllLayers ( ) : List

Returns a shallow clone of the layers.

CopyEntityItem_Click ( object sender, EventArgs e ) : void
DeleteEntityItem_Click ( object sender, EventArgs e ) : void
DoAutoStamp ( int cx, int cy ) : void
DoTool ( ) : void
DrawEntities ( Graphics g ) : void
DrawTileLine ( int x0, int y0, int x1, int y1 ) : void
DrawTileSelector ( Graphics g, Pen pen, int mid_x, int mid_y ) : void
DrawTool ( Graphics g ) : void
EditEntityItem_Click ( object sender, EventArgs e ) : void
FloodTiles ( int x, int y ) : void

Implemented using a virtual stack, rather than by recursion.

GetEntityAt ( int x, int y ) : System.Entity
InvalidateSelectorArea ( ) : void
LayerSubItemClick ( object sender, EventArgs e ) : void
MapContextStrip_Opened ( object sender, EventArgs e ) : void
MapEditorControl_Enter ( object sender, EventArgs e ) : void
MapEditorControl_KeyDown ( object sender, KeyEventArgs e ) : void
MapEditorControl_KeyUp ( object sender, KeyEventArgs e ) : void
MapEditorControl_Leave ( object sender, EventArgs e ) : void
MapEditorControl_MouseDown ( object sender, MouseEventArgs e ) : void
MapEditorControl_MouseLeave ( object sender, EventArgs e ) : void
MapEditorControl_MouseMove ( object sender, MouseEventArgs e ) : void
MapEditorControl_MouseUp ( object sender, MouseEventArgs e ) : void
MapEditorControl_Paint ( object sender, PaintEventArgs e ) : void
PasteEntityItem_Click ( object sender, EventArgs e ) : void
PersonItem_Click ( object sender, EventArgs e ) : void
ResetHistory ( ) : void

Cheap reset of the undo chain. Sorry, I'm lazy to not make something More beneficial. Something that restores destroyed layers.

SelectTileItem_Click ( object sender, EventArgs e ) : void
StampMap ( ) : void
StartLocationItem_Click ( object sender, EventArgs e ) : void
TriggerItem_Click ( object sender, EventArgs e ) : void
UpdateControlSize ( ) : void
UpdateCurrentLayer ( ) : void

"Redraws" the current layer image, but does not draw it to screen.

myzone_Deleted ( object sender, EventArgs e ) : void

메소드 상세

AddLayer() 공개 메소드

Adds a blank layer to the map
public AddLayer ( string name ) : Layer
name string The name of the layer
리턴 Layer

AddLayer() 공개 메소드

Adds a Layer from a stream object. In this case a Binary Reader.
public AddLayer ( BinaryReader stream ) : void
stream System.IO.BinaryReader The stream in which to extrapolate the layer data from
리턴 void

DoAllLayerAdjustment() 공개 메소드

Handles adjustment of tile insertion and deletion.
public DoAllLayerAdjustment ( int startIndex, short count ) : void
startIndex int The index to begin modifying.
count short The amount to modify by, either + or -.
리턴 void

LoadMap() 공개 메소드

public LoadMap ( string filename ) : void
filename string
리턴 void

MapEditorControl() 공개 메소드

public MapEditorControl ( ) : System
리턴 System

OnScroll() 보호된 메소드

protected OnScroll ( ScrollEventArgs se ) : void
se System.Windows.Forms.ScrollEventArgs
리턴 void

RedoAction() 공개 메소드

Restores the next stored layer and ests the current undo position.
public RedoAction ( ) : void
리턴 void

RemoveLayer() 공개 메소드

Removes a layer from the map.
public RemoveLayer ( short index ) : void
index short Index number of layer to remove.
리턴 void

ResizeAllLayers() 공개 메소드

public ResizeAllLayers ( short width, short height ) : void
width short
height short
리턴 void

SaveMap() 공개 메소드

public SaveMap ( string filename ) : bool
filename string
리턴 bool

ScrollToControl() 보호된 메소드

protected ScrollToControl ( Control activeControl ) : Point
activeControl System.Windows.Forms.Control
리턴 Point

SetLayerTile() 공개 메소드

public SetLayerTile ( int x, int y ) : void
x int
y int
리턴 void

SetSize() 공개 메소드

Sets the size of the drawing portion of the map:
public SetSize ( int width, int height ) : void
width int width in tiles
height int height in tiles
리턴 void

SetStampMap() 공개 메소드

public SetStampMap ( short indicies, int map_w, int map_h ) : void
indicies short
map_w int
map_h int
리턴 void

SetTileSize() 공개 메소드

public SetTileSize ( short width, short height ) : void
width short
height short
리턴 void

SetTileSize() 공개 메소드

public SetTileSize ( short width, short height, bool rescale ) : void
width short
height short
rescale bool
리턴 void

SetZoomLevel() 공개 메소드

Set's the zoom of the map.
public SetZoomLevel ( int num ) : void
num int The level of zoom.
리턴 void

UndoAction() 공개 메소드

Draws the previously stored layer set and sets the current undo position.
public UndoAction ( ) : void
리턴 void

UpdateAllLayers() 공개 메소드

Forces all layers to "redraw" and draws them to screen.
public UpdateAllLayers ( ) : void
리턴 void

UpdateControl() 공개 메소드

Positions the object in the middle of its container. Also toggles scrollbars where apropriate.
public UpdateControl ( ) : void
리턴 void

UpdateScrollbars() 공개 메소드

public UpdateScrollbars ( ) : void
리턴 void

프로퍼티 상세

Autoset 공개적으로 프로퍼티

public AutosetEditor Autoset
리턴 AutosetEditor

Entities 공개적으로 프로퍼티

public List Entities
리턴 List

EntityStatusLabel 공개적으로 프로퍼티

public ToolStripStatusLabel,System.Windows.Forms EntityStatusLabel
리턴 System.Windows.Forms.ToolStripStatusLabel

Layers 공개적으로 프로퍼티

public List Layers
리턴 List

TileStatusLabel 공개적으로 프로퍼티

public ToolStripStatusLabel,System.Windows.Forms TileStatusLabel
리턴 System.Windows.Forms.ToolStripStatusLabel

Tileset 공개적으로 프로퍼티

public TilesetControl,Sphere_Editor.EditorComponents Tileset
리턴 TilesetControl

zone_brush 공개적으로 정적으로 프로퍼티

public static Brush,System.Drawing zone_brush
리턴 System.Drawing.Brush

zone_pen 공개적으로 정적으로 프로퍼티

public static Pen,System.Drawing zone_pen
리턴 System.Drawing.Pen