Commit c88d8c48 authored by Nemo Ma's avatar Nemo Ma

hotfix for rendering bug and co.

INFDEV21
parent a3b8ddaa
...@@ -326,7 +326,7 @@ card style: ...@@ -326,7 +326,7 @@ card style:
name: name:
left: 31 left: 31
#top : 25 #top : 25
top : { if styling.language=="chinese traditional" or styling.language=="chinese simplified" then 27 else if styling.template_style=="actual style" then 25 else 25 } top : { if styling.language=="chinese traditional" or styling.language=="chinese simplified" then 27 else if styling.template_style=="actual style" then 24 else 25 }
width: 319 width: 319
height: 41 height: 41
alignment: middle shrink-overflow alignment: middle shrink-overflow
...@@ -595,7 +595,8 @@ card style: ...@@ -595,7 +595,8 @@ card style:
on: {if styling.extended_artwork=="yes" then "linkdronex.png" else if styling.template_style=="actual style" then "new/linkdron.png" else "linkdron.png" } on: {if styling.extended_artwork=="yes" then "linkdronex.png" else if styling.template_style=="actual style" then "new/linkdron.png" else "linkdron.png" }
############################# Card type ############################# Card type
monster type: monster type:
left: { if styling.template_style=="actual style" then 38 else 40 } #left: { if styling.template_style=="actual style" then 38 else 40 }
left: { if is_nmonster() then (359 - card_style.level.content_width) else if is_tw() or is_cn() then 28 else if styling.template_style=="actual style" and (is_tw() or is_cn() ) then 25 else if styling.template_style=="actual style" then 30 else 32 }
top : { if is_pendulum() and ( styling.template_style=="actual style" and styling.pendulum_size=="more" ) then 477 else if is_pendulum() and styling.pendulum_size=="more" then 476 else if styling.template_style=="actual style" then 463 else 462 } top : { if is_pendulum() and ( styling.template_style=="actual style" and styling.pendulum_size=="more" ) then 477 else if is_pendulum() and styling.pendulum_size=="more" then 476 else if styling.template_style=="actual style" then 463 else 462 }
width: { if styling.large_type then card_style.monster_type.content_width + 8 else card_style.monster_type.content_width + 6 } width: { if styling.large_type then card_style.monster_type.content_width + 8 else card_style.monster_type.content_width + 6 }
height: 15 height: 15
...@@ -888,36 +889,36 @@ extra card style: ...@@ -888,36 +889,36 @@ extra card style:
choice images: choice images:
bar: bar.png bar: bar.png
visible: script: if is_nmonster() then false else true visible: script: if is_nmonster() then false else true
leftbracket: # leftbracket:
left: { if is_nmonster() then (359 - card_style.level.content_width) else if styling.template_style=="actual style" then 30 else 32 } # left: { if is_nmonster() then (359 - card_style.level.content_width) else if styling.template_style=="actual style" then 30 else 32 }
top : { if is_nmonster() then 80 else if styling.pendulum_size=="more" then 479 else if styling.large_type then 464 else 464 } # top : { if is_nmonster() then 80 else if styling.pendulum_size=="more" then 479 else if styling.large_type then 464 else 464 }
width: { if is_nmonster() then 6 else 6 } # width: { if is_nmonster() then 6 else 6 }
height: { if is_nmonster() then 19 else if styling.large_type then 15 else 14 } # height: { if is_nmonster() then 19 else if styling.large_type then 15 else 14 }
z index: 2 # z index: 2
render style: image list # render style: image list
choice images: # choice images:
#lbracket: /yugioh-standard-levels.mse-symbol-font/leftbracket.png # #lbracket: /yugioh-standard-levels.mse-symbol-font/leftbracket.png
lbracket: # lbracket:
script: # script:
if styling.language=="japanese" then "/yugioh-standard-levels.mse-symbol-font/leftbracket_jp.png" # if styling.language=="japanese" then "/yugioh-standard-levels.mse-symbol-font/leftbracket_jp.png"
else if styling.language=="chinese simplified" then "/yugioh-standard-levels.mse-symbol-font/leftbracket_sc.png" # else if styling.language=="chinese simplified" then "/yugioh-standard-levels.mse-symbol-font/leftbracket_sc.png"
else if styling.language=="chinese traditional" then "/yugioh-standard-levels.mse-symbol-font/leftbracket_tc.png" # else if styling.language=="chinese traditional" then "/yugioh-standard-levels.mse-symbol-font/leftbracket_tc.png"
else "/yugioh-standard-levels.mse-symbol-font/leftbracket.png" # else "/yugioh-standard-levels.mse-symbol-font/leftbracket.png"
rightbracket: # rightbracket:
left: { if is_nmonster() then 372 else if styling.large_type then (card_style.monster_type.content_width + 42) else (card_style.monster_type.content_width + 42) } # left: { if is_nmonster() then 372 else if styling.large_type then (card_style.monster_type.content_width + 42) else (card_style.monster_type.content_width + 42) }
top : { if is_nmonster() then 80 else if styling.pendulum_size=="more" then 479 else if styling.large_type then 464 else 464 } # top : { if is_nmonster() then 80 else if styling.pendulum_size=="more" then 479 else if styling.large_type then 464 else 464 }
width: { if is_nmonster() then 6 else 6 } # width: { if is_nmonster() then 6 else 6 }
height: { if is_nmonster() then 19 else if styling.large_type then 15 else 14 } # height: { if is_nmonster() then 19 else if styling.large_type then 15 else 14 }
z index: 4 # z index: 4
render style: image list # render style: image list
choice images: # choice images:
#rbracket: /yugioh-standard-levels.mse-symbol-font/rightbracket.png # #rbracket: /yugioh-standard-levels.mse-symbol-font/rightbracket.png
rbracket: # rbracket:
script: # script:
if styling.language=="japanese" then "/yugioh-standard-levels.mse-symbol-font/rightbracket_jp.png" # if styling.language=="japanese" then "/yugioh-standard-levels.mse-symbol-font/rightbracket_jp.png"
else if styling.language=="chinese simplified" then "/yugioh-standard-levels.mse-symbol-font/rightbracket_sc.png" # else if styling.language=="chinese simplified" then "/yugioh-standard-levels.mse-symbol-font/rightbracket_sc.png"
else if styling.language=="chinese traditional" then "/yugioh-standard-levels.mse-symbol-font/rightbracket_tc.png" # else if styling.language=="chinese traditional" then "/yugioh-standard-levels.mse-symbol-font/rightbracket_tc.png"
else "/yugioh-standard-levels.mse-symbol-font/rightbracket.png" # else "/yugioh-standard-levels.mse-symbol-font/rightbracket.png"
atkoverlay: atkoverlay:
left: { if card.card_type=="pendulum normal monster" or card.card_type=="pendulum effect monster" or card.card_type=="pendulum fusion monster" or card.card_type=="pendulum ritual monster" or card.card_type=="pendulum synchro monster" or card.card_type=="pendulum dark synchro monster" or card.card_type=="pendulum xyz monster" then 213 else 209 } left: { if card.card_type=="pendulum normal monster" or card.card_type=="pendulum effect monster" or card.card_type=="pendulum fusion monster" or card.card_type=="pendulum ritual monster" or card.card_type=="pendulum synchro monster" or card.card_type=="pendulum dark synchro monster" or card.card_type=="pendulum xyz monster" then 213 else 209 }
top: { if card.card_type=="pendulum normal monster" or card.card_type=="pendulum effect monster" or card.card_type=="pendulum fusion monster" or card.card_type=="pendulum ritual monster" or card.card_type=="pendulum synchro monster" or card.card_type=="pendulum dark synchro monster" or card.card_type=="pendulum xyz monster" then 562 else 558 } top: { if card.card_type=="pendulum normal monster" or card.card_type=="pendulum effect monster" or card.card_type=="pendulum fusion monster" or card.card_type=="pendulum ritual monster" or card.card_type=="pendulum synchro monster" or card.card_type=="pendulum dark synchro monster" or card.card_type=="pendulum xyz monster" then 562 else 558 }
......
...@@ -180,6 +180,70 @@ card field: ...@@ -180,6 +180,70 @@ card field:
show statistics: false show statistics: false
############################# Card type ############################# Card type
# Keep type1, type2, and separator fields for backwards compatibility until two or three versions after 0.3.8. # Keep type1, type2, and separator fields for backwards compatibility until two or three versions after 0.3.8.
#card field:
# type: text
# name: type1
# script: monster_type_filter(value)
# default: " "
# editable: false
# show statistics: false
#card field:
# type: text
# name: type2
# script: card_class_filter(value)
# editable: false
# show statistics: false
#card field:
# type: text
# name: separator
# script: "/"
# editable: false
# save value: false
# show statistics: false
# These are the new type fields.
#card field:
# type: text
# name: type 1
# script: monster_type_filter(value)
# default: card.type1 # Remove when card.type1 is removed.
#card field:
# type: text
# name: type 2
# script: card_class_filter(value)
# default: split_text(match:"/ ", card.type2).0 # Remove when card.type2 is removed.
#card field:
# type: text
# name: type 3
# script: card_class_filter(value)
# default: if contains(card.type2, match:" / ") then split_text(match:" / ", card.type2).1 else "" # Remove when card.type2 is removed.
#card field:
# type: text
# name: type 4
# script: card_class_filter(value)
# default: if contains(card.type2, match:" / ") then split_text(match:" / ", card.type3).2 else "" # Remove when card.type3 is removed.
#card field:
# type: text
# name: monster type
# script:
# # Either just monster, monster / type1
# combined_editor(
# field1: card.type_1,
# separator1: "/",
# field2: card.type_2,
# separator2: "/",
# field3: card.type_3,
# separator3: "/",
# field4: card.type_4,
# prefix: if remove_tags(card.type_1)==" " then "" else if is_jp() then "【" else if is_en() then "[" else "<sym-auto>[</sym-auto>",
# suffix: if remove_tags(card.type_1)==" " then "" else if is_jp() then "】" else if is_en() then "]" else "<sym-auto>]</sym-auto>",
# soft_before_empty: true,
# hide_when_empty: true
# )
# card list visible: true
# card list column: 3
# show statistics: false
############################# Card type
# Keep type1, type2, and separator fields for backwards compatibility until two or three versions after 0.3.8.
card field: card field:
type: text type: text
name: type1 name: type1
...@@ -196,7 +260,7 @@ card field: ...@@ -196,7 +260,7 @@ card field:
card field: card field:
type: text type: text
name: separator name: separator
script: "/" script: get_sep()
editable: false editable: false
save value: false save value: false
show statistics: false show statistics: false
...@@ -210,30 +274,57 @@ card field: ...@@ -210,30 +274,57 @@ card field:
type: text type: text
name: type 2 name: type 2
script: card_class_filter(value) script: card_class_filter(value)
default: split_text(match:"/ ", card.type2).0 # Remove when card.type2 is removed. default: if contains(card.type2, match:get_sep()) then split_text(match:get_sep(), card.type2).0 else "" # Remove when card.type2 is removed.
card field: card field:
type: text type: text
name: type 3 name: type 3
script: card_class_filter(value) script: card_class_filter(value)
default: if contains(card.type2, match:" / ") then split_text(match:" / ", card.type2).1 else "" # Remove when card.type2 is removed. default: if contains(card.type2, match:get_sep()) then split_text(match:get_sep(), card.type2).1 else "" # Remove when card.type2 is removed.
card field: card field:
type: text type: text
name: type 4 name: type 4
script: card_class_filter(value) script: card_class_filter(value)
default: if contains(card.type2, match:" / ") then split_text(match:" / ", card.type3).2 else "" # Remove when card.type3 is removed. default: if contains(card.type2, match:get_sep()) then split_text(match:get_sep(), card.type2).2 else "" # Remove when card.type2 is removed.
card field:
type: text
name: type 5
script: card_class_filter(value)
default: if contains(card.type2, match:get_sep()) then split_text(match:get_sep(), card.type3).3 else "" # Remove when card.type2 is removed.
card field: card field:
type: text type: text
name: monster type name: monster type
description: If no Combobox, please input space.如果看不到下拉框,请输入空格
script: script:
# Either just monster, monster / type1 # Either just monster, monster / type1
# prefix: "<sym-auto>[</sym-auto>",
# suffix: "<sym-auto>]</sym-auto>",
# 用来选择
combined_editor(
field1: card.type_1,
separator1: get_sep(),
field2: card.type_2,
separator2: get_sep(),
field3: card.type_3,
separator3: get_sep(),
field4: card.type_4,
separator4: get_sep(),
field5: card.type_5,
soft_before_empty: true,
hide_when_empty: true
)
#用来调整格式
combined_editor( combined_editor(
field1: card.type_1, field1: card.type_1,
separator1: "/", separator1: get_sepex(card.type_2),
field2: card.type_2, field2: card.type_2,
separator2: "/", separator2: get_sepex(card.type_3),
field3: card.type_3, field3: card.type_3,
separator3: "/", separator3: get_sepex(card.type_4),
field4: card.type_4, field4: card.type_4,
separator4: get_sepex(card.type_5),
field5: card.type_5,
prefix: if remove_tags(card.type_1)==" " then "" else if is_jp() or is_cn() or is_tw() then "【" else if is_en() then "[" else "<sym-auto>[</sym-auto>",
suffix: if remove_tags(card.type_1)==" " then "" else if is_jp() or is_cn() or is_tw() then "】" else if is_en() then "]" else "<sym-auto>]</sym-auto>",
soft_before_empty: true, soft_before_empty: true,
hide_when_empty: true hide_when_empty: true
) )
......
 # the rule text filter  is_link := {card.card_type == "link monster"}
is_tw := { styling.language == "chinese traditional" }
is_cn := { styling.language == "chinese simplified" }
is_en := { styling.language == "english" }
is_jp := { styling.language == "japanese" }
get_sep := {if is_en() then "<color:black>/</color:black>" else if is_cn() then "<i>/</i>" else "/" }
get_sepex := {
class :=remove_tags(input);
if class == "" then "" else get_sep()
}
# the rule text filter
# - adds continuous symbols # - adds continuous symbols
# - adds counter symbols # - adds counter symbols
# - adds equipment symbols # - adds equipment symbols
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment