mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
convert to CRLF line endings
This commit is contained in:
@@ -6,10 +6,10 @@ Function: new_card
|
||||
Creates a new [[type:card]] object. The card is not automatically added to a set. Use the [[fun:add_card_to_set]] function for that.
|
||||
|
||||
The argument is a map from card field names to values, for example @new_card([name: "My Card"])@ creates a card with the name @"My Card"@, and all other fields at their default value.
|
||||
|
||||
The map can also contain the following built-in keys: notes, id, linked_card_1 to linked_card_4, linked_relation_1 to linked_relation_4, stylesheet, styling_data, and extra_data. For styling_data and extra_data, the value must itself be a map from field names to values. Be sure to define a stylesheet before these.
|
||||
|
||||
NOTE: you should use underscores instead of spaces in field names.
|
||||
|
||||
The map can also contain the following built-in keys: notes, id, linked_card_1 to linked_card_4, linked_relation_1 to linked_relation_4, stylesheet, styling_data, and extra_data. For styling_data and extra_data, the value must itself be a map from field names to values. Be sure to define a stylesheet before these.
|
||||
|
||||
NOTE: you should use underscores instead of spaces in field names.
|
||||
|
||||
--Parameters--
|
||||
! Parameter Type Description
|
||||
@@ -26,7 +26,7 @@ NOTE: you should use underscores instead of spaces in field names.
|
||||
> ])
|
||||
>
|
||||
> # Write an image of the card to a file
|
||||
> write_image_file(my_card, file: "my_card.png")
|
||||
> write_image_file(my_card, file: "my_card.png")
|
||||
|
||||
> # Add the card to the current set
|
||||
> add_card_to_set(my_card)
|
||||
|
||||
Reference in New Issue
Block a user