getRect() public method

public getRect ( ) : Rect
return Rect
示例#1
0
    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();
    }
示例#2
0
 public void draw()
 {
     //GUI.BeginGroup(bookRect.getRect());
     //spellbook.displayCurrentPage();
     //GUI.EndGroup();
     spellbook.displayScaledPage(this);
     spellbook.pageChangeButtons(prevRect.getRect(), nextRect.getRect());
 }
示例#3
0
 public void draw()
 {
     GUI.BeginGroup(groupRect.getRect());
     ide.checkBackButton(backRect.getRect());
     ide.checkRemoveButton(removeRect.getRect());
     //ide.checkNewSpellButton(newSpellRect.getRect());
     GUI.EndGroup();
 }
示例#4
0
 public Rect getTextRect()
 {
     return textRect.getRect();
 }
示例#5
0
 public Rect getBookRect()
 {
     return bookRect.getRect();
 }
示例#6
0
 public Rect getEditorRect()
 {
     return(backgroundRect.getRect());
 }
示例#7
0
 public Rect getTextAreaRect()
 {
     return(textAreaRect.getRect());
 }