C# 클래스 TerrainPainter.tp_Editor

파일 보기 프로젝트 열기: Stumpstump/RoverGame

공개 메소드들

메소드 설명
ButtonDoAllStyle ( ) : GUIStyle
DrawAlphaSelector ( TerrainPainter.TerrainPainter tp, Color color ) : void
DrawNoiseEditor ( TerrainPainter.TerrainPainter tp, int resolution ) : void
DrawNone ( ) : void

No tool selected

DrawSwitch ( bool value, string left_false, string right_true ) : bool

Draw brush settings

DrawTitleLabel ( string msg ) : void
DrawTooltip ( int startIndex, string title ) : void
DrawTooltip ( string title ) : void
ToolbarOptions ( int items ) : UnityEngine.GUILayoutOption[]

보호된 메소드들

메소드 설명
DrawBrushSettings ( bool drawStrength = false ) : void
DrawSlopeEditor ( TerrainPainter.TerrainPainter tp, System.Action additional ) : void
GetAlpha ( Point pos, Point target, Texture2D tex ) : float
GetAlphaRaw ( Vector2 pos, Vector2 target, Texture2D tex ) : float
GetBaseData ( Point current, float otherResolution, float &height, float &angle ) : void
GetNoiseValue ( Point current, float otherResolution ) : float

비공개 메소드들

메소드 설명
CurrentRect ( ) : Rect

Get current rect

CurrentRect ( float height ) : Rect

Get current rect

CurrentRect ( float width, float height ) : Rect

Get current rect

DrawHelpBox ( string title, string msg ) : void

Draw help box

FlexibleSpace ( int amount = 1 ) : void

Add EditorGUILayout FlexibleSpace

IconContent ( string file, string tooltip = default(string) ) : GUIContent

See EditorGUIUtilitiy.IconContent But this is for this DLL

LoadIcon ( string file ) : Texture2D

Load icon

OnInspectorGUI ( TerrainPainter.TerrainPainter c ) : void
OnSceneGUI ( TerrainPainter.TerrainPainter c ) : void
Seperator ( int amount = 1 ) : void

Adds EditorGUILayout seperators

메소드 상세

ButtonDoAllStyle() 공개 정적인 메소드

public static ButtonDoAllStyle ( ) : GUIStyle
리턴 UnityEngine.GUIStyle

DrawAlphaSelector() 공개 메소드

public DrawAlphaSelector ( TerrainPainter.TerrainPainter tp, Color color ) : void
tp TerrainPainter.TerrainPainter
color Color
리턴 void

DrawBrushSettings() 보호된 메소드

protected DrawBrushSettings ( bool drawStrength = false ) : void
drawStrength bool
리턴 void

DrawNoiseEditor() 공개 정적인 메소드

public static DrawNoiseEditor ( TerrainPainter.TerrainPainter tp, int resolution ) : void
tp TerrainPainter.TerrainPainter
resolution int
리턴 void

DrawNone() 공개 정적인 메소드

No tool selected
public static DrawNone ( ) : void
리턴 void

DrawSlopeEditor() 보호된 메소드

protected DrawSlopeEditor ( TerrainPainter.TerrainPainter tp, System.Action additional ) : void
tp TerrainPainter.TerrainPainter
additional System.Action
리턴 void

DrawSwitch() 공개 정적인 메소드

Draw brush settings
public static DrawSwitch ( bool value, string left_false, string right_true ) : bool
value bool
left_false string
right_true string
리턴 bool

DrawTitleLabel() 공개 정적인 메소드

public static DrawTitleLabel ( string msg ) : void
msg string
리턴 void

DrawTooltip() 공개 메소드

public DrawTooltip ( int startIndex, string title ) : void
startIndex int
title string
리턴 void

DrawTooltip() 공개 메소드

public DrawTooltip ( string title ) : void
title string
리턴 void

GetAlpha() 보호된 메소드

protected GetAlpha ( Point pos, Point target, Texture2D tex ) : float
pos Point
target Point
tex UnityEngine.Texture2D
리턴 float

GetAlphaRaw() 보호된 메소드

protected GetAlphaRaw ( Vector2 pos, Vector2 target, Texture2D tex ) : float
pos Vector2
target Vector2
tex UnityEngine.Texture2D
리턴 float

GetBaseData() 보호된 메소드

protected GetBaseData ( Point current, float otherResolution, float &height, float &angle ) : void
current Point
otherResolution float
height float
angle float
리턴 void

GetNoiseValue() 보호된 메소드

protected GetNoiseValue ( Point current, float otherResolution ) : float
current Point
otherResolution float
리턴 float

ToolbarOptions() 공개 정적인 메소드

public static ToolbarOptions ( int items ) : UnityEngine.GUILayoutOption[]
items int
리턴 UnityEngine.GUILayoutOption[]