﻿
############################################################## Card fields
############################# Background stuff
card field:
	type: choice
	name: card type
	choice: normal monster
	choice: effect monster
	choice: ritual monster
	choice: synchro monster
	choice: dark synchro monster
	choice: fusion monster
	choice: token monster
	choice:	xyz monster
	choice: obelisk
	choice: slifer
	choice: ra
	choice: token card
	choice: spell card
	choice: trap card
	description: Selected Card Type. 选择卡片类型
#   为了适应DataEditorX的存档制作
#	default: card_type()
	choice colors cardlist:
		normal monster:	   rgb(168,168,0)
		effect monster:	   rgb(178,68,0)
		ritual monster:	   rgb(16,128,235)
		synchro monster:   rgb(168,168,168)
		dark synchro monster:  rgb(64,64,64)
		fusion monster:	   rgb(108,34,108)
		token monster:	   rgb(98,98,98)		
		xyz monster:   rgb(0,0,0)
		obelisk:	   rgb(64,64,158)
		slifer:		   rgb(198,30,64)
		ra:		   rgb(225,225,0)
		spell card:	   rgb(10,128,0)
		trap card:	   rgb(235,30,128)
		token card:		rgb(98,98,98)
card field:
	type: choice
	name: foils
	editable: false
	choice: none
	choice: holo image
	choice: secret holo image
	choice: ultimate holo image
	choice: parallel holo image
	choice: gold holo image
	choice: star holo image
	choice: mosaic holo image
	default: foil()
############################# Name line
card field:
	type: text
	name: name
	identifying: true
	show statistics: false
	card list visible: true
	card list column: 1
	script: name_filter(value)
	description: 卡片名
card field:
	type: choice
	name: attribute
	choice: none
	choice: earth
	choice: water
	choice: fire
	choice: wind
	choice: light
	choice: dark
	choice: divine
	choice: spell
	choice: trap
	default: attribute()
	card list visible: true
	card list column: 2
card field:
	type: text
	name: level
	description: * = star, % = continuous, ! = counter, + = equipment, & = field, $ = quickplay, # = ritual 如果需要OCG样式，请在套牌设置ST mark is text为yes
	script: level_filter(value)

############################# Image
card field:
	type: image
	name: image
	show statistics: false
	description: Double Click Selected Image. 双击选取图片
############################# Card type
# 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: get_sep()
	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: 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:
	type: text
	name: type 3
	script: card_class_filter(value)
	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:
	type: text
	name: type 4
	script: card_class_filter(value)
	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: monster type
	description: If no Comobox, please input space.如果看不到下拉框，请输入空格
	script:
		# 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,
			soft_before_empty: true,
			hide_when_empty: true
		)
		#用来调整格式
		combined_editor(
			field1: card.type_1,
			separator1: get_sepex(card.type_2),
			field2: card.type_2,
			separator2: get_sepex(card.type_3),
			field3: card.type_3,
			separator3: get_sepex(card.type_4),
			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
############################# Edition and Card ID
card field:
	type: text
	name: number
#	script: 
#		set.code
#		+ "-" +
#		set.language +
#		if pos_of_card()<=9 then "00" + pos_of_card(value) else
#		if pos_of_card()>=9 and pos_of_card()<=99 then "0" + pos_of_card(value) else
#		if pos_of_card()>=999 then "999" else pos_of_card(value)
	card list visible: true
	card list column: 6
	card list width: 55
	card list name: #
	editable: true
	save value: true
	show statistics: false
card field:
	type: text
	name: edition
	default: set.edition
	show statistics: false
############################# Text box
card field:
	type: text
	name: rules
	script: text_filter(value)
	editable: false
	show statistics: false
card field:
	type: text
	name: rule text
	multi line: true
	save value: true
	show statistics: false
	script:
		if nm_ext_querry(value) and is_en() then flavor_text_filter(value)
		else if is_en() then text_filter(value) else text_filter2(value)
	default: card.rules
	description: 日文注音，请在风格设置，勾选“本张牌使用特特殊设置”，在下面输入。
############################# pendulum
card field:
	type: choice
	name: pendulum
	show statistics: false
	save value: true
	choice: none
	choice: big
	choice: medium
	choice: small
	description: Pendulum 摇摆类型选择
card field:
	type: text
	name: pendulum text
	multi line: true
	save value: true
	show statistics: false
	script: if is_en() then text_filter(value) else text_filter2(value)
	description: 日文注音，请在风格设置，勾选“本张牌使用特特殊设置”，在下面输入。
card field:
	type: text
	name: pendulum scale 1
	save value: true
	show statistics: false
card field:
	type: text
	name: pendulum scale 2
	save value: true
	show statistics: false
############################# Attack/Defense
card field:
	type: text
	name: attack
	save value: true
	script: a_and_d_filter(value)
	card list visible: true
	card list column: 4
	card list width: 33
	card list name: ATK
	description: & = unlimited 无限
card field:
	type: text
	name: defense
	save value: true
	script: a_and_d_filter(value)
	card list visible: true
	card list column: 5
	card list width: 33
	card list name: DEF
	description: & = unlimited 无限
############################# Copyright stuff
card field:
	type: choice
	name: rarity
	show statistics: true
	choice: common
	choice: rare
	choice: super rare
	choice: ultra rare
	choice: secret rare
	choice: ultimate rare
	choice: ultimate rare (No foil)
	choice: parallel rare
	choice: ghost rare (No foil)
	choice: gold tech
	choice: star rare
	choice: mosaic rare
	choice: promo
	card list visible: true
	card list column: 7
	description: Ratity.罕见度
card field:
	type: choice
	name: corner foil
	choice: stamp
	editable: false
card field:
	type: text
	name: copyright
	default: set.copyright
	show statistics: false
	description: style info->copyright images = yes 显示图片版权
############################# small text stuff
card field:
	type: text
	name: small name
	show statistics: false
	save value: true
card field:
	type: text
	name: small type 1
	show statistics: false
	editable: false
	default: small_type(card.type_1)
	save value: false
card field:
	type: text
	name: small type 2
	show statistics: false
	editable: false
	default: small_type(card.type_2)
	save value: false
card field:
	type: text
	name: small type 3
	show statistics: false
	editable: false
	default: small_type(card.type_3)
	save value: false
card field:
	type: text
	name: small type 4
	show statistics: false
	editable: false
	default: small_type(card.type_4)
	save value: false
############################
card field:
	type: text
	name: gamecode
	show statistics: false
	description: set info->hide gamecode = yes 隐藏密码