Files
archived-elemental-forms/testbed/resources/test_textwindow.tb.txt
2015-07-05 23:28:04 -07:00

37 lines
2.0 KiB
Plaintext

WindowInfo
title Text editing
position 280 50
size 450 630
LayoutBox: axis: y, distribution: available
LayoutBox: distribution: gravity
Button: id: undo
IconBox: skin: arrow.left
Button: id: redo
IconBox: skin: arrow.right
Button: text: Clear, id: clear
tooltip Click for <color #f44>remove</color> all text
LayoutBox
gravity left right
distribution-position right bottom
Label: id: info
Button: id: menu
IconBox: skin: arrow.down
Label: text: Menu
skin Button.flat
TextBox: multiline: 1, styling: 1, gravity: all, id: text_box, autofocus: 1
text: "Elemental Forms\n\n" \
"<color #0794f8>Test zone</color>\n" \
"The menu to the left spawns some examples of features in elemental.\n\n" \
"The code in Demo/* is more like a developers test zone than organized tutorial-like samples. " \
"This would be good to fix of course (help is welcome! ;)\n\n" \
"<color #0794f8>Some things to try out</color>\n" \
" • All layouts provide panning of content automatically when squashed below the minimal size, so try resizing windows and pan.\n" \
" • Lines starting with a bullet sequence (like this one) should wrap in a smart way.\n" \
" • Message windows whose target is removed, are automatically removed. Close the menu window with open messages.\n" \
" • Keyboard navigation using tab.\n" \
" • <u>Underline</u>, <color #f44>Red</color>, <color #6f6>Green</color>, <color #aaf>Blue</color>\n\n" \
"<color #0794f8>Good to know</color>\n" \
" • The text element handles styling and embedded content (Example: <element IconBox: skin: 'Icon16'> <element Button: text: 'Nice!'>), but does not handle editing of those fully. Those features are only ment for read-only text elements for now.\n" \
" • You can emulate touch input by holding down shift, ctrl or alt. Touch input behaves differently in some elements (f.ex long click to open context menu in textfields), and only invoke movement when down.\n" \
" • All resources are UTF-8.\n"