public void draw() { GUI.DrawTexture(bgRect.getRect(), backgroundTexture, ScaleMode.StretchToFill); // begin rotation GUIUtility.RotateAroundPivot(-90, new Vector2(bgRect.x + (errorRect.x - bgRect.x) / 2, bgRect.y + (bgRect.h / 2))); GUI.Label(labelRect.getRect(), "Errors", labelStyle); GUIUtility.RotateAroundPivot(90, new Vector2(bgRect.x + (errorRect.x - bgRect.x) / 2, bgRect.y + (bgRect.h / 2))); // end rotation GUILayout.BeginArea(errorRect.getRect()); scroll_position = GUILayout.BeginScrollView(scroll_position, GUILayout.Width(errorRect.w), GUILayout.Height(errorRect.h)); //GUIStyle style = GUI.skin.box; string pattern = @"^(.+) class (.+) is public, should be declared in a file named (.+)"; string current_error = ide.getCurrentError(); if (!Regex.IsMatch(current_error, pattern)) { //GUILayout.TextArea(current_error, style); GUILayout.Box(/*errorRect.getRect(),*/ current_error, style); } else { //GUILayout.TextArea("------------", style); GUILayout.Box(/*errorRect.getRect(),*/ "------------", style); } GUILayout.EndScrollView(); GUILayout.EndArea(); }
public void draw() { //GUI.BeginGroup(bookRect.getRect()); //spellbook.displayCurrentPage(); //GUI.EndGroup(); spellbook.displayScaledPage(this); spellbook.pageChangeButtons(prevRect.getRect(), nextRect.getRect()); }
public void draw() { GUI.BeginGroup(groupRect.getRect()); ide.checkBackButton(backRect.getRect()); ide.checkRemoveButton(removeRect.getRect()); //ide.checkNewSpellButton(newSpellRect.getRect()); GUI.EndGroup(); }
public Rect getTextRect() { return textRect.getRect(); }
public Rect getBookRect() { return bookRect.getRect(); }
public Rect getEditorRect() { return(backgroundRect.getRect()); }
public Rect getTextAreaRect() { return(textAreaRect.getRect()); }