{
  "$$ClassName" : "TCastleUserInterface",
  "FullSize" : true,
  "Name" : "Group1",
  "$Children" : [
    {
      "$$ClassName" : "TCastleRectangleControl",
      "FullSize" : true,
      "Name" : "RectangleControl1"
    },
    {
      "$$ClassName" : "TCastleHorizontalGroup",
      "Name" : "ButtonsLeft",
      "Spacing" : 1.0000000000000000E+001,
      "TranslationPersistent" : {
        "$$ClassName" : "TCastleVector2Persistent",
        "X" : 1.0000000000000000E+001,
        "Y" : 1.0000000000000000E+001
      },
      "$Children" : [
        {
          "$$ClassName" : "TCastleButton",
          "Caption" : "HTML",
          "CustomBackgroundDisabled" : {
            "$$ClassName" : "TCastleImagePersistent"
          },
          "CustomBackgroundFocused" : {
            "$$ClassName" : "TCastleImagePersistent"
          },
          "CustomBackgroundNormal" : {
            "$$ClassName" : "TCastleImagePersistent"
          },
          "CustomBackgroundPressed" : {
            "$$ClassName" : "TCastleImagePersistent"
          },
          "Image" : {
            "$$ClassName" : "TCastleImagePersistent"
          },
          "Name" : "ButtonHtml",
          "Pressed" : true,
          "Toggle" : true,
          "VerticalAnchorParent" : "vpMiddle",
          "VerticalAnchorSelf" : "vpMiddle"
        },
        {
          "$$ClassName" : "TCastleButton",
          "Caption" : "Wrap",
          "CustomBackgroundDisabled" : {
            "$$ClassName" : "TCastleImagePersistent"
          },
          "CustomBackgroundFocused" : {
            "$$ClassName" : "TCastleImagePersistent"
          },
          "CustomBackgroundNormal" : {
            "$$ClassName" : "TCastleImagePersistent"
          },
          "CustomBackgroundPressed" : {
            "$$ClassName" : "TCastleImagePersistent"
          },
          "Image" : {
            "$$ClassName" : "TCastleImagePersistent"
          },
          "Name" : "ButtonWrap",
          "Pressed" : true,
          "Toggle" : true,
          "TranslationPersistent" : {
            "$$ClassName" : "TCastleVector2Persistent",
            "X" : 1.1400000762939453E+002
          },
          "VerticalAnchorParent" : "vpMiddle",
          "VerticalAnchorSelf" : "vpMiddle"
        }
      ]
    },
    {
      "$$ClassName" : "TCastleHorizontalGroup",
      "HorizontalAnchorParent" : "hpRight",
      "HorizontalAnchorSelf" : "hpRight",
      "Name" : "ButtonsRight",
      "Spacing" : 1.0000000000000000E+001,
      "TranslationPersistent" : {
        "$$ClassName" : "TCastleVector2Persistent",
        "X" : -1.0000000000000000E+001,
        "Y" : 1.0000000000000000E+001
      },
      "$Children" : [
        {
          "$$ClassName" : "TCastleButton",
          "Caption" : "Left",
          "CustomBackgroundDisabled" : {
            "$$ClassName" : "TCastleImagePersistent"
          },
          "CustomBackgroundFocused" : {
            "$$ClassName" : "TCastleImagePersistent"
          },
          "CustomBackgroundNormal" : {
            "$$ClassName" : "TCastleImagePersistent"
          },
          "CustomBackgroundPressed" : {
            "$$ClassName" : "TCastleImagePersistent"
          },
          "Image" : {
            "$$ClassName" : "TCastleImagePersistent"
          },
          "Name" : "ButtonAlignLeft",
          "Pressed" : true,
          "Toggle" : true,
          "VerticalAnchorParent" : "vpMiddle",
          "VerticalAnchorSelf" : "vpMiddle"
        },
        {
          "$$ClassName" : "TCastleButton",
          "Caption" : "Middle",
          "CustomBackgroundDisabled" : {
            "$$ClassName" : "TCastleImagePersistent"
          },
          "CustomBackgroundFocused" : {
            "$$ClassName" : "TCastleImagePersistent"
          },
          "CustomBackgroundNormal" : {
            "$$ClassName" : "TCastleImagePersistent"
          },
          "CustomBackgroundPressed" : {
            "$$ClassName" : "TCastleImagePersistent"
          },
          "Image" : {
            "$$ClassName" : "TCastleImagePersistent"
          },
          "Name" : "ButtonAlignMiddle",
          "Toggle" : true,
          "TranslationPersistent" : {
            "$$ClassName" : "TCastleVector2Persistent",
            "X" : 8.8000000000000000E+001
          },
          "VerticalAnchorParent" : "vpMiddle",
          "VerticalAnchorSelf" : "vpMiddle"
        },
        {
          "$$ClassName" : "TCastleButton",
          "Caption" : "Right",
          "CustomBackgroundDisabled" : {
            "$$ClassName" : "TCastleImagePersistent"
          },
          "CustomBackgroundFocused" : {
            "$$ClassName" : "TCastleImagePersistent"
          },
          "CustomBackgroundNormal" : {
            "$$ClassName" : "TCastleImagePersistent"
          },
          "CustomBackgroundPressed" : {
            "$$ClassName" : "TCastleImagePersistent"
          },
          "Image" : {
            "$$ClassName" : "TCastleImagePersistent"
          },
          "Name" : "ButtonAlignRight",
          "Toggle" : true,
          "TranslationPersistent" : {
            "$$ClassName" : "TCastleVector2Persistent",
            "X" : 2.1600000000000000E+002
          },
          "VerticalAnchorParent" : "vpMiddle",
          "VerticalAnchorSelf" : "vpMiddle"
        }
      ]
    },
    {
      "$$ClassName" : "TCastleScrollView",
      "Border" : {
        "$$ClassName" : "TBorder",
        "AllSides" : 1.0000000000000000E+001,
        "Bottom" : 6.0000000000000000E+001
      },
      "BorderColorPersistent" : {
        "$$ClassName" : "TCastleColorPersistent",
        "Blue" : 1.0000000000000000E+000,
        "Green" : 1.0000000000000000E+000,
        "Red" : 1.0000000000000000E+000
      },
      "EnableDragging" : true,
      "FullSize" : true,
      "Name" : "ScrollView",
      "ScrollArea" : {
        "$$ClassName" : "TCastleScrollArea",
        "Height" : 5.0000000000000000E+002,
        "Width" : 5.0000000000000000E+002,
        "$Children" : [
          {
            "$$ClassName" : "TCastleLabel",
            "Html" : true,
            "Name" : "LabelMain",
            "Text" : [
              "Using the <b>TCastleLabel.Html = true</b> allows to render text with HTML markup. We support a small subset of elements from HTML. We don't try to implement a full HTML renderer here!, only to implement some useful elements that are comfortable to use inline in a text. This way you can express more interesting text within a single string, within a single TCastleLabel instance.",
              "",
              "This text <b>is bold</b>. This one is even <b>bold and <i>italic at the same time!</i> (again only bold)</b> (again normal). You can go crazy with colors: <font color=\"#0000ff\">blue <font color=\"#00FF00\">green</font> back to blue <b>now blue and bold! <i>and italic too!</i> back to just bold</b> back to just blue</font>.",
              "",
              "Font sizes also work. Text <small>smaller <small>even smaller <small>even more smaller</small> back</small> back</small> back. This is done by &lt;small&gt; element. You can also use &lt;font size=\"+/-number\"&gt; or &lt;font size=\"1..7\"&gt;: small: <font size=\"-1\">one small <font size=\"-2\">two small <font size=\"-3\">three small</font> back</font> back</font>, large: <font size=\"+1\">one large <font size=\"+2\">two large <font size=\"+3\">three large <font size=\"+4\">four large</font></font> back</font> back</font>.",
              "",
              "You can also use percentages to specify font size relative to base size (this is not possible in HTML). Nesting these tags does not make their percentages relative. <font size=\"50%\">Two times smaller than normal <font size=\"200%\">Two times larger.</font></font>",
              "",
              "Note that embedded &lt;small&gt; element makes the text smaller and smaller, but embedded &lt;font size=\"-1\"&gt; does not. This is consistent with HTML (&lt;font size=\"-1\"&gt; is not relative to parent).",
              "",
              "You can use entities &amp;amp;, &amp;lt;, &amp;gt; &amp;apos; &amp;quot; as expected, to escape special HTML/XML sequences: &amp;, &lt;, &gt; &apos; &quot;.",
              "",
              "HTML comments also work (are omitted, zero size): <!-- comment --> <font color=\"#666666\">&lt;!-- this is how to write a comment --&gt;</font>.",
              "",
              "Whitespace: we treat whitespace <b>unlike</b> HTML. This means that a newline in text <b>does</b> result in a newline in output. And more spaces in input <b>do</b> make more space (like this:    ) in output. Here's a newline:",
              "This is unlike HTML, but is consistent and very comfortable in our case - you often don't need the HTML markup, but you still need to indicate newlines and more spaces. Another newline:",
              "So a <i>newline/space in input is a visible newline/space in output</i>, regardless if you use HTML markup or not.",
              "",
              "You can also use HTML paragraph &lt;p&gt; and &lt;br&gt; and &lt;br/&gt; elements.<br>Newline.<br/>Another newline.<p>Paragraph &lt;p&gt; is simply just 2 newlines, so it makes a line-size break. <p>Line wrapping always works Ok, <font color=\"#00FF00\">even if you go crazy with colors and <b><i>bold/italic</i></b></font>. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."
            ],
            "VerticalAnchorParent" : "vpTop",
            "VerticalAnchorSelf" : "vpTop"
          }
        ]
      }
    }
  ]
}