mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
Added <prefix> and <suffix> tags;
Added prefix and suffix support to combined_editor; 'always symbol' now checks if the symbols are available in the symbol font; Fixed parser bug in spec_sort; A first information field is no longer used as set identification git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@653 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -13,16 +13,18 @@ When the field changes the underlying values are updated and vice versa.
|
||||
Note: @forward_editor@ and @combined_editor@ are the same function.
|
||||
|
||||
--Parameters--
|
||||
! Parameter Type Description
|
||||
| @field@ [[type:value#text|text value]] Text value to edit
|
||||
| @field1@ [[type:value#text|text value]] Another text value to edit
|
||||
| @field2@ [[type:value#text|text value]] ''etc.''
|
||||
| @separator@ [[type:string]] Separator between field 1 and 2
|
||||
| @separator1@ [[type:string]] Multiple separators
|
||||
| @separator2@ [[type:string]] Next separator, ''etc.''
|
||||
| @hide when empty@ [[type:boolean]] Don't include separators if the entire value is empty.
|
||||
| @soft before empty@ [[type:boolean]] Make separators 'soft' when the value folowing it is empty.
|
||||
Soft separators are hidden by default and shown grayed when the field is selected.
|
||||
! Parameter Type Default Description
|
||||
| @field@ [[type:value#text|text value]] Text value to edit
|
||||
| @field1@ [[type:value#text|text value]] Another text value to edit
|
||||
| @field2@ [[type:value#text|text value]] ''etc.''
|
||||
| @separator@ [[type:string]] Separator between field 1 and 2
|
||||
| @separator1@ [[type:string]] Multiple separators
|
||||
| @separator2@ [[type:string]] Next separator, ''etc.''
|
||||
| @prefix@ [[type:string]] ''optional'' Prefix before the combined editor; like a separtor between the start and the first field.
|
||||
| @suffix@ [[type:string]] ''optional'' Suffix after the combined editor; like a separtor between the last field and the end.
|
||||
| @hide when empty@ [[type:boolean]] @false@ Don't include separators if the entire value is empty.
|
||||
| @soft before empty@ [[type:boolean]] @false@ Make separators 'soft' when the value folowing it is empty.
|
||||
Soft separators are hidden by default and shown grayed when the field is selected.
|
||||
|
||||
--Examples--
|
||||
>card field:
|
||||
|
||||
+5
-1
@@ -55,7 +55,8 @@ The rest of the properties depend on the type of [[type:field]] this style is fo
|
||||
! Type Property Type Default Description
|
||||
| @"text"@ @font@ [[type:font]] ''Required'' Font to render the text.
|
||||
| ^^^ @symbol font@ [[type:symbol font]] Font to render symbols in the text (optional).
|
||||
| ^^^ @always symbol@ [[type:boolean]] @false@ Should all text be rendered with symbols?<br/>If set, @font@ is not needed.
|
||||
| ^^^ @always symbol@ [[type:boolean]] @false@ Should all text be rendered with symbols?<br/>
|
||||
Text that is not supported by the symbol font is still rendered as normal text.
|
||||
| ^^^ @allow formating@ [[type:boolean]] @true@ Is custom formating (bold, italic) allowed?
|
||||
| ^^^ @alignment@ [[type:scriptable]] [[type:alignment]] @top left@ Alignment of the text.
|
||||
| ^^^ @angle@ [[type:scriptable]] [[type:int]] @0@ Rotation of the text inside the box, in degrees.
|
||||
@@ -72,6 +73,9 @@ The rest of the properties depend on the type of [[type:field]] this style is fo
|
||||
A line height of @0@ means all lines are in the same position, @1@ is normal behaviour, @2@ skips a line, etc.
|
||||
| ^^^ @line height hard@ [[type:double]] @1@ Multiplier for the line height of 'hard' line breaks. These are breaks caused by the enter key.
|
||||
| ^^^ @line height line@ [[type:double]] @1@ Multiplier for the line height of 'soft' line breaks. These are breaks caused by @"<line>\n</line>"@ tags.
|
||||
| ^^^ @line height soft max@ ^^^ ''disabled'' When there is still vertical room in the text box, increase the line heights to at most these values to spread the text more evenly.
|
||||
| ^^^ @line height hard max@ ^^^ ^^^ ^^^
|
||||
| ^^^ @line height line max@ ^^^ ^^^ ^^^
|
||||
| ^^^ @mask@ [[type:filename]] ''none'' A mask that indicates where in the box text can be placed.<br/>
|
||||
Text is never put in black areas of the box:<br/>
|
||||
<img src="style-text-mask.png" alt=""/>
|
||||
|
||||
@@ -36,6 +36,8 @@ This is written as the character with code 1 in files.
|
||||
| @"<sep>"@ A separator between fields. This tag is automatically inserted by the [[fun:combined_editor]] function.<br/>
|
||||
Inserting this tag manually will confuse that function!<br/>
|
||||
This tag can never be selected, and its contents can not be edited.
|
||||
| @"<prefix>"@ At the beginning of a string, indicates a part that can not be selected. This tag is automatically inserted by the [[fun:combined_editor]] function.
|
||||
| @"<suffix>"@ At the end of a string, indicates a part that can not be selected. This tag is automatically inserted by the [[fun:combined_editor]] function.
|
||||
| @"<sep-soft>"@ Like @"<sep>"@, only hidden. This is inserted by [[fun:combined_editor]]
|
||||
| @"<soft>"@ Text who's width is ignored for alignment, similair to @"<sep-soft>"@, but not a separator.
|
||||
| @"<word-list-?>"@ Indicate that the text inside the tag should be selected from a [[type:word list]].
|
||||
|
||||
Reference in New Issue
Block a user