mse version: 2.0.0 game: space short name: Xerent full name: Xerent's Space Template installer group: Space/Xerent Style icon: card-sample.png position hint: 002 version: 2014-01-25 depends on: package: space.mse-game version: 2007-12-19 depends on: package: space-psi-xerent.mse-symbol-font version: 2007-12-19 card width: 375 card height: 523 card dpi: 150 ############################################################## Extra scripts init script: # Should hybrids have a grey name? mask_hybrid_with_resource := { styling.grey_hybrid_name } # Which artifact template should be used? device_template := { if input == "a" or input == "c" then "d" else input } template := { device_template() + "{type}.png" } #No colored resource templates yet. #resource_template := { "cl{type}.png" } resource_template := { combine_blend( image1: "cl{type}.png", image2: (device_template() + "{type}.png"), combine: "symmetric overlay" )} # Use land templates for previews because they show more contrast hybrid_previews := "resource,hybrid" # Use the normal tap symbol mana_t := { if styling.tap_symbol == "old" then "old" else if styling.tap_symbol == "diagonal T" then "older" else "new" } casting_cost_color := { if card.card_color == "crystal" then rgb(0,0,0) else if contains(card.card_color, match:"hybrid") and contains(card.card_color, match:"crystal") and not contains(card.card_color, match:"cryo") and not contains(card.card_color, match:"shadow") then rgb(0,0,0) else rgb(255,255,255) } paintbrush_color:= { if contains(card.card_color, match:"resource") then "white" else if contains(card.card_color, match:"multicolor") or contains(card.card_color, match:"crystal") then "black" else "white" } colorless_color := { if card.card_color=="crystal" then "w" else if card.card_color=="cryo" then "u" else if card.card_color=="shadow" then "b" else if card.card_color=="pyre" then "r" else if card.card_color=="xeno" then "g" else "c" } # For which colors is the font white? font_colors_white := { input == "b" or input == "r" or input == "l" } font_color := { if font_white() then "white" else "black" } color_reverse := { if input == "black" then "white" else "black" } name_font_color := { if styling.name_font_color == "white" then "white" else "black" } copyright_font_color := { if styling.copyright_font_color == "white" then "white" else if styling.copyright_font_color == "black" then "black" else font_color(card.card_color) } ############################################################## Extra style options styling field: type: choice name: name font color description: What color should the name and type font be? The shadow will be the opposite color. initial: black choice: black choice: white styling field: type: choice name: copyright font color description: What color should the illustrator and copyright font be? The shadow will be the opposite color. initial: default choice: default choice: black choice: white styling field: type: boolean name: grey hybrid name description: Use a grey background for the name and type line on hybrid cards. This is done on real cards. styling field: type: choice name: tap symbol description: What tap and untap symbols should be used on cards? initial: modern choice: modern choice: old choice: diagonal T styling style: tap symbol: render style: both choice images: modern: /space-psi.mse-symbol-font/psi_t.png old: /space-psi.mse-symbol-font/psi_t_old.png diagonal T: /space-psi.mse-symbol-font/psi_t_older.png ############################################################## Card fields card style: ############################# Background stuff border color: left: 0 top : 0 width: 375 height: 523 radius: 18 left width: 11 right width: 11 top width: 15 bottom width: 16 z index: 6 card color: left: 2 top: 6 width: 372 height: 510 z index: -1 render style: image popup style: in place image: { card_background() } ############################# Name line name: left: 57 top: 25 width: 280 height: 24 alignment: middle shrink-overflow padding bottom: 0 z index: 2 font: name: SF Quartzite size: 18 color: { name_font_color() } shadow color: { color_reverse(name_font_color()) } shadow displacement x: 0 shadow displacement y: 0 shadow blur: 2 casting cost: left: 47 top: 41 height: 150 width: 38 angle: -15.5 alignment: bottom left direction: vertical symbol font: name: space-psi-xerent.mse-symbol-font size: 142 alignment: bottom right always symbol: true z index: 2 padding top: 1 ############################# Image image: left: 10 top: 15 width: 355 height: 337 z index: 0 mask: mask_image.png ############################# Card type type: left: 28 top: 298 width: { 316 - max(21,card_style.rarity.content_width) } height: 25 alignment: middle shrink-overflow z index: 2 padding top: 2 font: name: SF Quartzite size: 14 color: { name_font_color() } shadow color: { color_reverse(name_font_color()) } shadow displacement x: 0 shadow displacement y: 0 shadow blur: 2 separator color: rgb(128,128,128) rarity: right: 346 top: 301 width: 22 height: 22 z index: 2 alignment: middle center render style: image choice images: # Images based on the set symbol basic resource: script: symbol_variation(symbol: set.symbol, variation: "common") common: script: symbol_variation(symbol: set.symbol, variation: "common") uncommon: script: symbol_variation(symbol: set.symbol, variation: "uncommon") rare: script: symbol_variation(symbol: set.symbol, variation: "rare") mythic rare: script: symbol_variation(symbol: set.symbol, variation: "mythic rare") special: script: symbol_variation(symbol: set.symbol, variation: "special") ############################# Text box text: left: 26 top: 332 width: 321 height: 148 font: name: Gentium Book Basic italic name: Gentium Book Basic Italic size: 13 scale down to: 6 color: black symbol font: name: space-psi-xerent size: 70 alignment: middle left z index: 2 padding left: 6 padding top: 2 padding right: 4 padding bottom: 2 line height hard: 1.2 line height soft: 0.9 line height line: 1.5 ############################# PT power: left: 14 top: 481 width: 40 height: 28 z index: 3 alignment: center middle shrink-overflow font: name: SF Quartzite size: 18 weight: bold color: black toughness: left: 60 top: 481 width: 40 height: 28 z index: 3 alignment: center middle shrink-overflow font: name: SF Quartzite size: 18 weight: bold color: black ############################# Card sorting / numbering ############################# Copyright stuff illustrator: left: 25 top: 484 width: 296 height: 11 z index: 2 alignment: middle right font: name: SF Quartzite size: 10 color: {copyright_font_color()} shadow color: {color_reverse(copyright_font_color())} shadow displacement x: 0 shadow displacement y: 0 shadow blur: 2 copyright line: left: 24 top: 495 right: 348 height: 12 z index: 2 alignment: bottom right font: name: SF Quartzite size: 7 color: {copyright_font_color()} shadow color: {color_reverse(copyright_font_color())} shadow displacement x: 0 shadow displacement y: 0 shadow blur: 2 ############################################################## Extra card fields extra card field: type: choice name: bg copy script: card.card_color editable: false save value: false extra card field: type: choice name: pt box script: card.card_color editable: false save value: false extra card field: type: choice name: paintbrush script: "brush" editable: false save value: false extra card style: bg copy: left: 2 top: 6 width: 372 height: 510 z index: 1 render style: image popup style: in place image: { card_background() } pt box: left: 10 top: 476 width: 95 height: 38 z index: 2 visible: { card.pt != "" } render style: image image: { card_ptbox() } paintbrush left: 325 top: 484 width: 25 height: 11 z index: 2 render style: image image: paintbrush.png