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:
GenevensiS
2024-05-25 00:57:47 +02:00
committed by GitHub
parent 44b059e2f7
commit fd4b8e4c89
1195 changed files with 13325 additions and 3633 deletions

View File

@@ -0,0 +1,546 @@
extra card field:
type: text
name: colon 1
editable: false
save value: false
script: ":"
extra card field:
type: text
name: colon 2
editable: false
save value: false
script: ":"
extra card field:
type: text
name: colon 3
editable: false
save value: false
script: ":"
extra card field:
type: text
name: colon 4
editable: false
save value: false
script: ":"
extra card field:
type: text
name: colon 5
editable: false
save value: false
script: ":"
extra card field:
type: text
name: colon 6
editable: false
save value: false
script: ":"
extra card field:
type: text
name: colon 7
editable: false
save value: false
script: ":"
extra card field:
type: text
name: colon 8
editable: false
save value: false
script: ":"
extra card field:
type: choice
name: textbox stripe 1
editable: false
save value: false
show statistics: false
choice: textbox stripe 1
extra card field:
type: choice
name: textbox stripe 2
editable: false
save value: false
show statistics: false
choice: textbox stripe 2
extra card field:
type: choice
name: textbox stripe 3
editable: false
save value: false
show statistics: false
choice: textbox stripe 3
extra card field:
type: choice
name: textbox stripe 4
editable: false
save value: false
show statistics: false
choice: textbox stripe 4
extra card field:
type: choice
name: textbox stripe separator 1
editable: false
save value: false
show statistics: false
choice: textbox stripe separator 1
extra card field:
type: choice
name: textbox stripe separator 2
editable: false
save value: false
show statistics: false
choice: textbox stripe separator 2
extra card field:
type: choice
name: textbox stripe separator 3
editable: false
save value: false
show statistics: false
choice: textbox stripe separator 3
extra card field:
type: choice
name: textbox stripe separator 4
editable: false
save value: false
show statistics: false
choice: textbox stripe separator 4
extra card field:
type: choice
name: textbox stripe separator 5
editable: false
save value: false
show statistics: false
choice: textbox stripe separator 5
extra card field:
type: choice
name: textbox stripe separator 6
editable: false
save value: false
show statistics: false
choice: textbox stripe separator 6
extra card field:
type: choice
name: textbox stripe separator 7
editable: false
save value: false
show statistics: false
choice: textbox stripe separator 7
extra card field:
type: choice
name: textbox background
editable: false
save value: false
show statistics: false
choice: textbox background
extra card style:
colon 1:
left: { instance := 1; loyalty_colon_left() }
top: { instance := 1; loyalty_colon_top(1) }
width: { instance := 1; loyalty_colon_width() }
height: { instance := 1; loyalty_colon_height() }
z index: 900
visible: { instance := 1; card.loyalty_cost_1 != "" and loyalty_abilities_count() >= 1 }
font:
name: Beleren Bold
size: { instance := 1; loyalty_colon_font_size() }
color: { body_font_color() }
alignment: center middle
colon 2:
left: { instance := 1; loyalty_colon_left() }
top: { instance := 1; loyalty_colon_top(2) }
width: { instance := 1; loyalty_colon_width() }
height: { instance := 1; loyalty_colon_height() }
z index: 900
visible: { instance := 1; card.loyalty_cost_2 != "" and loyalty_abilities_count() >= 2 }
font:
name: Beleren Bold
size: { instance := 1; loyalty_colon_font_size() }
color: { body_font_color() }
alignment: center middle
colon 3:
left: { instance := 1; loyalty_colon_left() }
top: { instance := 1; loyalty_colon_top(3) }
width: { instance := 1; loyalty_colon_width() }
height: { instance := 1; loyalty_colon_height() }
z index: 900
visible: { instance := 1; card.loyalty_cost_3 != "" and loyalty_abilities_count() >= 3 }
font:
name: Beleren Bold
size: { instance := 1; loyalty_colon_font_size() }
color: { body_font_color() }
alignment: center middle
colon 4:
left: { instance := 1; loyalty_colon_left() }
top: { instance := 1; loyalty_colon_top(4) }
width: { instance := 1; loyalty_colon_width() }
height: { instance := 1; loyalty_colon_height() }
z index: 900
visible: { instance := 1; card.loyalty_cost_4 != "" and loyalty_abilities_count() >= 4 }
font:
name: Beleren Bold
size: { instance := 1; loyalty_colon_font_size() }
color: { body_font_color() }
alignment: center middle
colon 5:
left: { instance := 1; loyalty_colon_left() }
top: { instance := 1; loyalty_colon_top(5) }
width: { instance := 1; loyalty_colon_width() }
height: { instance := 1; loyalty_colon_height() }
z index: 900
visible: { instance := 1; card.loyalty_cost_5 != "" and loyalty_abilities_count() >= 5 }
font:
name: Beleren Bold
size: { instance := 1; loyalty_colon_font_size() }
color: { body_font_color() }
alignment: center middle
colon 6:
left: { instance := 1; loyalty_colon_left() }
top: { instance := 1; loyalty_colon_top(6) }
width: { instance := 1; loyalty_colon_width() }
height: { instance := 1; loyalty_colon_height() }
z index: 900
visible: { instance := 1; card.loyalty_cost_6 != "" and loyalty_abilities_count() >= 6 }
font:
name: Beleren Bold
size: { instance := 1; loyalty_colon_font_size() }
color: { body_font_color() }
alignment: center middle
colon 7:
left: { instance := 1; loyalty_colon_left() }
top: { instance := 1; loyalty_colon_top(7) }
width: { instance := 1; loyalty_colon_width() }
height: { instance := 1; loyalty_colon_height() }
z index: 900
visible: { instance := 1; card.loyalty_cost_7 != "" and loyalty_abilities_count() >= 7 }
font:
name: Beleren Bold
size: { instance := 1; loyalty_colon_font_size() }
color: { body_font_color() }
alignment: center middle
colon 8:
left: { instance := 1; loyalty_colon_left() }
top: { instance := 1; loyalty_colon_top(8) }
width: { instance := 1; loyalty_colon_width() }
height: { instance := 1; loyalty_colon_height() }
z index: 900
visible: { instance := 1; card.loyalty_cost_8 != "" and loyalty_abilities_count() >= 8 }
font:
name: Beleren Bold
size: { instance := 1; loyalty_colon_font_size() }
color: { body_font_color() }
alignment: center middle
textbox stripe 1:
left: { instance := 1; a_left() }
width: { instance := 1; a_width() }
top: { instance := 1; a_top() }
bottom: { instance := 1; round_near(loyalty_stripe_separator_top(1)) + 0.5 }
z index: 710
visible: { instance := 1; loyalty_abilities_count() >= 2 }
render style: image
image: { instance := 1; loyalty_stripe_image() }
mask: { instance := 1; loyalty_stripe_mask(1) }
textbox stripe 2:
left: { instance := 1; a_left() }
width: { instance := 1; a_width() }
top: { instance := 1; loyalty_stripe_separator_top(2) + loyalty_stripe_separator_height() }
bottom: { instance := 1; round_near(if loyalty_abilities_count() >= 4 then loyalty_stripe_separator_top(3) else a_bottom()) + 0.5 }
z index: 710
visible: { instance := 1; loyalty_abilities_count() >= 3 }
render style: image
image: { instance := 1; loyalty_stripe_image() }
mask: { instance := 1; loyalty_stripe_mask(2) }
textbox stripe 3:
left: { instance := 1; a_left() }
width: { instance := 1; a_width() }
top: { instance := 1; loyalty_stripe_separator_top(4) + loyalty_stripe_separator_height() }
bottom: { instance := 1; round_near(if loyalty_abilities_count() >= 6 then loyalty_stripe_separator_top(5) else a_bottom()) + 0.5 }
z index: 710
visible: { instance := 1; loyalty_abilities_count() >= 5 }
render style: image
image: { instance := 1; loyalty_stripe_image() }
mask: { instance := 1; loyalty_stripe_mask(3) }
textbox stripe 4:
left: { instance := 1; a_left() }
width: { instance := 1; a_width() }
top: { instance := 1; loyalty_stripe_separator_top(6) + loyalty_stripe_separator_height() }
bottom: { instance := 1; round_near(if loyalty_abilities_count() >= 8 then loyalty_stripe_separator_top(7) else a_bottom()) + 0.5 }
z index: 710
visible: { instance := 1; loyalty_abilities_count() >= 7 }
render style: image
image: { instance := 1; loyalty_stripe_image() }
mask: { instance := 1; loyalty_stripe_mask(4) }
textbox stripe separator 1:
left: { instance := 1; a_left() }
width: { instance := 1; a_width() }
top: { instance := 1; round_near(loyalty_stripe_separator_top(1)) }
bottom: { instance := 1; round_near(loyalty_stripe_separator_top(1) + loyalty_stripe_separator_height()) + 0.5 }
z index: 710
visible: { instance := 1; loyalty_abilities_count() >= 2 }
render style: image
image: { instance := 1; loyalty_stripe_separator_image(1) }
mask: { instance := 1; loyalty_stripe_separator_mask(1) }
textbox stripe separator 2:
left: { instance := 1; a_left() }
width: { instance := 1; a_width() }
top: { instance := 1; round_near(loyalty_stripe_separator_top(2)) }
bottom: { instance := 1; round_near(loyalty_stripe_separator_top(2) + loyalty_stripe_separator_height()) + 0.5 }
z index: 710
visible: { instance := 1; loyalty_abilities_count() >= 3 }
render style: image
image: { instance := 1; loyalty_stripe_separator_image(2) }
mask: { instance := 1; loyalty_stripe_separator_mask(2) }
textbox stripe separator 3:
left: { instance := 1; a_left() }
width: { instance := 1; a_width() }
top: { instance := 1; round_near(loyalty_stripe_separator_top(3)) }
bottom: { instance := 1; round_near(loyalty_stripe_separator_top(3) + loyalty_stripe_separator_height()) + 0.5 }
z index: 710
visible: { instance := 1; loyalty_abilities_count() >= 4 }
render style: image
image: { instance := 1; loyalty_stripe_separator_image(3) }
mask: { instance := 1; loyalty_stripe_separator_mask(3) }
textbox stripe separator 4:
left: { instance := 1; a_left() }
width: { instance := 1; a_width() }
top: { instance := 1; round_near(loyalty_stripe_separator_top(4)) }
bottom: { instance := 1; round_near(loyalty_stripe_separator_top(4) + loyalty_stripe_separator_height()) + 0.5 }
z index: 710
visible: { instance := 1; loyalty_abilities_count() >= 5 }
render style: image
image: { instance := 1; loyalty_stripe_separator_image(4) }
mask: { instance := 1; loyalty_stripe_separator_mask(4) }
textbox stripe separator 5:
left: { instance := 1; a_left() }
width: { instance := 1; a_width() }
top: { instance := 1; round_near(loyalty_stripe_separator_top(5)) }
bottom: { instance := 1; round_near(loyalty_stripe_separator_top(5) + loyalty_stripe_separator_height()) + 0.5 }
z index: 710
visible: { instance := 1; loyalty_abilities_count() >= 6 }
render style: image
image: { instance := 1; loyalty_stripe_separator_image(5) }
mask: { instance := 1; loyalty_stripe_separator_mask(5) }
textbox stripe separator 6:
left: { instance := 1; a_left() }
width: { instance := 1; a_width() }
top: { instance := 1; round_near(loyalty_stripe_separator_top(6)) }
bottom: { instance := 1; round_near(loyalty_stripe_separator_top(6) + loyalty_stripe_separator_height()) + 0.5 }
z index: 710
visible: { instance := 1; loyalty_abilities_count() >= 7 }
render style: image
image: { instance := 1; loyalty_stripe_separator_image(6) }
mask: { instance := 1; loyalty_stripe_separator_mask(6) }
textbox stripe separator 7:
left: { instance := 1; a_left() }
width: { instance := 1; a_width() }
top: { instance := 1; round_near(loyalty_stripe_separator_top(7)) }
bottom: { instance := 1; round_near(loyalty_stripe_separator_top(7) + loyalty_stripe_separator_height()) + 0.5 }
z index: 710
visible: { instance := 1; loyalty_abilities_count() >= 8 }
render style: image
image: { instance := 1; loyalty_stripe_separator_image(7) }
mask: { instance := 1; loyalty_stripe_separator_mask(7) }
textbox background:
left: { instance := 1; a_left() }
width: { instance := 1; a_width() }
top: { instance := 1; a_top() }
bottom: { instance := 1; a_bottom() }
z index: 700
render style: image
image: { instance := 1; loyalty_textbox_background_image() }
mask: { instance := 1; loyalty_textbox_mask() }
card style:
loyalty:
left: { instance := 1; card.loyalty_box; loyalty_left() }
top: { instance := 1; loyalty_top() }
width: { instance := 1; card.loyalty_box; loyalty_width() }
height: { instance := 1; loyalty_height() }
z index: 900
alignment: center middle shrink-overflow
font:
name: { name_font() }
size: { instance := 1; card.loyalty_box; loyalty_font_size() }
color: white
loyalty box:
left: { instance := 1; loyalty_box_left() }
top: { instance := 1; loyalty_box_top() }
width: { instance := 1; if card.loyalty == "" then 0 else loyalty_box_width() }
height: { instance := 1; loyalty_box_height() }
z index: 830
visible: { instance := 1; card.loyalty != "" }
include file: /magic.mse-game/loyalty/menu_choice_images
render style: image
image: { instance := 1; loyalty_box_image() }
loyalty cost 1:
left: { instance := 1; loyalty_cost_left() }
top: { instance := 1; card.loyalty_cost_box_1; loyalty_cost_top(1) }
width: { instance := 1; loyalty_cost_width() }
height: { instance := 1; loyalty_cost_height(1) }
z index: 900
alignment: center middle shrink-overflow
font:
name: { name_font() }
size: { instance := 1; loyalty_cost_font_size() }
scale down to: 7
color: white
loyalty cost 2:
left: { instance := 1; loyalty_cost_left() }
top: { instance := 1; card.loyalty_cost_box_2; loyalty_cost_top(2) }
width: { instance := 1; loyalty_cost_width() }
height: { instance := 1; loyalty_cost_height(2) }
z index: 900
alignment: center middle shrink-overflow
font:
name: { name_font() }
size: { instance := 1; loyalty_cost_font_size() }
scale down to: 7
color: white
loyalty cost 3:
left: { instance := 1; loyalty_cost_left() }
top: { instance := 1; card.loyalty_cost_box_3; loyalty_cost_top(3) }
width: { instance := 1; loyalty_cost_width() }
height: { instance := 1; loyalty_cost_height(3) }
z index: 900
alignment: center middle shrink-overflow
font:
name: { name_font() }
size: { instance := 1; loyalty_cost_font_size() }
scale down to: 7
color: white
loyalty cost 4:
left: { instance := 1; loyalty_cost_left() }
top: { instance := 1; card.loyalty_cost_box_4; loyalty_cost_top(4) }
width: { instance := 1; loyalty_cost_width() }
height: { instance := 1; loyalty_cost_height(4) }
z index: 900
alignment: center middle shrink-overflow
font:
name: { name_font() }
size: { instance := 1; loyalty_cost_font_size() }
scale down to: 7
color: white
loyalty cost 5:
left: { instance := 1; loyalty_cost_left() }
top: { instance := 1; card.loyalty_cost_box_5; loyalty_cost_top(5) }
width: { instance := 1; loyalty_cost_width() }
height: { instance := 1; loyalty_cost_height(5) }
z index: 900
alignment: center middle shrink-overflow
font:
name: { name_font() }
size: { instance := 1; loyalty_cost_font_size() }
scale down to: 7
color: white
loyalty cost 6:
left: { instance := 1; loyalty_cost_left() }
top: { instance := 1; card.loyalty_cost_box_6; loyalty_cost_top(6) }
width: { instance := 1; loyalty_cost_width() }
height: { instance := 1; loyalty_cost_height(6) }
z index: 900
alignment: center middle shrink-overflow
font:
name: { name_font() }
size: { instance := 1; loyalty_cost_font_size() }
scale down to: 7
color: white
loyalty cost 7:
left: { instance := 1; loyalty_cost_left() }
top: { instance := 1; card.loyalty_cost_box_7; loyalty_cost_top(7) }
width: { instance := 1; loyalty_cost_width() }
height: { instance := 1; loyalty_cost_height(7) }
z index: 900
alignment: center middle shrink-overflow
font:
name: { name_font() }
size: { instance := 1; loyalty_cost_font_size() }
scale down to: 7
color: white
loyalty cost 8:
left: { instance := 1; loyalty_cost_left() }
top: { instance := 1; card.loyalty_cost_box_8; loyalty_cost_top(8) }
width: { instance := 1; loyalty_cost_width() }
height: { instance := 1; loyalty_cost_height(8) }
z index: 900
alignment: center middle shrink-overflow
font:
name: { name_font() }
size: { instance := 1; loyalty_cost_font_size() }
scale down to: 7
color: white
loyalty cost box 1:
left: { instance := 1; loyalty_cost_box_left() }
top: { instance := 1; loyalty_cost_box_top(1) }
width: { instance := 1; loyalty_cost_box_width() }
height: { instance := 1; loyalty_cost_box_height(1) }
z index: 830
visible: { instance := 1; card.loyalty_cost_1 != "" and loyalty_abilities_count() >= 1 }
include file: /magic.mse-game/loyalty/menu_choice_images_cost
render style: image
image: { instance := 1; loyalty_cost_box_image(1) }
loyalty cost box 2:
left: { instance := 1; loyalty_cost_box_left() }
top: { instance := 1; loyalty_cost_box_top(2) }
width: { instance := 1; loyalty_cost_box_width() }
height: { instance := 1; loyalty_cost_box_height(2) }
z index: 830
visible: { instance := 1; card.loyalty_cost_2 != "" and loyalty_abilities_count() >= 2 }
include file: /magic.mse-game/loyalty/menu_choice_images_cost
render style: image
image: { instance := 1; loyalty_cost_box_image(2) }
loyalty cost box 3:
left: { instance := 1; loyalty_cost_box_left() }
top: { instance := 1; loyalty_cost_box_top(3) }
width: { instance := 1; loyalty_cost_box_width() }
height: { instance := 1; loyalty_cost_box_height(3) }
z index: 830
visible: { instance := 1; card.loyalty_cost_3 != "" and loyalty_abilities_count() >= 3}
include file: /magic.mse-game/loyalty/menu_choice_images_cost
render style: image
image: { instance := 1; loyalty_cost_box_image(3) }
loyalty cost box 4:
left: { instance := 1; loyalty_cost_box_left() }
top: { instance := 1; loyalty_cost_box_top(4) }
width: { instance := 1; loyalty_cost_box_width() }
height: { instance := 1; loyalty_cost_box_height(4) }
z index: 830
visible: { instance := 1; card.loyalty_cost_4 != "" and loyalty_abilities_count() >= 4 }
include file: /magic.mse-game/loyalty/menu_choice_images_cost
render style: image
image: { instance := 1; loyalty_cost_box_image(4) }
loyalty cost box 5:
left: { instance := 1; loyalty_cost_box_left() }
top: { instance := 1; loyalty_cost_box_top(5) }
width: { instance := 1; loyalty_cost_box_width() }
height: { instance := 1; loyalty_cost_box_height(5) }
z index: 830
visible: { instance := 1; card.loyalty_cost_5 != "" and loyalty_abilities_count() >= 5 }
include file: /magic.mse-game/loyalty/menu_choice_images_cost
render style: image
image: { instance := 1; loyalty_cost_box_image(5) }
loyalty cost box 6:
left: { instance := 1; loyalty_cost_box_left() }
top: { instance := 1; loyalty_cost_box_top(6) }
width: { instance := 1; loyalty_cost_box_width() }
height: { instance := 1; loyalty_cost_box_height(6) }
z index: 830
visible: { instance := 1; card.loyalty_cost_6 != "" and loyalty_abilities_count() >= 6 }
include file: /magic.mse-game/loyalty/menu_choice_images_cost
render style: image
image: { instance := 1; loyalty_cost_box_image(6) }
loyalty cost box 7:
left: { instance := 1; loyalty_cost_box_left() }
top: { instance := 1; loyalty_cost_box_top(7) }
width: { instance := 1; loyalty_cost_box_width() }
height: { instance := 1; loyalty_cost_box_height(7) }
z index: 830
visible: { instance := 1; card.loyalty_cost_7 != "" and loyalty_abilities_count() >= 7 }
include file: /magic.mse-game/loyalty/menu_choice_images_cost
render style: image
image: { instance := 1; loyalty_cost_box_image(7) }
loyalty cost box 8:
left: { instance := 1; loyalty_cost_box_left() }
top: { instance := 1; loyalty_cost_box_top(8) }
width: { instance := 1; loyalty_cost_box_width() }
height: { instance := 1; loyalty_cost_box_height(8) }
z index: 830
visible: { instance := 1; card.loyalty_cost_8 != "" and loyalty_abilities_count() >= 8 }
include file: /magic.mse-game/loyalty/menu_choice_images_cost
render style: image
image: { instance := 1; loyalty_cost_box_image(8) }