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.
546
data/magic-modules.mse-include/loyalty/card_fields
Normal 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) }
|
||||
547
data/magic-modules.mse-include/loyalty/card_fields_dfc
Normal file
@@ -0,0 +1,547 @@
|
||||
include file: /magic-modules.mse-include/loyalty/card_fields
|
||||
extra card field:
|
||||
type: text
|
||||
name: colon 9
|
||||
editable: false
|
||||
save value: false
|
||||
script: ":"
|
||||
extra card field:
|
||||
type: text
|
||||
name: colon 10
|
||||
editable: false
|
||||
save value: false
|
||||
script: ":"
|
||||
extra card field:
|
||||
type: text
|
||||
name: colon 11
|
||||
editable: false
|
||||
save value: false
|
||||
script: ":"
|
||||
extra card field:
|
||||
type: text
|
||||
name: colon 12
|
||||
editable: false
|
||||
save value: false
|
||||
script: ":"
|
||||
extra card field:
|
||||
type: text
|
||||
name: colon 13
|
||||
editable: false
|
||||
save value: false
|
||||
script: ":"
|
||||
extra card field:
|
||||
type: text
|
||||
name: colon 14
|
||||
editable: false
|
||||
save value: false
|
||||
script: ":"
|
||||
extra card field:
|
||||
type: text
|
||||
name: colon 15
|
||||
editable: false
|
||||
save value: false
|
||||
script: ":"
|
||||
extra card field:
|
||||
type: text
|
||||
name: colon 16
|
||||
editable: false
|
||||
save value: false
|
||||
script: ":"
|
||||
extra card field:
|
||||
type: choice
|
||||
name: textbox stripe 9
|
||||
editable: false
|
||||
save value: false
|
||||
show statistics: false
|
||||
choice: textbox stripe 9
|
||||
extra card field:
|
||||
type: choice
|
||||
name: textbox stripe 10
|
||||
editable: false
|
||||
save value: false
|
||||
show statistics: false
|
||||
choice: textbox stripe 10
|
||||
extra card field:
|
||||
type: choice
|
||||
name: textbox stripe 11
|
||||
editable: false
|
||||
save value: false
|
||||
show statistics: false
|
||||
choice: textbox stripe 11
|
||||
extra card field:
|
||||
type: choice
|
||||
name: textbox stripe 12
|
||||
editable: false
|
||||
save value: false
|
||||
show statistics: false
|
||||
choice: textbox stripe 12
|
||||
extra card field:
|
||||
type: choice
|
||||
name: textbox stripe separator 9
|
||||
editable: false
|
||||
save value: false
|
||||
show statistics: false
|
||||
choice: textbox stripe separator 9
|
||||
extra card field:
|
||||
type: choice
|
||||
name: textbox stripe separator 10
|
||||
editable: false
|
||||
save value: false
|
||||
show statistics: false
|
||||
choice: textbox stripe separator 10
|
||||
extra card field:
|
||||
type: choice
|
||||
name: textbox stripe separator 11
|
||||
editable: false
|
||||
save value: false
|
||||
show statistics: false
|
||||
choice: textbox stripe separator 11
|
||||
extra card field:
|
||||
type: choice
|
||||
name: textbox stripe separator 12
|
||||
editable: false
|
||||
save value: false
|
||||
show statistics: false
|
||||
choice: textbox stripe separator 12
|
||||
extra card field:
|
||||
type: choice
|
||||
name: textbox stripe separator 13
|
||||
editable: false
|
||||
save value: false
|
||||
show statistics: false
|
||||
choice: textbox stripe separator 13
|
||||
extra card field:
|
||||
type: choice
|
||||
name: textbox stripe separator 14
|
||||
editable: false
|
||||
save value: false
|
||||
show statistics: false
|
||||
choice: textbox stripe separator 14
|
||||
extra card field:
|
||||
type: choice
|
||||
name: textbox stripe separator 15
|
||||
editable: false
|
||||
save value: false
|
||||
show statistics: false
|
||||
choice: textbox stripe separator 15
|
||||
extra card field:
|
||||
type: choice
|
||||
name: textbox background 2
|
||||
editable: false
|
||||
save value: false
|
||||
show statistics: false
|
||||
choice: textbox background 2
|
||||
extra card style:
|
||||
colon 9:
|
||||
left: { instance := 2; loyalty_colon_left() }
|
||||
top: { instance := 2; loyalty_colon_top(1) }
|
||||
width: { instance := 2; loyalty_colon_width() }
|
||||
height: { instance := 2; loyalty_colon_height() }
|
||||
z index: 900
|
||||
visible: { instance := 2; card.loyalty_cost_9 != "" and loyalty_abilities_count() >= 1 }
|
||||
font:
|
||||
name: Beleren Bold
|
||||
size: { instance := 2; loyalty_colon_font_size() }
|
||||
color: { body2_font_color() }
|
||||
alignment: center middle
|
||||
colon 10:
|
||||
left: { instance := 2; loyalty_colon_left() }
|
||||
top: { instance := 2; loyalty_colon_top(2) }
|
||||
width: { instance := 2; loyalty_colon_width() }
|
||||
height: { instance := 2; loyalty_colon_height() }
|
||||
z index: 900
|
||||
visible: { instance := 2; card.loyalty_cost_10 != "" and loyalty_abilities_count() >= 2 }
|
||||
font:
|
||||
name: Beleren Bold
|
||||
size: { instance := 2; loyalty_colon_font_size() }
|
||||
color: { body2_font_color() }
|
||||
alignment: center middle
|
||||
colon 11:
|
||||
left: { instance := 2; loyalty_colon_left() }
|
||||
top: { instance := 2; loyalty_colon_top(3) }
|
||||
width: { instance := 2; loyalty_colon_width() }
|
||||
height: { instance := 2; loyalty_colon_height() }
|
||||
z index: 900
|
||||
visible: { instance := 2; card.loyalty_cost_11 != "" and loyalty_abilities_count() >= 3 }
|
||||
font:
|
||||
name: Beleren Bold
|
||||
size: { instance := 2; loyalty_colon_font_size() }
|
||||
color: { body2_font_color() }
|
||||
alignment: center middle
|
||||
colon 12:
|
||||
left: { instance := 2; loyalty_colon_left() }
|
||||
top: { instance := 2; loyalty_colon_top(4) }
|
||||
width: { instance := 2; loyalty_colon_width() }
|
||||
height: { instance := 2; loyalty_colon_height() }
|
||||
z index: 900
|
||||
visible: { instance := 2; card.loyalty_cost_12 != "" and loyalty_abilities_count() >= 4 }
|
||||
font:
|
||||
name: Beleren Bold
|
||||
size: { instance := 2; loyalty_colon_font_size() }
|
||||
color: { body2_font_color() }
|
||||
alignment: center middle
|
||||
colon 13:
|
||||
left: { instance := 2; loyalty_colon_left() }
|
||||
top: { instance := 2; loyalty_colon_top(5) }
|
||||
width: { instance := 2; loyalty_colon_width() }
|
||||
height: { instance := 2; loyalty_colon_height() }
|
||||
z index: 900
|
||||
visible: { instance := 2; card.loyalty_cost_13 != "" and loyalty_abilities_count() >= 5 }
|
||||
font:
|
||||
name: Beleren Bold
|
||||
size: { instance := 2; loyalty_colon_font_size() }
|
||||
color: { body2_font_color() }
|
||||
alignment: center middle
|
||||
colon 14:
|
||||
left: { instance := 2; loyalty_colon_left() }
|
||||
top: { instance := 2; loyalty_colon_top(6) }
|
||||
width: { instance := 2; loyalty_colon_width() }
|
||||
height: { instance := 2; loyalty_colon_height() }
|
||||
z index: 900
|
||||
visible: { instance := 2; card.loyalty_cost_14 != "" and loyalty_abilities_count() >= 6 }
|
||||
font:
|
||||
name: Beleren Bold
|
||||
size: { instance := 2; loyalty_colon_font_size() }
|
||||
color: { body2_font_color() }
|
||||
alignment: center middle
|
||||
colon 15:
|
||||
left: { instance := 2; loyalty_colon_left() }
|
||||
top: { instance := 2; loyalty_colon_top(7) }
|
||||
width: { instance := 2; loyalty_colon_width() }
|
||||
height: { instance := 2; loyalty_colon_height() }
|
||||
z index: 900
|
||||
visible: { instance := 2; card.loyalty_cost_15 != "" and loyalty_abilities_count() >= 7 }
|
||||
font:
|
||||
name: Beleren Bold
|
||||
size: { instance := 2; loyalty_colon_font_size() }
|
||||
color: { body2_font_color() }
|
||||
alignment: center middle
|
||||
colon 16:
|
||||
left: { instance := 2; loyalty_colon_left() }
|
||||
top: { instance := 2; loyalty_colon_top(8) }
|
||||
width: { instance := 2; loyalty_colon_width() }
|
||||
height: { instance := 2; loyalty_colon_height() }
|
||||
z index: 900
|
||||
visible: { instance := 2; card.loyalty_cost_16 != "" and loyalty_abilities_count() >= 8 }
|
||||
font:
|
||||
name: Beleren Bold
|
||||
size: { instance := 2; loyalty_colon_font_size() }
|
||||
color: { body2_font_color() }
|
||||
alignment: center middle
|
||||
textbox stripe 9:
|
||||
left: { instance := 2; a_left() }
|
||||
width: { instance := 2; a_width() }
|
||||
top: { instance := 2; a_top() }
|
||||
bottom: { instance := 2; round_near(loyalty_stripe_separator_top(1)) + 0.5 }
|
||||
z index: 710
|
||||
visible: { instance := 2; loyalty_abilities_count() >= 2 }
|
||||
render style: image
|
||||
image: { instance := 2; loyalty_stripe_image() }
|
||||
mask: { instance := 2; loyalty_stripe_mask(1) }
|
||||
textbox stripe 10:
|
||||
left: { instance := 2; a_left() }
|
||||
width: { instance := 2; a_width() }
|
||||
top: { instance := 2; loyalty_stripe_separator_top(2) + loyalty_stripe_separator_height() }
|
||||
bottom: { instance := 2; round_near(if loyalty_abilities_count() >= 4 then loyalty_stripe_separator_top(3) else a_bottom()) + 0.5 }
|
||||
z index: 710
|
||||
visible: { instance := 2; loyalty_abilities_count() >= 3 }
|
||||
render style: image
|
||||
image: { instance := 2; loyalty_stripe_image() }
|
||||
mask: { instance := 2; loyalty_stripe_mask(2) }
|
||||
textbox stripe 11:
|
||||
left: { instance := 2; a_left() }
|
||||
width: { instance := 2; a_width() }
|
||||
top: { instance := 2; loyalty_stripe_separator_top(4) + loyalty_stripe_separator_height() }
|
||||
bottom: { instance := 2; round_near(if loyalty_abilities_count() >= 6 then loyalty_stripe_separator_top(5) else a_bottom()) + 0.5 }
|
||||
z index: 710
|
||||
visible: { instance := 2; loyalty_abilities_count() >= 5 }
|
||||
render style: image
|
||||
image: { instance := 2; loyalty_stripe_image() }
|
||||
mask: { instance := 2; loyalty_stripe_mask(3) }
|
||||
textbox stripe 12:
|
||||
left: { instance := 2; a_left() }
|
||||
width: { instance := 2; a_width() }
|
||||
top: { instance := 2; loyalty_stripe_separator_top(6) + loyalty_stripe_separator_height() }
|
||||
bottom: { instance := 2; round_near(if loyalty_abilities_count() >= 8 then loyalty_stripe_separator_top(7) else a_bottom()) + 0.5 }
|
||||
z index: 710
|
||||
visible: { instance := 2; loyalty_abilities_count() >= 7 }
|
||||
render style: image
|
||||
image: { instance := 2; loyalty_stripe_image() }
|
||||
mask: { instance := 2; loyalty_stripe_mask(4) }
|
||||
textbox stripe separator 9:
|
||||
left: { instance := 2; a_left() }
|
||||
width: { instance := 2; a_width() }
|
||||
top: { instance := 2; round_near(loyalty_stripe_separator_top(1)) }
|
||||
bottom: { instance := 2; round_near(loyalty_stripe_separator_top(1) + loyalty_stripe_separator_height()) + 0.5 }
|
||||
z index: 710
|
||||
visible: { instance := 2; loyalty_abilities_count() >= 2 }
|
||||
render style: image
|
||||
image: { instance := 2; loyalty_stripe_separator_image(1) }
|
||||
mask: { instance := 2; loyalty_stripe_separator_mask(1) }
|
||||
textbox stripe separator 10:
|
||||
left: { instance := 2; a_left() }
|
||||
width: { instance := 2; a_width() }
|
||||
top: { instance := 2; round_near(loyalty_stripe_separator_top(2)) }
|
||||
bottom: { instance := 2; round_near(loyalty_stripe_separator_top(2) + loyalty_stripe_separator_height()) + 0.5 }
|
||||
z index: 710
|
||||
visible: { instance := 2; loyalty_abilities_count() >= 3 }
|
||||
render style: image
|
||||
image: { instance := 2; loyalty_stripe_separator_image(2) }
|
||||
mask: { instance := 2; loyalty_stripe_separator_mask(2) }
|
||||
textbox stripe separator 11:
|
||||
left: { instance := 2; a_left() }
|
||||
width: { instance := 2; a_width() }
|
||||
top: { instance := 2; round_near(loyalty_stripe_separator_top(3)) }
|
||||
bottom: { instance := 2; round_near(loyalty_stripe_separator_top(3) + loyalty_stripe_separator_height()) + 0.5 }
|
||||
z index: 710
|
||||
visible: { instance := 2; loyalty_abilities_count() >= 4 }
|
||||
render style: image
|
||||
image: { instance := 2; loyalty_stripe_separator_image(3) }
|
||||
mask: { instance := 2; loyalty_stripe_separator_mask(3) }
|
||||
textbox stripe separator 12:
|
||||
left: { instance := 2; a_left() }
|
||||
width: { instance := 2; a_width() }
|
||||
top: { instance := 2; round_near(loyalty_stripe_separator_top(4)) }
|
||||
bottom: { instance := 2; round_near(loyalty_stripe_separator_top(4) + loyalty_stripe_separator_height()) + 0.5 }
|
||||
z index: 710
|
||||
visible: { instance := 2; loyalty_abilities_count() >= 5 }
|
||||
render style: image
|
||||
image: { instance := 2; loyalty_stripe_separator_image(4) }
|
||||
mask: { instance := 2; loyalty_stripe_separator_mask(4) }
|
||||
textbox stripe separator 13:
|
||||
left: { instance := 2; a_left() }
|
||||
width: { instance := 2; a_width() }
|
||||
top: { instance := 2; round_near(loyalty_stripe_separator_top(5)) }
|
||||
bottom: { instance := 2; round_near(loyalty_stripe_separator_top(5) + loyalty_stripe_separator_height()) + 0.5 }
|
||||
z index: 710
|
||||
visible: { instance := 2; loyalty_abilities_count() >= 6 }
|
||||
render style: image
|
||||
image: { instance := 2; loyalty_stripe_separator_image(5) }
|
||||
mask: { instance := 2; loyalty_stripe_separator_mask(5) }
|
||||
textbox stripe separator 14:
|
||||
left: { instance := 2; a_left() }
|
||||
width: { instance := 2; a_width() }
|
||||
top: { instance := 2; round_near(loyalty_stripe_separator_top(6)) }
|
||||
bottom: { instance := 2; round_near(loyalty_stripe_separator_top(6) + loyalty_stripe_separator_height()) + 0.5 }
|
||||
z index: 710
|
||||
visible: { instance := 2; loyalty_abilities_count() >= 7 }
|
||||
render style: image
|
||||
image: { instance := 2; loyalty_stripe_separator_image(6) }
|
||||
mask: { instance := 2; loyalty_stripe_separator_mask(6) }
|
||||
textbox stripe separator 15:
|
||||
left: { instance := 2; a_left() }
|
||||
width: { instance := 2; a_width() }
|
||||
top: { instance := 2; round_near(loyalty_stripe_separator_top(7)) }
|
||||
bottom: { instance := 2; round_near(loyalty_stripe_separator_top(7) + loyalty_stripe_separator_height()) + 0.5 }
|
||||
z index: 710
|
||||
visible: { instance := 2; loyalty_abilities_count() >= 8 }
|
||||
render style: image
|
||||
image: { instance := 2; loyalty_stripe_separator_image(7) }
|
||||
mask: { instance := 2; loyalty_stripe_separator_mask(7) }
|
||||
textbox background 2:
|
||||
left: { instance := 2; a_left() }
|
||||
width: { instance := 2; a_width() }
|
||||
top: { instance := 2; a_top() }
|
||||
bottom: { instance := 2; a_bottom() }
|
||||
z index: 700
|
||||
render style: image
|
||||
image: { instance := 2; loyalty_textbox_background_image() }
|
||||
mask: { instance := 2; loyalty_textbox_mask() }
|
||||
card style:
|
||||
loyalty 2:
|
||||
left: { instance := 2; card.loyalty_box_2; loyalty_left() }
|
||||
top: { instance := 2; loyalty_top() }
|
||||
width: { instance := 2; card.loyalty_box_2; loyalty_width() }
|
||||
height: { instance := 2; loyalty_height() }
|
||||
z index: 900
|
||||
alignment: center middle shrink-overflow
|
||||
font:
|
||||
name: { name2_font() }
|
||||
size: { instance := 2; card.loyalty_box_2; loyalty_font_size() }
|
||||
color: white
|
||||
loyalty box 2:
|
||||
left: { instance := 2; loyalty_box_left() }
|
||||
top: { instance := 2; loyalty_box_top() }
|
||||
width: { instance := 2; if card.loyalty_2 == "" then 0 else loyalty_box_width() }
|
||||
height: { instance := 2; loyalty_box_height() }
|
||||
z index: 830
|
||||
visible: { instance := 2; card.loyalty_2 != "" }
|
||||
include file: /magic.mse-game/loyalty/menu_choice_images
|
||||
render style: image
|
||||
image: { instance := 2; loyalty_box_image() }
|
||||
loyalty cost 9:
|
||||
left: { instance := 2; loyalty_cost_left() }
|
||||
top: { instance := 2; card.loyalty_cost_box_9; loyalty_cost_top(1) }
|
||||
width: { instance := 2; loyalty_cost_width() }
|
||||
height: { instance := 2; loyalty_cost_height(1) }
|
||||
z index: 900
|
||||
alignment: center middle shrink-overflow
|
||||
font:
|
||||
name: { name2_font() }
|
||||
size: { instance := 2; loyalty_cost_font_size() }
|
||||
scale down to: 7
|
||||
color: white
|
||||
loyalty cost 10:
|
||||
left: { instance := 2; loyalty_cost_left() }
|
||||
top: { instance := 2; card.loyalty_cost_box_10; loyalty_cost_top(2) }
|
||||
width: { instance := 2; loyalty_cost_width() }
|
||||
height: { instance := 2; loyalty_cost_height(2) }
|
||||
z index: 900
|
||||
alignment: center middle shrink-overflow
|
||||
font:
|
||||
name: { name2_font() }
|
||||
size: { instance := 2; loyalty_cost_font_size() }
|
||||
scale down to: 7
|
||||
color: white
|
||||
loyalty cost 11:
|
||||
left: { instance := 2; loyalty_cost_left() }
|
||||
top: { instance := 2; card.loyalty_cost_box_11; loyalty_cost_top(3) }
|
||||
width: { instance := 2; loyalty_cost_width() }
|
||||
height: { instance := 2; loyalty_cost_height(3) }
|
||||
z index: 900
|
||||
alignment: center middle shrink-overflow
|
||||
font:
|
||||
name: { name2_font() }
|
||||
size: { instance := 2; loyalty_cost_font_size() }
|
||||
scale down to: 7
|
||||
color: white
|
||||
loyalty cost 12:
|
||||
left: { instance := 2; loyalty_cost_left() }
|
||||
top: { instance := 2; card.loyalty_cost_box_12; loyalty_cost_top(4) }
|
||||
width: { instance := 2; loyalty_cost_width() }
|
||||
height: { instance := 2; loyalty_cost_height(4) }
|
||||
z index: 900
|
||||
alignment: center middle shrink-overflow
|
||||
font:
|
||||
name: { name2_font() }
|
||||
size: { instance := 2; loyalty_cost_font_size() }
|
||||
scale down to: 7
|
||||
color: white
|
||||
loyalty cost 13:
|
||||
left: { instance := 2; loyalty_cost_left() }
|
||||
top: { instance := 2; card.loyalty_cost_box_13; loyalty_cost_top(5) }
|
||||
width: { instance := 2; loyalty_cost_width() }
|
||||
height: { instance := 2; loyalty_cost_height(5) }
|
||||
z index: 900
|
||||
alignment: center middle shrink-overflow
|
||||
font:
|
||||
name: { name2_font() }
|
||||
size: { instance := 2; loyalty_cost_font_size() }
|
||||
scale down to: 7
|
||||
color: white
|
||||
loyalty cost 14:
|
||||
left: { instance := 2; loyalty_cost_left() }
|
||||
top: { instance := 2; card.loyalty_cost_box_14; loyalty_cost_top(6) }
|
||||
width: { instance := 2; loyalty_cost_width() }
|
||||
height: { instance := 2; loyalty_cost_height(6) }
|
||||
z index: 900
|
||||
alignment: center middle shrink-overflow
|
||||
font:
|
||||
name: { name2_font() }
|
||||
size: { instance := 2; loyalty_cost_font_size() }
|
||||
scale down to: 7
|
||||
color: white
|
||||
loyalty cost 15:
|
||||
left: { instance := 2; loyalty_cost_left() }
|
||||
top: { instance := 2; card.loyalty_cost_box_15; loyalty_cost_top(7) }
|
||||
width: { instance := 2; loyalty_cost_width() }
|
||||
height: { instance := 2; loyalty_cost_height(7) }
|
||||
z index: 900
|
||||
alignment: center middle shrink-overflow
|
||||
font:
|
||||
name: { name2_font() }
|
||||
size: { instance := 2; loyalty_cost_font_size() }
|
||||
scale down to: 7
|
||||
color: white
|
||||
loyalty cost 16:
|
||||
left: { instance := 2; loyalty_cost_left() }
|
||||
top: { instance := 2; card.loyalty_cost_box_16; loyalty_cost_top(8) }
|
||||
width: { instance := 2; loyalty_cost_width() }
|
||||
height: { instance := 2; loyalty_cost_height(8) }
|
||||
z index: 900
|
||||
alignment: center middle shrink-overflow
|
||||
font:
|
||||
name: { name2_font() }
|
||||
size: { instance := 2; loyalty_cost_font_size() }
|
||||
scale down to: 7
|
||||
color: white
|
||||
loyalty cost box 9:
|
||||
left: { instance := 2; loyalty_cost_box_left() }
|
||||
top: { instance := 2; loyalty_cost_box_top(1) }
|
||||
width: { instance := 2; loyalty_cost_box_width() }
|
||||
height: { instance := 2; loyalty_cost_box_height(1) }
|
||||
z index: 830
|
||||
visible: { instance := 2; card.loyalty_cost_9 != "" and loyalty_abilities_count() >= 1 }
|
||||
include file: /magic.mse-game/loyalty/menu_choice_images_cost
|
||||
render style: image
|
||||
image: { instance := 2; loyalty_cost_box_image(1) }
|
||||
loyalty cost box 10:
|
||||
left: { instance := 2; loyalty_cost_box_left() }
|
||||
top: { instance := 2; loyalty_cost_box_top(2) }
|
||||
width: { instance := 2; loyalty_cost_box_width() }
|
||||
height: { instance := 2; loyalty_cost_box_height(2) }
|
||||
z index: 830
|
||||
visible: { instance := 2; card.loyalty_cost_10 != "" and loyalty_abilities_count() >= 2 }
|
||||
include file: /magic.mse-game/loyalty/menu_choice_images_cost
|
||||
render style: image
|
||||
image: { instance := 2; loyalty_cost_box_image(2) }
|
||||
loyalty cost box 11:
|
||||
left: { instance := 2; loyalty_cost_box_left() }
|
||||
top: { instance := 2; loyalty_cost_box_top(3) }
|
||||
width: { instance := 2; loyalty_cost_box_width() }
|
||||
height: { instance := 2; loyalty_cost_box_height(3) }
|
||||
z index: 830
|
||||
visible: { instance := 2; card.loyalty_cost_11 != "" and loyalty_abilities_count() >= 3}
|
||||
include file: /magic.mse-game/loyalty/menu_choice_images_cost
|
||||
render style: image
|
||||
image: { instance := 2; loyalty_cost_box_image(3) }
|
||||
loyalty cost box 12:
|
||||
left: { instance := 2; loyalty_cost_box_left() }
|
||||
top: { instance := 2; loyalty_cost_box_top(4) }
|
||||
width: { instance := 2; loyalty_cost_box_width() }
|
||||
height: { instance := 2; loyalty_cost_box_height(4) }
|
||||
z index: 830
|
||||
visible: { instance := 2; card.loyalty_cost_12 != "" and loyalty_abilities_count() >= 4 }
|
||||
include file: /magic.mse-game/loyalty/menu_choice_images_cost
|
||||
render style: image
|
||||
image: { instance := 2; loyalty_cost_box_image(4) }
|
||||
loyalty cost box 13:
|
||||
left: { instance := 2; loyalty_cost_box_left() }
|
||||
top: { instance := 2; loyalty_cost_box_top(5) }
|
||||
width: { instance := 2; loyalty_cost_box_width() }
|
||||
height: { instance := 2; loyalty_cost_box_height(5) }
|
||||
z index: 830
|
||||
visible: { instance := 2; card.loyalty_cost_13 != "" and loyalty_abilities_count() >= 5 }
|
||||
include file: /magic.mse-game/loyalty/menu_choice_images_cost
|
||||
render style: image
|
||||
image: { instance := 2; loyalty_cost_box_image(5) }
|
||||
loyalty cost box 14:
|
||||
left: { instance := 2; loyalty_cost_box_left() }
|
||||
top: { instance := 2; loyalty_cost_box_top(6) }
|
||||
width: { instance := 2; loyalty_cost_box_width() }
|
||||
height: { instance := 2; loyalty_cost_box_height(6) }
|
||||
z index: 830
|
||||
visible: { instance := 2; card.loyalty_cost_14 != "" and loyalty_abilities_count() >= 6 }
|
||||
include file: /magic.mse-game/loyalty/menu_choice_images_cost
|
||||
render style: image
|
||||
image: { instance := 2; loyalty_cost_box_image(6) }
|
||||
loyalty cost box 15:
|
||||
left: { instance := 2; loyalty_cost_box_left() }
|
||||
top: { instance := 2; loyalty_cost_box_top(7) }
|
||||
width: { instance := 2; loyalty_cost_box_width() }
|
||||
height: { instance := 2; loyalty_cost_box_height(7) }
|
||||
z index: 830
|
||||
visible: { instance := 2; card.loyalty_cost_15 != "" and loyalty_abilities_count() >= 7 }
|
||||
include file: /magic.mse-game/loyalty/menu_choice_images_cost
|
||||
render style: image
|
||||
image: { instance := 2; loyalty_cost_box_image(7) }
|
||||
loyalty cost box 16:
|
||||
left: { instance := 2; loyalty_cost_box_left() }
|
||||
top: { instance := 2; loyalty_cost_box_top(8) }
|
||||
width: { instance := 2; loyalty_cost_box_width() }
|
||||
height: { instance := 2; loyalty_cost_box_height(8) }
|
||||
z index: 830
|
||||
visible: { instance := 2; card.loyalty_cost_16 != "" and loyalty_abilities_count() >= 8 }
|
||||
include file: /magic.mse-game/loyalty/menu_choice_images_cost
|
||||
render style: image
|
||||
image: { instance := 2; loyalty_cost_box_image(8) }
|
||||
12
data/magic-modules.mse-include/loyalty/choices
Normal file
@@ -0,0 +1,12 @@
|
||||
choice:
|
||||
name: none
|
||||
type: radio
|
||||
choice:
|
||||
name: loyalty
|
||||
type: radio
|
||||
choice:
|
||||
name: defense
|
||||
type: radio
|
||||
line below: true
|
||||
choice: shadow
|
||||
script: require_exclusive_choice(value, choices: "none, loyalty, defense")
|
||||
21
data/magic-modules.mse-include/loyalty/choices_cost
Normal file
@@ -0,0 +1,21 @@
|
||||
choice:
|
||||
name: none
|
||||
type: radio
|
||||
choice:
|
||||
name: anti ult
|
||||
type: radio
|
||||
choice:
|
||||
name: +
|
||||
type: radio
|
||||
choice:
|
||||
name: 0
|
||||
type: radio
|
||||
choice:
|
||||
name: -
|
||||
type: radio
|
||||
choice:
|
||||
name: ult
|
||||
type: radio
|
||||
line below: true
|
||||
choice: shadow
|
||||
script: require_exclusive_choice(value, choices: "none, anti ult, +, 0, -, ult")
|
||||
BIN
data/magic-modules.mse-include/loyalty/color.png
Normal file
|
After Width: | Height: | Size: 539 B |
BIN
data/magic-modules.mse-include/loyalty/default_textbox_mask.png
Normal file
|
After Width: | Height: | Size: 10 KiB |
|
After Width: | Height: | Size: 10 KiB |
|
After Width: | Height: | Size: 10 KiB |
|
After Width: | Height: | Size: 10 KiB |
BIN
data/magic-modules.mse-include/loyalty/defense shadow.png
Normal file
|
After Width: | Height: | Size: 20 KiB |
BIN
data/magic-modules.mse-include/loyalty/defense.png
Normal file
|
After Width: | Height: | Size: 19 KiB |
65
data/magic-modules.mse-include/loyalty/init_script
Normal file
@@ -0,0 +1,65 @@
|
||||
mainframe_walker := { loyalty_text_field_1() <= 1 }
|
||||
mainframe_walkerb := { loyalty_text_field_1() == 2 }
|
||||
mainframe_walkerc := { loyalty_text_field_1() == 3 }
|
||||
mainframe_walkerd := { loyalty_text_field_1() == 4 }
|
||||
mainframe_walker_text_script :=
|
||||
{
|
||||
count := loyalty_abilities_count(instance: 1)
|
||||
if count == 8 then combined_editor(field1: card.level_1_text, separator1: "<line>\n</line>", field2: card.level_2_text, separator2: "<line>\n</line>", field3: card.level_3_text, separator3: "<line>\n</line>", field4: card.level_4_text, separator4: "<line>\n</line>", field5: card.level_5_text, separator5: "<line>\n</line>", field6: card.level_6_text, separator6: "<line>\n</line>", field7: card.level_7_text, separator7: "<line>\n</line>", field8: card.level_8_text)
|
||||
else if count == 7 then combined_editor(field1: card.level_1_text, separator1: "<line>\n</line>", field2: card.level_2_text, separator2: "<line>\n</line>", field3: card.level_3_text, separator3: "<line>\n</line>", field4: card.level_4_text, separator4: "<line>\n</line>", field5: card.level_5_text, separator5: "<line>\n</line>", field6: card.level_6_text, separator6: "<line>\n</line>", field7: card.level_7_text)
|
||||
else if count == 6 then combined_editor(field1: card.level_1_text, separator1: "<line>\n</line>", field2: card.level_2_text, separator2: "<line>\n</line>", field3: card.level_3_text, separator3: "<line>\n</line>", field4: card.level_4_text, separator4: "<line>\n</line>", field5: card.level_5_text, separator5: "<line>\n</line>", field6: card.level_6_text)
|
||||
else if count == 5 then combined_editor(field1: card.level_1_text, separator1: "<line>\n</line>", field2: card.level_2_text, separator2: "<line>\n</line>", field3: card.level_3_text, separator3: "<line>\n</line>", field4: card.level_4_text, separator4: "<line>\n</line>", field5: card.level_5_text)
|
||||
else if count == 4 then combined_editor(field1: card.level_1_text, separator1: "<line>\n</line>", field2: card.level_2_text, separator2: "<line>\n</line>", field3: card.level_3_text, separator3: "<line>\n</line>", field4: card.level_4_text)
|
||||
else if count == 3 then combined_editor(field1: card.level_1_text, separator1: "<line>\n</line>", field2: card.level_2_text, separator2: "<line>\n</line>", field3: card.level_3_text)
|
||||
else if count == 2 then combined_editor(field1: card.level_1_text, separator1: "<line>\n</line>", field2: card.level_2_text)
|
||||
else forward_editor(field: card.level_1_text)
|
||||
}
|
||||
mainframe_walker_text_scriptb :=
|
||||
{
|
||||
count := loyalty_abilities_count(instance: 1)
|
||||
if count == 8 then combined_editor(field1: card.level_1_text, separator1: "<line>\n</line>", field2: card.level_2_text, separator2: "<line>\n</line>", field3: card.level_3_text, separator3: "<line>\n</line>", field4: card.level_4_text, separator4: "<line>\n</line>", field5: card.level_5_text, separator5: "<line>\n</line>", field6: card.level_6_text, separator6: "<line>\n</line>", field7: card.level_7_text, separator7: "<line>\n</line>", field8: card.level_8_text)
|
||||
else if count == 7 then combined_editor(field1: card.level_1_text, separator1: "<line>\n</line>", field2: card.level_2_text, separator2: "<line>\n</line>", field3: card.level_3_text, separator3: "<line>\n</line>", field4: card.level_4_text, separator4: "<line>\n</line>", field5: card.level_5_text, separator5: "<line>\n</line>", field6: card.level_6_text, separator6: "<line>\n</line>", field7: card.level_7_text)
|
||||
else if count == 6 then combined_editor(field1: card.level_1_text, separator1: "<line>\n</line>", field2: card.level_2_text, separator2: "<line>\n</line>", field3: card.level_3_text, separator3: "<line>\n</line>", field4: card.level_4_text, separator4: "<line>\n</line>", field5: card.level_5_text, separator5: "<line>\n</line>", field6: card.level_6_text)
|
||||
else if count == 5 then combined_editor(field1: card.level_1_text, separator1: "<line>\n</line>", field2: card.level_2_text, separator2: "<line>\n</line>", field3: card.level_3_text, separator3: "<line>\n</line>", field4: card.level_4_text, separator4: "<line>\n</line>", field5: card.level_5_text)
|
||||
else if count == 4 then combined_editor(field1: card.level_1_text, separator1: "<line>\n</line>", field2: card.level_2_text, separator2: "<line>\n</line>", field3: card.level_3_text, separator3: "<line>\n</line>", field4: card.level_4_text)
|
||||
else if count == 3 then combined_editor(field1: card.level_1_text, separator1: "<line>\n</line>", field2: card.level_2_text, separator2: "<line>\n</line>", field3: card.level_3_text)
|
||||
else if count == 2 then combined_editor(field1: card.level_1_text, separator1: "<line>\n</line>", field2: card.level_2_text)
|
||||
else forward_editor(field: card.level_1_text)
|
||||
}
|
||||
mainframe_walker_text_scriptc :=
|
||||
{
|
||||
count := loyalty_abilities_count(instance: 1)
|
||||
if count == 8 then combined_editor(field1: card.level_1_text, separator1: "<line>\n</line>", field2: card.level_2_text, separator2: "<line>\n</line>", field3: card.level_3_text, separator3: "<line>\n</line>", field4: card.level_4_text, separator4: "<line>\n</line>", field5: card.level_5_text, separator5: "<line>\n</line>", field6: card.level_6_text, separator6: "<line>\n</line>", field7: card.level_7_text, separator7: "<line>\n</line>", field8: card.level_8_text)
|
||||
else if count == 7 then combined_editor(field1: card.level_1_text, separator1: "<line>\n</line>", field2: card.level_2_text, separator2: "<line>\n</line>", field3: card.level_3_text, separator3: "<line>\n</line>", field4: card.level_4_text, separator4: "<line>\n</line>", field5: card.level_5_text, separator5: "<line>\n</line>", field6: card.level_6_text, separator6: "<line>\n</line>", field7: card.level_7_text)
|
||||
else if count == 6 then combined_editor(field1: card.level_1_text, separator1: "<line>\n</line>", field2: card.level_2_text, separator2: "<line>\n</line>", field3: card.level_3_text, separator3: "<line>\n</line>", field4: card.level_4_text, separator4: "<line>\n</line>", field5: card.level_5_text, separator5: "<line>\n</line>", field6: card.level_6_text)
|
||||
else if count == 5 then combined_editor(field1: card.level_1_text, separator1: "<line>\n</line>", field2: card.level_2_text, separator2: "<line>\n</line>", field3: card.level_3_text, separator3: "<line>\n</line>", field4: card.level_4_text, separator4: "<line>\n</line>", field5: card.level_5_text)
|
||||
else if count == 4 then combined_editor(field1: card.level_1_text, separator1: "<line>\n</line>", field2: card.level_2_text, separator2: "<line>\n</line>", field3: card.level_3_text, separator3: "<line>\n</line>", field4: card.level_4_text)
|
||||
else if count == 3 then combined_editor(field1: card.level_1_text, separator1: "<line>\n</line>", field2: card.level_2_text, separator2: "<line>\n</line>", field3: card.level_3_text)
|
||||
else if count == 2 then combined_editor(field1: card.level_1_text, separator1: "<line>\n</line>", field2: card.level_2_text)
|
||||
else forward_editor(field: card.level_1_text)
|
||||
}
|
||||
mainframe_walker_text_scriptd :=
|
||||
{
|
||||
count := loyalty_abilities_count(instance: 1)
|
||||
if count == 8 then combined_editor(field1: card.level_1_text, separator1: "<line>\n</line>", field2: card.level_2_text, separator2: "<line>\n</line>", field3: card.level_3_text, separator3: "<line>\n</line>", field4: card.level_4_text, separator4: "<line>\n</line>", field5: card.level_5_text, separator5: "<line>\n</line>", field6: card.level_6_text, separator6: "<line>\n</line>", field7: card.level_7_text, separator7: "<line>\n</line>", field8: card.level_8_text)
|
||||
else if count == 7 then combined_editor(field1: card.level_1_text, separator1: "<line>\n</line>", field2: card.level_2_text, separator2: "<line>\n</line>", field3: card.level_3_text, separator3: "<line>\n</line>", field4: card.level_4_text, separator4: "<line>\n</line>", field5: card.level_5_text, separator5: "<line>\n</line>", field6: card.level_6_text, separator6: "<line>\n</line>", field7: card.level_7_text)
|
||||
else if count == 6 then combined_editor(field1: card.level_1_text, separator1: "<line>\n</line>", field2: card.level_2_text, separator2: "<line>\n</line>", field3: card.level_3_text, separator3: "<line>\n</line>", field4: card.level_4_text, separator4: "<line>\n</line>", field5: card.level_5_text, separator5: "<line>\n</line>", field6: card.level_6_text)
|
||||
else if count == 5 then combined_editor(field1: card.level_1_text, separator1: "<line>\n</line>", field2: card.level_2_text, separator2: "<line>\n</line>", field3: card.level_3_text, separator3: "<line>\n</line>", field4: card.level_4_text, separator4: "<line>\n</line>", field5: card.level_5_text)
|
||||
else if count == 4 then combined_editor(field1: card.level_1_text, separator1: "<line>\n</line>", field2: card.level_2_text, separator2: "<line>\n</line>", field3: card.level_3_text, separator3: "<line>\n</line>", field4: card.level_4_text)
|
||||
else if count == 3 then combined_editor(field1: card.level_1_text, separator1: "<line>\n</line>", field2: card.level_2_text, separator2: "<line>\n</line>", field3: card.level_3_text)
|
||||
else if count == 2 then combined_editor(field1: card.level_1_text, separator1: "<line>\n</line>", field2: card.level_2_text)
|
||||
else forward_editor(field: card.level_1_text)
|
||||
}
|
||||
margin_left :=
|
||||
{
|
||||
number := to_int(replace(input, match: "lv", replace: "")) or else 999
|
||||
if number > 8 or card["loyalty_cost_" + number] == "" then 0
|
||||
else to_int(190 * r_width(instance: 1) + (loyalty_cost_offset_left_1() + loyalty_cost_offset_width_1() + loyalty_cost_offset_text_margin_1()) * 10)
|
||||
}
|
||||
text_filter := text_filter + { apply_margins(input, name: margin_code) } + { add_spacers(input, name: margin_code) }
|
||||
add_spacers :=
|
||||
{
|
||||
#The 'then ""' has a zero-width space inside
|
||||
if input == "" and loyalty_level_is_active(name) then ""
|
||||
else input
|
||||
}
|
||||
126
data/magic-modules.mse-include/loyalty/init_script_dfc
Normal file
@@ -0,0 +1,126 @@
|
||||
mainframe_walker := { loyalty_text_field_1() <= 1 or loyalty_text_field_2() <= 1 }
|
||||
mainframe_walkerb := { loyalty_text_field_1() == 2 or loyalty_text_field_2() == 2 }
|
||||
mainframe_walkerc := { loyalty_text_field_1() == 3 or loyalty_text_field_2() == 3 }
|
||||
mainframe_walkerd := { loyalty_text_field_1() == 4 or loyalty_text_field_2() == 4 }
|
||||
mainframe_walker_text_script :=
|
||||
{
|
||||
if loyalty_text_field_1() <= 1 then
|
||||
(
|
||||
count := loyalty_abilities_count(instance: 1)
|
||||
if count == 8 then combined_editor(field1: card.level_1_text, separator1: "<line>\n</line>", field2: card.level_2_text, separator2: "<line>\n</line>", field3: card.level_3_text, separator3: "<line>\n</line>", field4: card.level_4_text, separator4: "<line>\n</line>", field5: card.level_5_text, separator5: "<line>\n</line>", field6: card.level_6_text, separator6: "<line>\n</line>", field7: card.level_7_text, separator7: "<line>\n</line>", field8: card.level_8_text)
|
||||
else if count == 7 then combined_editor(field1: card.level_1_text, separator1: "<line>\n</line>", field2: card.level_2_text, separator2: "<line>\n</line>", field3: card.level_3_text, separator3: "<line>\n</line>", field4: card.level_4_text, separator4: "<line>\n</line>", field5: card.level_5_text, separator5: "<line>\n</line>", field6: card.level_6_text, separator6: "<line>\n</line>", field7: card.level_7_text)
|
||||
else if count == 6 then combined_editor(field1: card.level_1_text, separator1: "<line>\n</line>", field2: card.level_2_text, separator2: "<line>\n</line>", field3: card.level_3_text, separator3: "<line>\n</line>", field4: card.level_4_text, separator4: "<line>\n</line>", field5: card.level_5_text, separator5: "<line>\n</line>", field6: card.level_6_text)
|
||||
else if count == 5 then combined_editor(field1: card.level_1_text, separator1: "<line>\n</line>", field2: card.level_2_text, separator2: "<line>\n</line>", field3: card.level_3_text, separator3: "<line>\n</line>", field4: card.level_4_text, separator4: "<line>\n</line>", field5: card.level_5_text)
|
||||
else if count == 4 then combined_editor(field1: card.level_1_text, separator1: "<line>\n</line>", field2: card.level_2_text, separator2: "<line>\n</line>", field3: card.level_3_text, separator3: "<line>\n</line>", field4: card.level_4_text)
|
||||
else if count == 3 then combined_editor(field1: card.level_1_text, separator1: "<line>\n</line>", field2: card.level_2_text, separator2: "<line>\n</line>", field3: card.level_3_text)
|
||||
else if count == 2 then combined_editor(field1: card.level_1_text, separator1: "<line>\n</line>", field2: card.level_2_text)
|
||||
else forward_editor(field: card.level_1_text)
|
||||
)
|
||||
else
|
||||
(
|
||||
count := loyalty_abilities_count(instance: 2)
|
||||
if count == 8 then combined_editor(field1: card.level_9_text, separator1: "<line>\n</line>", field2: card.level_10_text, separator2: "<line>\n</line>", field3: card.level_11_text, separator3: "<line>\n</line>", field4: card.level_12_text, separator4: "<line>\n</line>", field5: card.level_13_text, separator5: "<line>\n</line>", field6: card.level_14_text, separator6: "<line>\n</line>", field7: card.level_15_text, separator7: "<line>\n</line>", field8: card.level_16_text)
|
||||
else if count == 7 then combined_editor(field1: card.level_9_text, separator1: "<line>\n</line>", field2: card.level_10_text, separator2: "<line>\n</line>", field3: card.level_11_text, separator3: "<line>\n</line>", field4: card.level_12_text, separator4: "<line>\n</line>", field5: card.level_13_text, separator5: "<line>\n</line>", field6: card.level_14_text, separator6: "<line>\n</line>", field7: card.level_15_text)
|
||||
else if count == 6 then combined_editor(field1: card.level_9_text, separator1: "<line>\n</line>", field2: card.level_10_text, separator2: "<line>\n</line>", field3: card.level_11_text, separator3: "<line>\n</line>", field4: card.level_12_text, separator4: "<line>\n</line>", field5: card.level_13_text, separator5: "<line>\n</line>", field6: card.level_14_text)
|
||||
else if count == 5 then combined_editor(field1: card.level_9_text, separator1: "<line>\n</line>", field2: card.level_10_text, separator2: "<line>\n</line>", field3: card.level_11_text, separator3: "<line>\n</line>", field4: card.level_12_text, separator4: "<line>\n</line>", field5: card.level_13_text)
|
||||
else if count == 4 then combined_editor(field1: card.level_9_text, separator1: "<line>\n</line>", field2: card.level_10_text, separator2: "<line>\n</line>", field3: card.level_11_text, separator3: "<line>\n</line>", field4: card.level_12_text)
|
||||
else if count == 3 then combined_editor(field1: card.level_9_text, separator1: "<line>\n</line>", field2: card.level_10_text, separator2: "<line>\n</line>", field3: card.level_11_text)
|
||||
else if count == 2 then combined_editor(field1: card.level_9_text, separator1: "<line>\n</line>", field2: card.level_10_text)
|
||||
else forward_editor(field: card.level_9_text)
|
||||
)
|
||||
}
|
||||
mainframe_walker_text_scriptb :=
|
||||
{
|
||||
if loyalty_text_field_1() == 2 then
|
||||
(
|
||||
count := loyalty_abilities_count(instance: 1)
|
||||
if count == 8 then combined_editor(field1: card.level_1_text, separator1: "<line>\n</line>", field2: card.level_2_text, separator2: "<line>\n</line>", field3: card.level_3_text, separator3: "<line>\n</line>", field4: card.level_4_text, separator4: "<line>\n</line>", field5: card.level_5_text, separator5: "<line>\n</line>", field6: card.level_6_text, separator6: "<line>\n</line>", field7: card.level_7_text, separator7: "<line>\n</line>", field8: card.level_8_text)
|
||||
else if count == 7 then combined_editor(field1: card.level_1_text, separator1: "<line>\n</line>", field2: card.level_2_text, separator2: "<line>\n</line>", field3: card.level_3_text, separator3: "<line>\n</line>", field4: card.level_4_text, separator4: "<line>\n</line>", field5: card.level_5_text, separator5: "<line>\n</line>", field6: card.level_6_text, separator6: "<line>\n</line>", field7: card.level_7_text)
|
||||
else if count == 6 then combined_editor(field1: card.level_1_text, separator1: "<line>\n</line>", field2: card.level_2_text, separator2: "<line>\n</line>", field3: card.level_3_text, separator3: "<line>\n</line>", field4: card.level_4_text, separator4: "<line>\n</line>", field5: card.level_5_text, separator5: "<line>\n</line>", field6: card.level_6_text)
|
||||
else if count == 5 then combined_editor(field1: card.level_1_text, separator1: "<line>\n</line>", field2: card.level_2_text, separator2: "<line>\n</line>", field3: card.level_3_text, separator3: "<line>\n</line>", field4: card.level_4_text, separator4: "<line>\n</line>", field5: card.level_5_text)
|
||||
else if count == 4 then combined_editor(field1: card.level_1_text, separator1: "<line>\n</line>", field2: card.level_2_text, separator2: "<line>\n</line>", field3: card.level_3_text, separator3: "<line>\n</line>", field4: card.level_4_text)
|
||||
else if count == 3 then combined_editor(field1: card.level_1_text, separator1: "<line>\n</line>", field2: card.level_2_text, separator2: "<line>\n</line>", field3: card.level_3_text)
|
||||
else if count == 2 then combined_editor(field1: card.level_1_text, separator1: "<line>\n</line>", field2: card.level_2_text)
|
||||
else forward_editor(field: card.level_1_text)
|
||||
)
|
||||
else
|
||||
(
|
||||
count := loyalty_abilities_count(instance: 2)
|
||||
if count == 8 then combined_editor(field1: card.level_9_text, separator1: "<line>\n</line>", field2: card.level_10_text, separator2: "<line>\n</line>", field3: card.level_11_text, separator3: "<line>\n</line>", field4: card.level_12_text, separator4: "<line>\n</line>", field5: card.level_13_text, separator5: "<line>\n</line>", field6: card.level_14_text, separator6: "<line>\n</line>", field7: card.level_15_text, separator7: "<line>\n</line>", field8: card.level_16_text)
|
||||
else if count == 7 then combined_editor(field1: card.level_9_text, separator1: "<line>\n</line>", field2: card.level_10_text, separator2: "<line>\n</line>", field3: card.level_11_text, separator3: "<line>\n</line>", field4: card.level_12_text, separator4: "<line>\n</line>", field5: card.level_13_text, separator5: "<line>\n</line>", field6: card.level_14_text, separator6: "<line>\n</line>", field7: card.level_15_text)
|
||||
else if count == 6 then combined_editor(field1: card.level_9_text, separator1: "<line>\n</line>", field2: card.level_10_text, separator2: "<line>\n</line>", field3: card.level_11_text, separator3: "<line>\n</line>", field4: card.level_12_text, separator4: "<line>\n</line>", field5: card.level_13_text, separator5: "<line>\n</line>", field6: card.level_14_text)
|
||||
else if count == 5 then combined_editor(field1: card.level_9_text, separator1: "<line>\n</line>", field2: card.level_10_text, separator2: "<line>\n</line>", field3: card.level_11_text, separator3: "<line>\n</line>", field4: card.level_12_text, separator4: "<line>\n</line>", field5: card.level_13_text)
|
||||
else if count == 4 then combined_editor(field1: card.level_9_text, separator1: "<line>\n</line>", field2: card.level_10_text, separator2: "<line>\n</line>", field3: card.level_11_text, separator3: "<line>\n</line>", field4: card.level_12_text)
|
||||
else if count == 3 then combined_editor(field1: card.level_9_text, separator1: "<line>\n</line>", field2: card.level_10_text, separator2: "<line>\n</line>", field3: card.level_11_text)
|
||||
else if count == 2 then combined_editor(field1: card.level_9_text, separator1: "<line>\n</line>", field2: card.level_10_text)
|
||||
else forward_editor(field: card.level_9_text)
|
||||
)
|
||||
}
|
||||
mainframe_walker_text_scriptc :=
|
||||
{
|
||||
if loyalty_text_field_1() == 3 then
|
||||
(
|
||||
count := loyalty_abilities_count(instance: 1)
|
||||
if count == 8 then combined_editor(field1: card.level_1_text, separator1: "<line>\n</line>", field2: card.level_2_text, separator2: "<line>\n</line>", field3: card.level_3_text, separator3: "<line>\n</line>", field4: card.level_4_text, separator4: "<line>\n</line>", field5: card.level_5_text, separator5: "<line>\n</line>", field6: card.level_6_text, separator6: "<line>\n</line>", field7: card.level_7_text, separator7: "<line>\n</line>", field8: card.level_8_text)
|
||||
else if count == 7 then combined_editor(field1: card.level_1_text, separator1: "<line>\n</line>", field2: card.level_2_text, separator2: "<line>\n</line>", field3: card.level_3_text, separator3: "<line>\n</line>", field4: card.level_4_text, separator4: "<line>\n</line>", field5: card.level_5_text, separator5: "<line>\n</line>", field6: card.level_6_text, separator6: "<line>\n</line>", field7: card.level_7_text)
|
||||
else if count == 6 then combined_editor(field1: card.level_1_text, separator1: "<line>\n</line>", field2: card.level_2_text, separator2: "<line>\n</line>", field3: card.level_3_text, separator3: "<line>\n</line>", field4: card.level_4_text, separator4: "<line>\n</line>", field5: card.level_5_text, separator5: "<line>\n</line>", field6: card.level_6_text)
|
||||
else if count == 5 then combined_editor(field1: card.level_1_text, separator1: "<line>\n</line>", field2: card.level_2_text, separator2: "<line>\n</line>", field3: card.level_3_text, separator3: "<line>\n</line>", field4: card.level_4_text, separator4: "<line>\n</line>", field5: card.level_5_text)
|
||||
else if count == 4 then combined_editor(field1: card.level_1_text, separator1: "<line>\n</line>", field2: card.level_2_text, separator2: "<line>\n</line>", field3: card.level_3_text, separator3: "<line>\n</line>", field4: card.level_4_text)
|
||||
else if count == 3 then combined_editor(field1: card.level_1_text, separator1: "<line>\n</line>", field2: card.level_2_text, separator2: "<line>\n</line>", field3: card.level_3_text)
|
||||
else if count == 2 then combined_editor(field1: card.level_1_text, separator1: "<line>\n</line>", field2: card.level_2_text)
|
||||
else forward_editor(field: card.level_1_text)
|
||||
)
|
||||
else
|
||||
(
|
||||
count := loyalty_abilities_count(instance: 2)
|
||||
if count == 8 then combined_editor(field1: card.level_9_text, separator1: "<line>\n</line>", field2: card.level_10_text, separator2: "<line>\n</line>", field3: card.level_11_text, separator3: "<line>\n</line>", field4: card.level_12_text, separator4: "<line>\n</line>", field5: card.level_13_text, separator5: "<line>\n</line>", field6: card.level_14_text, separator6: "<line>\n</line>", field7: card.level_15_text, separator7: "<line>\n</line>", field8: card.level_16_text)
|
||||
else if count == 7 then combined_editor(field1: card.level_9_text, separator1: "<line>\n</line>", field2: card.level_10_text, separator2: "<line>\n</line>", field3: card.level_11_text, separator3: "<line>\n</line>", field4: card.level_12_text, separator4: "<line>\n</line>", field5: card.level_13_text, separator5: "<line>\n</line>", field6: card.level_14_text, separator6: "<line>\n</line>", field7: card.level_15_text)
|
||||
else if count == 6 then combined_editor(field1: card.level_9_text, separator1: "<line>\n</line>", field2: card.level_10_text, separator2: "<line>\n</line>", field3: card.level_11_text, separator3: "<line>\n</line>", field4: card.level_12_text, separator4: "<line>\n</line>", field5: card.level_13_text, separator5: "<line>\n</line>", field6: card.level_14_text)
|
||||
else if count == 5 then combined_editor(field1: card.level_9_text, separator1: "<line>\n</line>", field2: card.level_10_text, separator2: "<line>\n</line>", field3: card.level_11_text, separator3: "<line>\n</line>", field4: card.level_12_text, separator4: "<line>\n</line>", field5: card.level_13_text)
|
||||
else if count == 4 then combined_editor(field1: card.level_9_text, separator1: "<line>\n</line>", field2: card.level_10_text, separator2: "<line>\n</line>", field3: card.level_11_text, separator3: "<line>\n</line>", field4: card.level_12_text)
|
||||
else if count == 3 then combined_editor(field1: card.level_9_text, separator1: "<line>\n</line>", field2: card.level_10_text, separator2: "<line>\n</line>", field3: card.level_11_text)
|
||||
else if count == 2 then combined_editor(field1: card.level_9_text, separator1: "<line>\n</line>", field2: card.level_10_text)
|
||||
else forward_editor(field: card.level_9_text)
|
||||
)
|
||||
}
|
||||
mainframe_walker_text_scriptd :=
|
||||
{
|
||||
if loyalty_text_field_1() == 4 then
|
||||
(
|
||||
count := loyalty_abilities_count(instance: 1)
|
||||
if count == 8 then combined_editor(field1: card.level_1_text, separator1: "<line>\n</line>", field2: card.level_2_text, separator2: "<line>\n</line>", field3: card.level_3_text, separator3: "<line>\n</line>", field4: card.level_4_text, separator4: "<line>\n</line>", field5: card.level_5_text, separator5: "<line>\n</line>", field6: card.level_6_text, separator6: "<line>\n</line>", field7: card.level_7_text, separator7: "<line>\n</line>", field8: card.level_8_text)
|
||||
else if count == 7 then combined_editor(field1: card.level_1_text, separator1: "<line>\n</line>", field2: card.level_2_text, separator2: "<line>\n</line>", field3: card.level_3_text, separator3: "<line>\n</line>", field4: card.level_4_text, separator4: "<line>\n</line>", field5: card.level_5_text, separator5: "<line>\n</line>", field6: card.level_6_text, separator6: "<line>\n</line>", field7: card.level_7_text)
|
||||
else if count == 6 then combined_editor(field1: card.level_1_text, separator1: "<line>\n</line>", field2: card.level_2_text, separator2: "<line>\n</line>", field3: card.level_3_text, separator3: "<line>\n</line>", field4: card.level_4_text, separator4: "<line>\n</line>", field5: card.level_5_text, separator5: "<line>\n</line>", field6: card.level_6_text)
|
||||
else if count == 5 then combined_editor(field1: card.level_1_text, separator1: "<line>\n</line>", field2: card.level_2_text, separator2: "<line>\n</line>", field3: card.level_3_text, separator3: "<line>\n</line>", field4: card.level_4_text, separator4: "<line>\n</line>", field5: card.level_5_text)
|
||||
else if count == 4 then combined_editor(field1: card.level_1_text, separator1: "<line>\n</line>", field2: card.level_2_text, separator2: "<line>\n</line>", field3: card.level_3_text, separator3: "<line>\n</line>", field4: card.level_4_text)
|
||||
else if count == 3 then combined_editor(field1: card.level_1_text, separator1: "<line>\n</line>", field2: card.level_2_text, separator2: "<line>\n</line>", field3: card.level_3_text)
|
||||
else if count == 2 then combined_editor(field1: card.level_1_text, separator1: "<line>\n</line>", field2: card.level_2_text)
|
||||
else forward_editor(field: card.level_1_text)
|
||||
)
|
||||
else
|
||||
(
|
||||
count := loyalty_abilities_count(instance: 2)
|
||||
if count == 8 then combined_editor(field1: card.level_9_text, separator1: "<line>\n</line>", field2: card.level_10_text, separator2: "<line>\n</line>", field3: card.level_11_text, separator3: "<line>\n</line>", field4: card.level_12_text, separator4: "<line>\n</line>", field5: card.level_13_text, separator5: "<line>\n</line>", field6: card.level_14_text, separator6: "<line>\n</line>", field7: card.level_15_text, separator7: "<line>\n</line>", field8: card.level_16_text)
|
||||
else if count == 7 then combined_editor(field1: card.level_9_text, separator1: "<line>\n</line>", field2: card.level_10_text, separator2: "<line>\n</line>", field3: card.level_11_text, separator3: "<line>\n</line>", field4: card.level_12_text, separator4: "<line>\n</line>", field5: card.level_13_text, separator5: "<line>\n</line>", field6: card.level_14_text, separator6: "<line>\n</line>", field7: card.level_15_text)
|
||||
else if count == 6 then combined_editor(field1: card.level_9_text, separator1: "<line>\n</line>", field2: card.level_10_text, separator2: "<line>\n</line>", field3: card.level_11_text, separator3: "<line>\n</line>", field4: card.level_12_text, separator4: "<line>\n</line>", field5: card.level_13_text, separator5: "<line>\n</line>", field6: card.level_14_text)
|
||||
else if count == 5 then combined_editor(field1: card.level_9_text, separator1: "<line>\n</line>", field2: card.level_10_text, separator2: "<line>\n</line>", field3: card.level_11_text, separator3: "<line>\n</line>", field4: card.level_12_text, separator4: "<line>\n</line>", field5: card.level_13_text)
|
||||
else if count == 4 then combined_editor(field1: card.level_9_text, separator1: "<line>\n</line>", field2: card.level_10_text, separator2: "<line>\n</line>", field3: card.level_11_text, separator3: "<line>\n</line>", field4: card.level_12_text)
|
||||
else if count == 3 then combined_editor(field1: card.level_9_text, separator1: "<line>\n</line>", field2: card.level_10_text, separator2: "<line>\n</line>", field3: card.level_11_text)
|
||||
else if count == 2 then combined_editor(field1: card.level_9_text, separator1: "<line>\n</line>", field2: card.level_10_text)
|
||||
else forward_editor(field: card.level_9_text)
|
||||
)
|
||||
}
|
||||
margin_left :=
|
||||
{
|
||||
number := to_int(replace(input, match: "lv", replace: "")) or else 999
|
||||
if number > 16 or card["loyalty_cost_" + number] == "" then 0 else (
|
||||
instance := if number < 9 then 1 else if number < 17 then 2 else 3
|
||||
to_int(190 * r_width() + (loyalty_cost_offset_left() + loyalty_cost_offset_width() + loyalty_cost_offset_text_margin()) * 10))
|
||||
}
|
||||
text_filter := text_filter + { apply_margins(input, name: margin_code) } + { add_spacers(input, name: margin_code) }
|
||||
add_spacers :=
|
||||
{
|
||||
#The 'then ""' has a zero-width space inside
|
||||
if input == "" and loyalty_level_is_active(name) then ""
|
||||
else input
|
||||
}
|
||||
BIN
data/magic-modules.mse-include/loyalty/loyalty cost + shadow.png
Normal file
|
After Width: | Height: | Size: 14 KiB |
BIN
data/magic-modules.mse-include/loyalty/loyalty cost +.png
Normal file
|
After Width: | Height: | Size: 13 KiB |
BIN
data/magic-modules.mse-include/loyalty/loyalty cost - shadow.png
Normal file
|
After Width: | Height: | Size: 14 KiB |
BIN
data/magic-modules.mse-include/loyalty/loyalty cost -.png
Normal file
|
After Width: | Height: | Size: 13 KiB |
BIN
data/magic-modules.mse-include/loyalty/loyalty cost 0 shadow.png
Normal file
|
After Width: | Height: | Size: 13 KiB |
BIN
data/magic-modules.mse-include/loyalty/loyalty cost 0.png
Normal file
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 15 KiB |
BIN
data/magic-modules.mse-include/loyalty/loyalty cost anti ult.png
Normal file
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 15 KiB |
BIN
data/magic-modules.mse-include/loyalty/loyalty cost ult.png
Normal file
|
After Width: | Height: | Size: 14 KiB |
BIN
data/magic-modules.mse-include/loyalty/loyalty shadow.png
Normal file
|
After Width: | Height: | Size: 16 KiB |
BIN
data/magic-modules.mse-include/loyalty/loyalty.png
Normal file
|
After Width: | Height: | Size: 14 KiB |
56
data/magic-modules.mse-include/loyalty/readme.txt
Normal file
@@ -0,0 +1,56 @@
|
||||
#### To use this include in a template, add the following in the template headers:
|
||||
depends on:
|
||||
package: magic-modules.mse-include
|
||||
version: 2024-05-20
|
||||
|
||||
#### Add the following line, indented by one tab, in the init script section:
|
||||
include file: /magic-modules.mse-include/loyalty/init_script
|
||||
|
||||
#### Add the following line,unindented, in the styling field section:
|
||||
include file: /magic-modules.mse-include/loyalty/styling_fields
|
||||
|
||||
#### Also add this, unindented, before the card style section:
|
||||
include file: /magic-modules.mse-include/information/card_fields
|
||||
|
||||
#### Customization
|
||||
#### Optionally, you can adjust appearance by defining the following functions in the init script:
|
||||
|
||||
#### To change which face of the card the boxes go on:
|
||||
loyalty_face_1 := { 1 }
|
||||
|
||||
#### To change which card field the boxes snap to,
|
||||
#### 1 is for card.text, 2 for card.text_2, and 3 for card.text_3
|
||||
#### This text field and it's watermark should have z index greater than 1100
|
||||
loyalty_text_field_1 := { 1 }
|
||||
|
||||
#### This text field's font color should be:
|
||||
color: { styling.rule_text_color }
|
||||
|
||||
#### To move the starting loyalty up/down:
|
||||
loyalty_offset_top_1 := { 0 }
|
||||
|
||||
#### To move the starting loyalty left/right:
|
||||
loyalty_offset_left_1 := { 0 }
|
||||
|
||||
#### To increase/decrease the starting loyalty size:
|
||||
loyalty_offset_width_1 := { 0 }
|
||||
loyalty_offset_height_1 := { 0 }
|
||||
|
||||
#### Similarly for loyalty costs of abilities:
|
||||
loyalty_cost_offset_top_1 := { 0 }
|
||||
loyalty_cost_offset_left_1 := { 0 }
|
||||
loyalty_cost_offset_width_1 := { 0 }
|
||||
loyalty_cost_offset_height_1 := { 0 }
|
||||
|
||||
#### To increase/decrease by how much the text becomes indented when a loyalty cost is active:
|
||||
loyalty_cost_offset_text_margin_1 := { 0 }
|
||||
|
||||
#### To change where the stripes separating the abilities appear on the face:
|
||||
#### This must return the path of a mask with the same dimensions as the face the boxes go on.
|
||||
#### It must have white pixels where the stripes are visible, and black where they are not visible
|
||||
loyalty_textbox_mask_1 :=
|
||||
{
|
||||
if is_stamped()
|
||||
then "/magic-modules.mse-include/loyalty/default_textbox_stamp_mask.png"
|
||||
else "/magic-modules.mse-include/loyalty/default_textbox_mask.png"
|
||||
}
|
||||
BIN
data/magic-modules.mse-include/loyalty/stripe_bottom.png
Normal file
|
After Width: | Height: | Size: 8.7 KiB |
BIN
data/magic-modules.mse-include/loyalty/stripe_top.png
Normal file
|
After Width: | Height: | Size: 8.2 KiB |
62
data/magic-modules.mse-include/loyalty/styling_fields
Normal file
@@ -0,0 +1,62 @@
|
||||
styling field:
|
||||
type: choice
|
||||
name: number of textboxes
|
||||
description: Number of textboxes for abilities and passives. MODIFY CONTENTS OF TEXTBOXES IF THIS HAS TROUBLE UPDATING AFTER BEING CHANGED.
|
||||
choice: 1
|
||||
choice: 2
|
||||
choice: 3
|
||||
choice: 4
|
||||
choice: 5
|
||||
choice: 6
|
||||
choice: 7
|
||||
choice: 8
|
||||
initial: 3
|
||||
styling field:
|
||||
type: text
|
||||
name: textbox opacity percentage
|
||||
description: Set the opacity percentage for textboxes. Opaque is 100, transparent is 0, default is 70.
|
||||
styling field:
|
||||
type: color
|
||||
name: textbox color
|
||||
description: Use the specified color for the textbox background.
|
||||
choice:
|
||||
name: black
|
||||
color: rgb(0,0,0)
|
||||
choice:
|
||||
name: white
|
||||
color: rgb(255,255,255)
|
||||
initial: rgb(255,255,255)
|
||||
styling field:
|
||||
type: text
|
||||
name: stripes opacity percentage
|
||||
description: Set the opacity percentage for stripes separating abilities. Opaque is 100, transparent is 0, default is 40.
|
||||
styling field:
|
||||
type: color
|
||||
name: stripes color
|
||||
description: Use the specified color for the textbox background.
|
||||
choice:
|
||||
name: black
|
||||
color: rgb(0,0,0)
|
||||
choice:
|
||||
name: white
|
||||
color: rgb(255,255,255)
|
||||
initial: rgb(255,255,255)
|
||||
styling field:
|
||||
type: text
|
||||
name: move separators
|
||||
description: Moves the limits between abilities down by this many pixels. Use negatives to move up. Formatted as "1,2,3,4,5"
|
||||
styling field:
|
||||
type: text
|
||||
name: move loyalty costs
|
||||
description: Moves loyalty costs down by this many pixels. Use negatives to move up. Formatted as "1,2,3,4,5,6"
|
||||
styling field:
|
||||
type: color
|
||||
name: rule text color
|
||||
description: Use the specified color for the rule text.
|
||||
choice:
|
||||
name: black
|
||||
color: rgb(0,0,0)
|
||||
choice:
|
||||
name: white
|
||||
color: rgb(255,255,255)
|
||||
initial: rgb(0,0,0)
|
||||
63
data/magic-modules.mse-include/loyalty/styling_fields_dfc
Normal file
@@ -0,0 +1,63 @@
|
||||
include file: /magic-modules.mse-include/loyalty/styling_fields
|
||||
styling field:
|
||||
type: choice
|
||||
name: number of textboxes 2
|
||||
description: Number of textboxes for abilities and passives for the second face. MODIFY CONTENTS OF TEXTBOXES IF THIS HAS TROUBLE UPDATING AFTER BEING CHANGED.
|
||||
choice: 1
|
||||
choice: 2
|
||||
choice: 3
|
||||
choice: 4
|
||||
choice: 5
|
||||
choice: 6
|
||||
choice: 7
|
||||
choice: 8
|
||||
initial: 3
|
||||
styling field:
|
||||
type: text
|
||||
name: textbox opacity percentage 2
|
||||
description: Set the opacity percentage for textboxes for the second face. Opaque is 100, transparent is 0, default is 70.
|
||||
styling field:
|
||||
type: color
|
||||
name: textbox color 2
|
||||
description: Use the specified color for the textbox background for the second face.
|
||||
choice:
|
||||
name: black
|
||||
color: rgb(0,0,0)
|
||||
choice:
|
||||
name: white
|
||||
color: rgb(255,255,255)
|
||||
initial: rgb(255,255,255)
|
||||
styling field:
|
||||
type: text
|
||||
name: stripes opacity percentage 2
|
||||
description: Set the opacity percentage for stripes separating abilities for the second face. Opaque is 100, transparent is 0, default is 40.
|
||||
styling field:
|
||||
type: color
|
||||
name: stripes color 2
|
||||
description: Use the specified color for the textbox background for the second face.
|
||||
choice:
|
||||
name: black
|
||||
color: rgb(0,0,0)
|
||||
choice:
|
||||
name: white
|
||||
color: rgb(255,255,255)
|
||||
initial: rgb(255,255,255)
|
||||
styling field:
|
||||
type: text
|
||||
name: move separators 2
|
||||
description: Moves the limits between abilities for the second face down by this many pixels. Use negatives to move up. Formatted as "1,2,3,4,5"
|
||||
styling field:
|
||||
type: text
|
||||
name: move loyalty costs 2
|
||||
description: Moves loyalty costs for the second face down by this many pixels. Use negatives to move up. Formatted as "1,2,3,4,5,6"
|
||||
styling field:
|
||||
type: color
|
||||
name: rule text color 2
|
||||
description: Use the specified color for the rule text for the second face.
|
||||
choice:
|
||||
name: black
|
||||
color: rgb(0,0,0)
|
||||
choice:
|
||||
name: white
|
||||
color: rgb(255,255,255)
|
||||
initial: rgb(0,0,0)
|
||||