card_fields rewrite and magic-modules.mse-include (#21)
Overhauls the card_fields file to allow for template designers more freedom in manipulating data. Adds magic-modules.mse-include, a large scale include file for building templates in a standardized way. Applying this to existing frames will be coming in future updates.
This commit is contained in:
@@ -155,6 +155,22 @@ init script:
|
||||
}
|
||||
|
||||
####### Shape things
|
||||
faces_coordinates := {
|
||||
[
|
||||
[
|
||||
left: 0,
|
||||
top: 0,
|
||||
width: 375,
|
||||
height: 523
|
||||
],
|
||||
[
|
||||
left: 377,
|
||||
top: 0,
|
||||
width: 375,
|
||||
height: 523
|
||||
]
|
||||
]
|
||||
}
|
||||
card_shape := {if contains(styling.dfc_type, match: "modal") then "modal double faced" else "transform double faced"}
|
||||
a_saga := {is_saga() or is_class()}
|
||||
b_saga := {back_saga() or back_class()}
|
||||
@@ -969,6 +985,7 @@ styling field:
|
||||
choice: use hovering pt
|
||||
choice: use hovering loyalty
|
||||
choice: use holofoil stamps
|
||||
choice: use backface rarity
|
||||
choice: center front
|
||||
choice: center back
|
||||
choice: center first name
|
||||
@@ -1269,7 +1286,7 @@ card style:
|
||||
type 2:
|
||||
left: { if back_map() then 462 else if has_identity2() then "429" else "409" }
|
||||
top: { (if back_map() then 297.5 else if back_saga() or back_class() then 444 else if back_four_abilities() then 261 else 296) + shrink_type2() }
|
||||
width: { if back_map() then 205 else (if has_identity2() then "290" else "310") - rare_width() }
|
||||
width: { if back_map() then 205 else (if has_identity2() then "290" else "310") - (if chosen(styling.other_options, choice:"use backface rarity") and set.shorten_types_for_rarity then rare_width() else 0) }
|
||||
height: { if back_map() then 18 - shrink_type2() else 20 - shrink_type2()}
|
||||
alignment: {if back_map() then "center top shrink-overflow" else "top shrink-overflow"}
|
||||
z index: 2
|
||||
@@ -1330,7 +1347,7 @@ card style:
|
||||
rarity 2:
|
||||
right: { if back_map() then 576 else 721}
|
||||
top: { if back_saga() or back_class() then 445 else if back_map() then 53 else if back_normal() then 297 else if back_four_abilities() then 262 else 297 }
|
||||
width: {if set.shorten_types_for_rarity then 44 else 0}
|
||||
width: { if chosen(styling.other_options, choice:"use backface rarity") and set.shorten_types_for_rarity then 44 else 0 }
|
||||
height: 22
|
||||
z index: 3
|
||||
render style: image
|
||||
|
||||
Reference in New Issue
Block a user