C# 클래스 TowerAnimator.ColorPalette

파일 보기 프로젝트 열기: uiacm/tower_creator

공개 메소드들

메소드 설명
ColorPalette ( int squarePixelWidth, int numColumns ) : System
GetColor ( ) : Color

Gets the color of the currently hovered cell.

GetColor ( int row, int col ) : Color
GetImage ( ) : Image
SetColor ( Color c ) : void

Sets the color of the currently hovered cell.

SetColor ( int row, int col, Color c ) : void
SetHover ( int x, int y ) : void

This function assumes the canvas has not been scaled on screen, or that (x, y) has been appropriately scaled.

UnHover ( ) : void

비공개 메소드들

메소드 설명
GenerateCanvas ( ) : void
GenerateSwatches ( ) : void

메소드 상세

ColorPalette() 공개 메소드

public ColorPalette ( int squarePixelWidth, int numColumns ) : System
squarePixelWidth int
numColumns int
리턴 System

GetColor() 공개 메소드

Gets the color of the currently hovered cell.
public GetColor ( ) : Color
리턴 Color

GetColor() 공개 메소드

public GetColor ( int row, int col ) : Color
row int
col int
리턴 Color

GetImage() 공개 메소드

public GetImage ( ) : Image
리턴 Image

SetColor() 공개 메소드

Sets the color of the currently hovered cell.
public SetColor ( Color c ) : void
c Color
리턴 void

SetColor() 공개 메소드

public SetColor ( int row, int col, Color c ) : void
row int
col int
c Color
리턴 void

SetHover() 공개 메소드

This function assumes the canvas has not been scaled on screen, or that (x, y) has been appropriately scaled.
public SetHover ( int x, int y ) : void
x int Mouse location x.
y int Mouse location y.
리턴 void

UnHover() 공개 메소드

public UnHover ( ) : void
리턴 void