mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
Implement unique IDs and card linking
This commit is contained in:
+5
-5
@@ -43,9 +43,9 @@ Fields are part of the [[file:style triangle]]:
|
||||
| @card list name@ [[type:localized string]] field name Alternate name to use for the card list, for example an abbreviation.
|
||||
| @card list alignment@ [[type:alignment]] @left@ Alignment of the card list column.
|
||||
| @sort script@ [[type:script]] Alternate way to sort the card list when using this column to sort the list.
|
||||
| @import script@ [[type:script]] Script applied to the value given when creating a card with the new_card function. The script may return a map from field names to values.
|
||||
For example, the pt field should not be initialized directly, since it is a combination of the power field and toughness field.
|
||||
So if a value is given for pt, it must be redirected to power and toughness like so: {split := split_text(value, match:"/"); [power:split[0], toughness:split[1]]}.
|
||||
| @import script@ [[type:script]] Script applied to the value given when creating a card with the new_card function. The script may return a map from field names to values.
|
||||
For example, the pt field should not be initialized directly, since it is a combination of the power field and toughness field.
|
||||
So if a value is given for pt, it must be redirected to power and toughness like so: {split := split_text(value, match:"/"); [power:split[0], toughness:split[1]]}.
|
||||
Use the make_map function to dynamically create maps.
|
||||
|
||||
The @type@ determines what values of this field contain:
|
||||
@@ -85,8 +85,8 @@ Additional properties are available, depending on the type of field:
|
||||
These choices must appear in the same order as they do in the @choices@ property.
|
||||
|
||||
| @"boolean"@ ''A boolean field is a choice field with the choices @"yes"@ and @"no"@.'' <<< <<< <<<
|
||||
|
||||
| @"slider"@ ''A slider field is a choice field where the choices are all numbers.'' <<< <<< <<<
|
||||
|
||||
| @"slider"@ ''A slider field is a choice field where the choices are all numbers.'' <<< <<< <<<
|
||||
| ^^^ @script@ [[type:script]] Script to apply to values of this field after each change.<br/>
|
||||
If the script evaluates to a constant (i.e. doesn't use @value@) then values in this field can effectively not be edited.
|
||||
| ^^^ @default@ [[type:script]] Script to determine the value when it is in the default state (not edited).
|
||||
|
||||
Reference in New Issue
Block a user