| 1 |
{ |
| 2 |
"$$ClassName" : "TCastleUserInterface", |
| 3 |
"FullSize" : true, |
| 4 |
"Name" : "Group1", |
| 5 |
"$Children" : [ |
| 6 |
{ |
| 7 |
"$$ClassName" : "TCastleRectangleControl", |
| 8 |
"FullSize" : true, |
| 9 |
"Name" : "RectangleControl1" |
| 10 |
}, |
| 11 |
{ |
| 12 |
"$$ClassName" : "TCastleHorizontalGroup", |
| 13 |
"Name" : "ButtonsLeft", |
| 14 |
"Spacing" : 1.0000000000000000E+001, |
| 15 |
"TranslationPersistent" : { |
| 16 |
"$$ClassName" : "TCastleVector2Persistent", |
| 17 |
"X" : 1.0000000000000000E+001, |
| 18 |
"Y" : 1.0000000000000000E+001 |
| 19 |
}, |
| 20 |
"$Children" : [ |
| 21 |
{ |
| 22 |
"$$ClassName" : "TCastleButton", |
| 23 |
"Caption" : "HTML", |
| 24 |
"CustomBackgroundDisabled" : { |
| 25 |
"$$ClassName" : "TCastleImagePersistent" |
| 26 |
}, |
| 27 |
"CustomBackgroundFocused" : { |
| 28 |
"$$ClassName" : "TCastleImagePersistent" |
| 29 |
}, |
| 30 |
"CustomBackgroundNormal" : { |
| 31 |
"$$ClassName" : "TCastleImagePersistent" |
| 32 |
}, |
| 33 |
"CustomBackgroundPressed" : { |
| 34 |
"$$ClassName" : "TCastleImagePersistent" |
| 35 |
}, |
| 36 |
"Image" : { |
| 37 |
"$$ClassName" : "TCastleImagePersistent" |
| 38 |
}, |
| 39 |
"Name" : "ButtonHtml", |
| 40 |
"Pressed" : true, |
| 41 |
"Toggle" : true, |
| 42 |
"VerticalAnchorParent" : "vpMiddle", |
| 43 |
"VerticalAnchorSelf" : "vpMiddle" |
| 44 |
}, |
| 45 |
{ |
| 46 |
"$$ClassName" : "TCastleButton", |
| 47 |
"Caption" : "Wrap", |
| 48 |
"CustomBackgroundDisabled" : { |
| 49 |
"$$ClassName" : "TCastleImagePersistent" |
| 50 |
}, |
| 51 |
"CustomBackgroundFocused" : { |
| 52 |
"$$ClassName" : "TCastleImagePersistent" |
| 53 |
}, |
| 54 |
"CustomBackgroundNormal" : { |
| 55 |
"$$ClassName" : "TCastleImagePersistent" |
| 56 |
}, |
| 57 |
"CustomBackgroundPressed" : { |
| 58 |
"$$ClassName" : "TCastleImagePersistent" |
| 59 |
}, |
| 60 |
"Image" : { |
| 61 |
"$$ClassName" : "TCastleImagePersistent" |
| 62 |
}, |
| 63 |
"Name" : "ButtonWrap", |
| 64 |
"Pressed" : true, |
| 65 |
"Toggle" : true, |
| 66 |
"TranslationPersistent" : { |
| 67 |
"$$ClassName" : "TCastleVector2Persistent", |
| 68 |
"X" : 1.1400000762939453E+002 |
| 69 |
}, |
| 70 |
"VerticalAnchorParent" : "vpMiddle", |
| 71 |
"VerticalAnchorSelf" : "vpMiddle" |
| 72 |
} |
| 73 |
] |
| 74 |
}, |
| 75 |
{ |
| 76 |
"$$ClassName" : "TCastleHorizontalGroup", |
| 77 |
"HorizontalAnchorParent" : "hpRight", |
| 78 |
"HorizontalAnchorSelf" : "hpRight", |
| 79 |
"Name" : "ButtonsRight", |
| 80 |
"Spacing" : 1.0000000000000000E+001, |
| 81 |
"TranslationPersistent" : { |
| 82 |
"$$ClassName" : "TCastleVector2Persistent", |
| 83 |
"X" : -1.0000000000000000E+001, |
| 84 |
"Y" : 1.0000000000000000E+001 |
| 85 |
}, |
| 86 |
"$Children" : [ |
| 87 |
{ |
| 88 |
"$$ClassName" : "TCastleButton", |
| 89 |
"Caption" : "Left", |
| 90 |
"CustomBackgroundDisabled" : { |
| 91 |
"$$ClassName" : "TCastleImagePersistent" |
| 92 |
}, |
| 93 |
"CustomBackgroundFocused" : { |
| 94 |
"$$ClassName" : "TCastleImagePersistent" |
| 95 |
}, |
| 96 |
"CustomBackgroundNormal" : { |
| 97 |
"$$ClassName" : "TCastleImagePersistent" |
| 98 |
}, |
| 99 |
"CustomBackgroundPressed" : { |
| 100 |
"$$ClassName" : "TCastleImagePersistent" |
| 101 |
}, |
| 102 |
"Image" : { |
| 103 |
"$$ClassName" : "TCastleImagePersistent" |
| 104 |
}, |
| 105 |
"Name" : "ButtonAlignLeft", |
| 106 |
"Pressed" : true, |
| 107 |
"Toggle" : true, |
| 108 |
"VerticalAnchorParent" : "vpMiddle", |
| 109 |
"VerticalAnchorSelf" : "vpMiddle" |
| 110 |
}, |
| 111 |
{ |
| 112 |
"$$ClassName" : "TCastleButton", |
| 113 |
"Caption" : "Middle", |
| 114 |
"CustomBackgroundDisabled" : { |
| 115 |
"$$ClassName" : "TCastleImagePersistent" |
| 116 |
}, |
| 117 |
"CustomBackgroundFocused" : { |
| 118 |
"$$ClassName" : "TCastleImagePersistent" |
| 119 |
}, |
| 120 |
"CustomBackgroundNormal" : { |
| 121 |
"$$ClassName" : "TCastleImagePersistent" |
| 122 |
}, |
| 123 |
"CustomBackgroundPressed" : { |
| 124 |
"$$ClassName" : "TCastleImagePersistent" |
| 125 |
}, |
| 126 |
"Image" : { |
| 127 |
"$$ClassName" : "TCastleImagePersistent" |
| 128 |
}, |
| 129 |
"Name" : "ButtonAlignMiddle", |
| 130 |
"Toggle" : true, |
| 131 |
"TranslationPersistent" : { |
| 132 |
"$$ClassName" : "TCastleVector2Persistent", |
| 133 |
"X" : 8.8000000000000000E+001 |
| 134 |
}, |
| 135 |
"VerticalAnchorParent" : "vpMiddle", |
| 136 |
"VerticalAnchorSelf" : "vpMiddle" |
| 137 |
}, |
| 138 |
{ |
| 139 |
"$$ClassName" : "TCastleButton", |
| 140 |
"Caption" : "Right", |
| 141 |
"CustomBackgroundDisabled" : { |
| 142 |
"$$ClassName" : "TCastleImagePersistent" |
| 143 |
}, |
| 144 |
"CustomBackgroundFocused" : { |
| 145 |
"$$ClassName" : "TCastleImagePersistent" |
| 146 |
}, |
| 147 |
"CustomBackgroundNormal" : { |
| 148 |
"$$ClassName" : "TCastleImagePersistent" |
| 149 |
}, |
| 150 |
"CustomBackgroundPressed" : { |
| 151 |
"$$ClassName" : "TCastleImagePersistent" |
| 152 |
}, |
| 153 |
"Image" : { |
| 154 |
"$$ClassName" : "TCastleImagePersistent" |
| 155 |
}, |
| 156 |
"Name" : "ButtonAlignRight", |
| 157 |
"Toggle" : true, |
| 158 |
"TranslationPersistent" : { |
| 159 |
"$$ClassName" : "TCastleVector2Persistent", |
| 160 |
"X" : 2.1600000000000000E+002 |
| 161 |
}, |
| 162 |
"VerticalAnchorParent" : "vpMiddle", |
| 163 |
"VerticalAnchorSelf" : "vpMiddle" |
| 164 |
} |
| 165 |
] |
| 166 |
}, |
| 167 |
{ |
| 168 |
"$$ClassName" : "TCastleScrollView", |
| 169 |
"Border" : { |
| 170 |
"$$ClassName" : "TBorder", |
| 171 |
"AllSides" : 1.0000000000000000E+001, |
| 172 |
"Bottom" : 6.0000000000000000E+001 |
| 173 |
}, |
| 174 |
"BorderColorPersistent" : { |
| 175 |
"$$ClassName" : "TCastleColorPersistent", |
| 176 |
"Blue" : 1.0000000000000000E+000, |
| 177 |
"Green" : 1.0000000000000000E+000, |
| 178 |
"Red" : 1.0000000000000000E+000 |
| 179 |
}, |
| 180 |
"EnableDragging" : true, |
| 181 |
"FullSize" : true, |
| 182 |
"Name" : "ScrollView", |
| 183 |
"ScrollArea" : { |
| 184 |
"$$ClassName" : "TCastleScrollArea", |
| 185 |
"Height" : 5.0000000000000000E+002, |
| 186 |
"Width" : 5.0000000000000000E+002, |
| 187 |
"$Children" : [ |
| 188 |
{ |
| 189 |
"$$ClassName" : "TCastleLabel", |
| 190 |
"Html" : true, |
| 191 |
"Name" : "LabelMain", |
| 192 |
"Text" : [ |
| 193 |
"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.", |
| 194 |
"", |
| 195 |
"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>.", |
| 196 |
"", |
| 197 |
"Font sizes also work. Text <small>smaller <small>even smaller <small>even more smaller</small> back</small> back</small> back. This is done by <small> element. You can also use <font size=\"+/-number\"> or <font size=\"1..7\">: 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>.", |
| 198 |
"", |
| 199 |
"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>", |
| 200 |
"", |
| 201 |
"Note that embedded <small> element makes the text smaller and smaller, but embedded <font size=\"-1\"> does not. This is consistent with HTML (<font size=\"-1\"> is not relative to parent).", |
| 202 |
"", |
| 203 |
"You can use entities &amp;, &lt;, &gt; &apos; &quot; as expected, to escape special HTML/XML sequences: &, <, > ' ".", |
| 204 |
"", |
| 205 |
"HTML comments also work (are omitted, zero size): <!-- comment --> <font color=\"#666666\"><!-- this is how to write a comment --></font>.", |
| 206 |
"", |
| 207 |
"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:", |
| 208 |
"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:", |
| 209 |
"So a <i>newline/space in input is a visible newline/space in output</i>, regardless if you use HTML markup or not.", |
| 210 |
"", |
| 211 |
"You can also use HTML paragraph <p> and <br> and <br/> elements.<br>Newline.<br/>Another newline.<p>Paragraph <p> 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." |
| 212 |
], |
| 213 |
"VerticalAnchorParent" : "vpTop", |
| 214 |
"VerticalAnchorSelf" : "vpTop" |
| 215 |
} |
| 216 |
] |
| 217 |
} |
| 218 |
} |
| 219 |
] |
| 220 |
} |