ControlWindow.drawChangeWindowSize C# (CSharp) Method

drawChangeWindowSize() private method

private drawChangeWindowSize ( ) : void
return void
    private void drawChangeWindowSize()
    {
        GUILayout.BeginHorizontal();
        GUILayout.Label("Width");
        textWidth = GUILayout.TextField(textWidth);
        GUILayout.Label("Height");
        textHeight = GUILayout.TextField(textHeight);
        if (GUILayout.Button("Resize"))
        {
            meshRender.DestroyAwesomiumWindow();
            try
            {
                int aweWidth = int.Parse(textWidth);
                int aweHeight = int.Parse(textHeight);
                meshRender.InitAwesomium(aweWidth, aweHeight);
                meshRender.getEventHandler().setDimensions(aweWidth, aweHeight);
            }
            catch (System.Exception)
            {
                Debug.Log("Error parsing width and height");
            }

        }
        GUILayout.EndHorizontal();
    }