C# Class TerrainPainter.tp_Editor

Afficher le fichier Open project: Stumpstump/RoverGame

Méthodes publiques

Méthode Description
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[]

Méthodes protégées

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

Private Methods

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

Method Details

ButtonDoAllStyle() public static méthode

public static ButtonDoAllStyle ( ) : GUIStyle
Résultat UnityEngine.GUIStyle

DrawAlphaSelector() public méthode

public DrawAlphaSelector ( TerrainPainter.TerrainPainter tp, Color color ) : void
tp TerrainPainter.TerrainPainter
color Color
Résultat void

DrawBrushSettings() protected méthode

protected DrawBrushSettings ( bool drawStrength = false ) : void
drawStrength bool
Résultat void

DrawNoiseEditor() public static méthode

public static DrawNoiseEditor ( TerrainPainter.TerrainPainter tp, int resolution ) : void
tp TerrainPainter.TerrainPainter
resolution int
Résultat void

DrawNone() public static méthode

No tool selected
public static DrawNone ( ) : void
Résultat void

DrawSlopeEditor() protected méthode

protected DrawSlopeEditor ( TerrainPainter.TerrainPainter tp, System.Action additional ) : void
tp TerrainPainter.TerrainPainter
additional System.Action
Résultat void

DrawSwitch() public static méthode

Draw brush settings
public static DrawSwitch ( bool value, string left_false, string right_true ) : bool
value bool
left_false string
right_true string
Résultat bool

DrawTitleLabel() public static méthode

public static DrawTitleLabel ( string msg ) : void
msg string
Résultat void

DrawTooltip() public méthode

public DrawTooltip ( int startIndex, string title ) : void
startIndex int
title string
Résultat void

DrawTooltip() public méthode

public DrawTooltip ( string title ) : void
title string
Résultat void

GetAlpha() protected méthode

protected GetAlpha ( Point pos, Point target, Texture2D tex ) : float
pos Point
target Point
tex UnityEngine.Texture2D
Résultat float

GetAlphaRaw() protected méthode

protected GetAlphaRaw ( Vector2 pos, Vector2 target, Texture2D tex ) : float
pos Vector2
target Vector2
tex UnityEngine.Texture2D
Résultat float

GetBaseData() protected méthode

protected GetBaseData ( Point current, float otherResolution, float &height, float &angle ) : void
current Point
otherResolution float
height float
angle float
Résultat void

GetNoiseValue() protected méthode

protected GetNoiseValue ( Point current, float otherResolution ) : float
current Point
otherResolution float
Résultat float

ToolbarOptions() public static méthode

public static ToolbarOptions ( int items ) : UnityEngine.GUILayoutOption[]
items int
Résultat UnityEngine.GUILayoutOption[]