Commit 23976ea1 authored by twanvl's avatar twanvl

multiple choice style . alignment, direction are now scriptable

parent 1d8fac30
...@@ -76,7 +76,7 @@ Here are some examples: ...@@ -76,7 +76,7 @@ Here are some examples:
| @bottom@ [[type:scriptable]] [[type:double]] ''Required'' Distance between bottom edge of the box and the ''top'' of the card in pixels. | @bottom@ [[type:scriptable]] [[type:double]] ''Required'' Distance between bottom edge of the box and the ''top'' of the card in pixels.
| @angle@ [[type:scriptable]] [[type:int]] @0@ Rotation of this box, in degrees counter clockwise. | @angle@ [[type:scriptable]] [[type:int]] @0@ Rotation of this box, in degrees counter clockwise.
| @visible@ [[type:scriptable]] [[type:boolean]] @true@ Is this field visible at all? | @visible@ [[type:scriptable]] [[type:boolean]] @true@ Is this field visible at all?
| @mask@ [[type:image|scriptable image]] ''none'' A mask to apply to the image, black areas in the mask become transparent, similar to [[fun:set_mask]]. | @mask@ [[type:image|scriptable image]] ''none'' A mask to apply to the box, black areas in the mask become transparent, similar to [[fun:set_mask]].
The rest of the properties depend on the type of [[type:field]] this style is for. The rest of the properties depend on the type of [[type:field]] this style is for.
! Type Property Type Default Description ! Type Property Type Default Description
...@@ -119,7 +119,6 @@ The rest of the properties depend on the type of [[type:field]] this style is fo ...@@ -119,7 +119,6 @@ The rest of the properties depend on the type of [[type:field]] this style is fo
@"drop down"@ places the box below the field, similar to normal combo boxes.<br/> @"drop down"@ places the box below the field, similar to normal combo boxes.<br/>
@"in place"@ places the box at the mouse coordinates. @"in place"@ places the box at the mouse coordinates.
| ^^^ @render style@ [[type:choice render style]] @"text"@ How should the field be rendered? | ^^^ @render style@ [[type:choice render style]] @"text"@ How should the field be rendered?
| ^^^ @mask@ [[type:scriptable]] [[type:filename]] ''none'' A mask to apply to the image, black areas in the mask become transparent, similar to [[fun:set_mask]].
| ^^^ @combine@ [[type:combine]] @"normal"@ How to combine the image with the background? Can be overridden using the [[fun:set_combine]] function. | ^^^ @combine@ [[type:combine]] @"normal"@ How to combine the image with the background? Can be overridden using the [[fun:set_combine]] function.
| ^^^ @alignment@ [[type:alignment]] @"stretch"@ Alignment of text and images in the box. | ^^^ @alignment@ [[type:alignment]] @"stretch"@ Alignment of text and images in the box.
| ^^^ @font@ [[type:font]] Font to use for rendering text (depending on @render style@) | ^^^ @font@ [[type:font]] Font to use for rendering text (depending on @render style@)
...@@ -131,15 +130,15 @@ The rest of the properties depend on the type of [[type:field]] this style is fo ...@@ -131,15 +130,15 @@ The rest of the properties depend on the type of [[type:field]] this style is fo
This is only useful when the alignment is changed, otherwise it is always equal the box size itself. This is only useful when the alignment is changed, otherwise it is always equal the box size itself.
| ^^^ @content height@ [[type:double]] ''automatic'' When read from a script, gives the height of the current choice image in this box. | ^^^ @content height@ [[type:double]] ''automatic'' When read from a script, gives the height of the current choice image in this box.
| @"multiple choice"@ | @"multiple choice"@
@direction@ [[type:direction]] @"left to right"@ Direction the items are laid out in, only when @render style@ is @list@. @direction@ [[type:scriptable]] [[type:direction]] @"left to right"@ Direction the items are laid out in, only when @render style@ is @list@.
| ^^^ @spacing@ [[type:double]] @0@ Spacing between the items. | ^^^ @spacing@ [[type:scriptable]] [[type:double]] @0@ Spacing between the items.
! <<< <<< <<< <<< ! <<< <<< <<< <<<
| @"package choice"@ | @"package choice"@
| ^^^ @font@ [[type:font]] Font to use for rendering text. | ^^^ @font@ [[type:font]] Font to use for rendering text.
! <<< <<< <<< <<< ! <<< <<< <<< <<<
| @"color"@ @radius@ [[type:script]] @0@ Radius of rounded corners for the box in pixels. | @"color"@ @radius@ [[type:double]] @0@ Radius of rounded corners for the box in pixels.
| ^^^ @left width@ [[type:double]] &infin; Draw only this many pixels from the side, creating a box with a hole in it, or a card border. | ^^^ @left width@ [[type:double]] &infin; Draw only this many pixels from the side, creating a box with a hole in it, or a card border.
| ^^^ @right width@ ^^^ ^^^ ^^^ | ^^^ @right width@ ^^^ ^^^ ^^^
| ^^^ @top width@ ^^^ ^^^ ^^^ | ^^^ @top width@ ^^^ ^^^ ^^^
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment