Commit cd9437bd authored by Peter Xin's avatar Peter Xin

Added stylesheet selection

parent d41e218c
......@@ -29,6 +29,7 @@ class LanguageConstants
attr_accessor :monster_effect_head
attr_accessor :term_races # 偷个鸡
attr_accessor :mse_language
attr_accessor :mse_stylesheet
class << self
attr_accessor :languages
......@@ -46,6 +47,7 @@ class LanguageConstants
self.languages[locale].pendulum_effect_head = value['pendulum_effect_head']
self.languages[locale].monster_effect_head = value['monster_effect_head']
self.languages[locale].mse_language = value['mse_language']
self.languages[locale].mse_stylesheet = value['mse_stylesheet']
end
end
end
......@@ -30,7 +30,7 @@ module MSEConstants
FileConfigName = "Chinese-Simplified"
PathImage = "Images"
Head = "mse version: 0.3.8\ngame: yugioh\nstylesheet: standard\nset info:\n\tlanguage: %s\n\tedition: \n\tno corner: yes\n\tST mark is text: yes\n\tpendulum image is small: yes\n\thide gamecode: yes\n"
Head = "mse version: 0.3.8\ngame: yugioh\nstylesheet: %s\nset info:\n\tlanguage: %s\n\tedition: \n\tno corner: yes\n\tST mark is text: yes\n\tpendulum image is small: yes\n\thide gamecode: yes\n"
End = "version control:\n\ttype: none\napprentice code: "
Width = 319
......
......@@ -8,7 +8,7 @@ module MSETranslator
module_function
def write_set(file, set)
file.write(sprintf(MSEConstants::MSEConfig::Head, LanguageConstants.current.mse_language.upcase))
file.write(sprintf(MSEConstants::MSEConfig::Head, LanguageConstants.current.mse_styleseet, LanguageConstants.current.mse_language.upcase))
for card in set
self.write_card(file, card)
end
......
......@@ -52,3 +52,4 @@ ja-JP:
pendulum_effect_head: !ruby/regexp /【Pスケール:青(.*)/赤(.*)】(\n)?/
monster_effect_head: !ruby/regexp /(\n)?【モンスター効果】\n/
mse_language: jp
mse_stylesheet: standard
......@@ -52,3 +52,4 @@ zh-CN:
pendulum_effect_head: !ruby/regexp /←\d+ 【灵摆】 \d+→\n?/
monster_effect_head: !ruby/regexp /\n(?:【怪兽效果】|【怪兽简介】|【怪兽描述】)\n/
mse_language: cn
mse_stylesheet: standard
zh-CN:
term:
monster: "怪兽卡"
spell: "魔法卡"
trap: "陷阱卡"
normal: "通常"
effect: "效果"
fusion: "融合"
ritual: "仪式"
trapmonster: "陷阱怪兽"
spirit: "灵魂"
union: "同盟"
dual: "二重"
tuner: "调整"
synchro: "同调"
token: "衍生物"
quickplay: "速攻"
continuous: "永续"
equip: "装备"
field: "场地"
counter: "反击"
flip: "反转"
cartoon: "卡通"
xyz: "超量"
pendulum: "灵摆"
races:
- ""
- "战士族"
- "魔法使族"
- "天使族"
- "恶魔族"
- "不死族"
- "机械族"
- "水族"
- "炎族"
- "岩石族"
- "鸟兽族"
- "植物族"
- "昆虫族"
- "雷族"
- "龙族"
- "兽族"
- "兽战士族"
- "恐龙族"
- "鱼族"
- "海龙族"
- "爬虫族"
- "念动力族"
- "幻兽神族"
- "创世神族"
- "幻龙族"
pendulum_effect_head: !ruby/regexp /←\d+ 【灵摆】 \d+→\n?/
monster_effect_head: !ruby/regexp /\n(?:【怪兽效果】|【怪兽简介】|【怪兽描述】)\n/
mse_language: cn
mse_stylesheet: classical
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