C# Class UberLoggerEditorWindow, UberLogger

The console logging frontend. Pulls data from the UberLoggerEditor backend
Inheritance: EditorWindow, UberLoggerEditor.ILoggerWindow
Exibir arquivo Open project: bbbscarter/UberLogger

Public Methods

Method Description
DrawLogDetails ( ) : void

The bottom of the panel - details of the selected log

DrawLogList ( float height ) : void

Draws the main log panel

Init ( ) : void
OnGUI ( ) : void
OnLogChange ( LogInfo, logInfo ) : void

Private Methods

Method Description
ButtonClamped ( string text, GUIStyle style, Vector2 &size ) : bool
ClearSelectedMessage ( ) : void
DrawChannels ( ) : void

Draws the channel selector

DrawFilter ( ) : void
DrawToolbar ( ) : void

Draws the thin, Unity-style toolbar showing error counts and toggle buttons

GetChannels ( ) : List
GetFrameSourceGUIContent ( LogStackFrame frame ) : GUIContent
GetIconForLog ( LogInfo, log ) : Texture2D
GetLogLineGUIContent ( UberLogger log, bool showTimes ) : GUIContent

Converts a given log element into a piece of gui content to be displayed

GetSourceForFrame ( LogStackFrame frame ) : string

If the frame has a valid filename, get the source string for the code around the frame This is cached, so we don't keep getting it.

JumpToSource ( LogStackFrame frame ) : void
LabelClamped ( string text, GUIStyle style, Vector2 &size ) : void
OnEnable ( ) : void
ResizeTopPane ( ) : void

Handles the split window stuff, somewhat bodgily

ShouldShowLog ( System regex, LogInfo, log ) : bool

Based on filter and channel selections, should this log be shown?

ShowLogWindow ( ) : void
ToggleClamped ( bool state, GUIContent content, GUIStyle style, Vector2 &size ) : bool
ToggleClamped ( bool state, string text, GUIStyle style, Vector2 &size ) : bool
ToggleShowSource ( LogStackFrame frame ) : void

Method Details

DrawLogDetails() public method

The bottom of the panel - details of the selected log
public DrawLogDetails ( ) : void
return void

DrawLogList() public method

Draws the main log panel
public DrawLogList ( float height ) : void
height float
return void

Init() public static method

public static Init ( ) : void
return void

OnGUI() public method

public OnGUI ( ) : void
return void

OnLogChange() public method

public OnLogChange ( LogInfo, logInfo ) : void
logInfo LogInfo,
return void