| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148 |
- form textTest
- {
- theme = res/common/default.theme
- style = basic
- autoHeight = true
- width = 240
- layout = LAYOUT_VERTICAL
- scroll = SCROLL_VERTICAL
- consumeInputEvents = true
- label topLabel
- {
- style = title
- autoWidth = true
- height = 40
- textAlignment = ALIGN_BOTTOM_LEFT
- consumeInputEvents = false
- text = Text
- }
- // Change font
- // Wouldn't this be a great place to use a drop-down? ;)
- button fontButton
- {
- style = buttonStyle
- autoWidth = true
- height = 50
- consumeInputEvents = false
- text = Font (arial18)
- }
- button wrapButton : fontButton
- {
- text = Word Wrap (On)
- }
- button clipRectButton : fontButton
- {
- text = Clipping (On)
- }
- button reverseButton : fontButton
- {
- text = Reverse Text (Off)
- }
- button switchClipRegionButton : fontButton
- {
- text = Clip Region (Viewport)
- }
- button simpleAdvancedButton : fontButton
- {
- text = Font API (Advanced)
- }
- label scaleLabel : topLabel
- {
- text = Scale (1.0)
- }
- container scaling
- {
- style = noBorder
- autoWidth = true
- height = 60
- consumeInputEvents = false
- button smallerButton
- {
- style = buttonStyle
- width = 50
- height = 50
- consumeInputEvents = false
- text = -
- }
- button biggerButton : smallerButton
- {
- x = 50
- text = +
- }
- }
- label alignmentLabel : topLabel
- {
- height = 60
- text = Align (Top-left)
- }
- // Grid layout would be best, but flow should work.
- container alignments
- {
- style = noBorder
- autoWidth = true
- height = 200
- layout = LAYOUT_FLOW
- consumeInputEvents = false
- button topLeftButton
- {
- style = buttonStyle
- size = 60, 60
- text = 7
- consumeInputEvents = false
- }
- button topCenterButton : topLeftButton
- {
- text = 8
- }
- button topRightButton : topLeftButton
- {
- text = 9
- }
- button centerLeftButton : topLeftButton
- {
- text = 4
- }
- button centerButton : topLeftButton
- {
- text = 5
- }
- button centerRightButton : topLeftButton
- {
- text = 6
- }
- button bottomLeftButton : topLeftButton
- {
- text = 1
- }
- button bottomCenterButton : topLeftButton
- {
- text = 2
- }
- button bottomRightButton : topLeftButton
- {
- text = 3
- }
- }
- }
|