diff --git a/data/magic-archenemy.mse-style/artist_arrow.png b/data/magic-archenemy.mse-style/artist_arrow.png new file mode 100644 index 000000000..10b116c24 Binary files /dev/null and b/data/magic-archenemy.mse-style/artist_arrow.png differ diff --git a/data/magic-archenemy.mse-style/card.png b/data/magic-archenemy.mse-style/cardA.png similarity index 100% rename from data/magic-archenemy.mse-style/card.png rename to data/magic-archenemy.mse-style/cardA.png diff --git a/data/magic-archenemy.mse-style/cardE.png b/data/magic-archenemy.mse-style/cardE.png new file mode 100644 index 000000000..3bf902de9 Binary files /dev/null and b/data/magic-archenemy.mse-style/cardE.png differ diff --git a/data/magic-archenemy.mse-style/image_mask.png b/data/magic-archenemy.mse-style/image_maskA.png similarity index 100% rename from data/magic-archenemy.mse-style/image_mask.png rename to data/magic-archenemy.mse-style/image_maskA.png diff --git a/data/magic-archenemy.mse-style/image_maskE.png b/data/magic-archenemy.mse-style/image_maskE.png new file mode 100644 index 000000000..64b17bcc6 Binary files /dev/null and b/data/magic-archenemy.mse-style/image_maskE.png differ diff --git a/data/magic-archenemy.mse-style/style b/data/magic-archenemy.mse-style/style index 8ad7f18f6..ce4136a94 100644 --- a/data/magic-archenemy.mse-style/style +++ b/data/magic-archenemy.mse-style/style @@ -1,28 +1,67 @@ -mse version: 0.3.8 +mse version: 2.1.2 game: magic short name: Archenemy -installer group: Magic Archenemy/normal style +full name: ARC+Bolas icon: card-sample.png position hint: 90 -version: 2010-05-20 +version: 2023-12-20 depends on: package: magic.mse-game version: 2010-05-17 +depends on: + package: magic-default-image.mse-include + version: 2007-09-23 depends on: package: magic-mana-small.mse-symbol-font version: 2007-09-23 +depends on: + package: magic-mainframe-extras.mse-include + version: 2018-01-01 depends on: package: magic-future-common.mse-include version: 2007-09-23 card width: 435 card height: 621 -card dpi: 131.1179678 -# By Pichoro -# Images by Art_Freak +card dpi: 200 + +#card dpi: 131.1179678 +#????? + +# Original style by Pichoro +# ARC Images by Art_Freak + +# Updated style and E01 images by Fungustober ############################################################## Extra scripts init script: + #rarity stuff + #code by Cajun + alt_rarity := {styling.alt_rarity_color != ""} + alt_rarity_color := { + string := "83,67,53:177,150,131:0,0,0:0,0,0:0.07:" + if match(styling.alt_rarity_color, match:":$") then string := styling.alt_rarity_color + colons := length(filter_text(string, match:":")) + output := split_text(string, match:",|:") + splits := split_text(string, match:":") + if colons == 4 + then output := split_text(string+"0.07:", match:",|:") + if colons == 3 + then output := split_text(string+splits[2]+"0.07:", match:",|:") + else if colons == 2 + then output := split_text(string+"0,0,0:0,0,0:0.07:", match:",|:") + else if colons == 1 + then output := split_text(string+splits[0]+":0,0,0:0,0,0:0.07:", match:",|:") + + output + } + alt_symbol := {symbol_variation(symbol:set.symbol, border_radius: alt_rarity_color().12, fill_type: "linear gradient", fill_color_1: rgb(alt_rarity_color().0, alt_rarity_color().1, alt_rarity_color().2), fill_color_2: rgb(alt_rarity_color().3, alt_rarity_color().4, alt_rarity_color().5), border_color_1: rgb(alt_rarity_color().6, alt_rarity_color().7, alt_rarity_color().8), border_color_2: rgb(alt_rarity_color().9, alt_rarity_color().10, alt_rarity_color().11), center_x:0.5, center_y:0.5, end_x:1, end_y:1)} + use_main_rarity := { contains(set.mainframe_rarity_name, match: ".png")} + + un_png := replace@(match:".png", replace: "") + + is_unsorted := {styling.remove_from_autocount} + # Use the normal tap symbol mana_t := { if styling.tap_symbol == "old" then "old" @@ -31,6 +70,13 @@ init script: } # Use guild mana symbols? guild_mana := { styling.use_guild_mana_symbols } + + #style picker + choose_style := {if styling.scheme_style == "original" then "A" else "E"} + + choose_card := {"card" + choose_style() + ".png"} + choose_mask := {"image_mask" + choose_style() + ".png"} + ############################################################## Set info fields set info style: @@ -41,7 +87,22 @@ set info style: fill type: solid fill color: rgb(255,255,255) border color: rgb(0,0,0) +set info style: + symbol: + variation: + name: special + border radius: 0.10 + fill type: solid + fill color: rgb(155,155,155) + border color: rgb(0,0,0) ############################################################## Extra style options +styling field: + type: choice + name: scheme style + description: What style of scheme you want. + initial: original + choice: original + choice: nicol bolas styling field: type: boolean name: use guild mana symbols @@ -63,8 +124,17 @@ styling field: styling field: type: boolean name: inverted common symbol - description: Should the common rarity symbol be inverted, like in Coldsnap? + description: Should the common rarity symbol be inverted, like in Dominaria? initial: no +styling field: + type: boolean + name: remove from autocount + description: Removes the automatic card number for specific cards, to allow for overcounted cards like in Planeswalker Decks. + initial: no +styling field: + type: text + name: alt rarity color + description: Use a custom color for the rarity symbol. Formatted as "R1,G1,B1:R2,G2,B2:..." 1 and 2 are fill color, 3 and 4 border color styling field: type: choice name: artist font color @@ -104,66 +174,95 @@ card style: z index: 4 ############################# Name line name: - left: 63 - top: 35 - width: 306 - height: 27 - alignment: bottom center shrink-overflow + left: {if choose_style() == "A" then 63 else 72} + top: {if choose_style() == "A" then 35 else 38} + width: {if choose_style() == "A" then 306 else 292} + height: {if choose_style() == "A" then 27 else 35} + alignment: {if choose_style() == "A" then "bottom center shrink-overflow" else "middle center shrink-overflow"} padding bottom: 0 z index: 2 font: - name: Matrix + name: {if choose_style() == "A" then "Matrix" else "Beleren Bold"} size: 16 weight: bold color: black ############################# Image image: - left: 26 - top: 25 - width: 383 - height: 571 + left: {if choose_style() == "A" then 26 else 0} + top: {if choose_style() == "A" then 25 else 0} + width: {if choose_style() == "A" then 383 else 435} + height: {if choose_style() == "A" then 571 else 621} z index: 1 - mask: image_mask.png + mask: {choose_mask()} ############################# Card type type: - left: 65 - top: 406 + left: {if choose_style() == "A" then 65 else 63} + top: {if choose_style() == "A" then 406 else 402} width: { 312 - max(21,card_style.rarity.content_width) } - height: 21 + height: {if choose_style() == "A" then 21 else 23} alignment: middle left shrink-overflow z index: 2 font: - name: Matrix - size: 14 + name: {if choose_style() == "A" then "Matrix" else "Beleren Bold"} + size: {if choose_style() == "A" then 14 else 13} color: black rarity: - right: 370 - top: 407 + right: 373 + top: {if choose_style() == "A" then 407 else 402} width: 37 - height: 19 + height: {if choose_style() == "A" then 19 else 23} z index: 2 render style: image alignment: middle right choice images: # Images based on the set symbol + # code by Cajun + basic land: + script: + if use_main_rarity() then "/magic-mainframe-extras.mse-include/" + un_png(set.mainframe_rarity_name) + "c.png" + else if alt_rarity() then alt_symbol() + else if styling.inverted_common_symbol then symbol_variation(symbol: set.symbol, variation: "invertedcommon") + else symbol_variation(symbol: set.symbol, variation: "common") common: script: - if styling.inverted_common_symbol then symbol_variation(symbol: set.symbol, variation: "invertedcommon") + if use_main_rarity() then "/magic-mainframe-extras.mse-include/" + un_png(set.mainframe_rarity_name) + "c.png" + else if alt_rarity() then alt_symbol() + else if styling.inverted_common_symbol then symbol_variation(symbol: set.symbol, variation: "invertedcommon") else 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") + uncommon: + script: + if use_main_rarity() then "/magic-mainframe-extras.mse-include/" + un_png(set.mainframe_rarity_name) + "u.png" + else if alt_rarity() then alt_symbol() + else symbol_variation(symbol: set.symbol, variation: "uncommon") + rare: + script: + if use_main_rarity() then "/magic-mainframe-extras.mse-include/" + un_png(set.mainframe_rarity_name) + "r.png" + else if alt_rarity() then alt_symbol() + else symbol_variation(symbol: set.symbol, variation: "rare") + mythic rare: + script: + if use_main_rarity() then "/magic-mainframe-extras.mse-include/" + un_png(set.mainframe_rarity_name) + "m.png" + else if alt_rarity() then alt_symbol() + else symbol_variation(symbol: set.symbol, variation: "mythic rare") + special: + script: + if use_main_rarity() then "/magic-mainframe-extras.mse-include/" + un_png(set.mainframe_rarity_name) + "s.png" + else if alt_rarity() then alt_symbol() + else symbol_variation(symbol: set.symbol, variation: "special") + masterpiece: + script: + if use_main_rarity() then "/magic-mainframe-extras.mse-include/" + un_png(set.mainframe_rarity_name) + "mp.png" + else symbol_variation(symbol: set.masterpiece_symbol, variation: "mythic rare") ############################# Text box text: - left: 64 + left: {if choose_style() == "A" then 64 else 60} top: 435 - width: 309 + width: {if choose_style() == "A" then 309 else 312} height: 122 font: name: MPlantin italic name: MPlantin-Italic - size: 14 + size: {if choose_style() == "A" then 14 else 16} scale down to: 7 color: black symbol font: @@ -173,34 +272,51 @@ card style: z index: 2 padding left: 5 padding top: 2 - padding right: 5 + padding right: {if choose_style() == "A" then 5 else 2} padding bottom: 2 line height hard: 1.2 - line height line: 1.5 + line height line: {if choose_style() == "A" then 1.5 else 1.3} + line height soft: {if choose_style() == "A" then 1 else 0.9} ############################# Card sorting / numbering ############################# Copyright stuff illustrator: - left: 99 - top: 570 - width: 267 + left: { if choose_style() == "A" then 99 else 245} + top: { if choose_style() == "A" then 570 else 579} + width: { if choose_style() == "A" then 267 else 121 } height: 14 - alignment: center + alignment: {if choose_style() == "A" then "center" else "left bottom"} z index: 2 font: - name: Matrix - size: 11 + name: {if choose_style() == "A" then "Matrix" else "Beleren Small Caps Bold"} + size: {if choose_style() == "A" then 11 else 8.5} color: {styling.artist_font_color} - copyright line: - left: 67 - top: 587 - width: 296 + # This was supposed to automatically do copyright, + # but apparently at some point, the copyright code changed + # and now it doesn't work + ##copyright line: + ## left: {if choose_style() == "A" then 67 else 0} + ## top: {if choose_style() == "A" then 587 else 0} + ## width: {if choose_style() == "A" then 296 else 0} + ## height: {if choose_style() == "A" then 14 else 0} + ## alignment: center + ## z index: 2 + ## visible: {if choose_style() == "A" then true else false} + ## font: + ## name: MPlantin + ## size: 6 + ## color: {styling.artist_font_color} + copyright: + left: 145 + top: {if set.automatic_copyright or choose_style() == "A" then 0 else 593} + width: {if set.automatic_copyright or choose_style() == "A" then 0 else 145} height: 14 - alignment: center z index: 2 + alignment: center middle font: name: MPlantin - size: 6 - color: {styling.artist_font_color} + size: 7.5 + color: white + weight: bold ############################################################## Extra card fields extra card field: type: choice @@ -220,17 +336,43 @@ extra card field: script: styling.artist_font_color editable: false save value: false +extra card field: + type: text + name: cardSet code + save value: false + script: + if set.automatic_card_numbers and not styling.remove_from_autocount then + forward_editor(prefix: set.set_code + " • " + set.set_language + " " + card_number_m15() + "/" + card_count_m15() + " ", field: card.card_code_text) + else + combined_editor(field1: card.custom_card_number, separator: " ", field2: card.card_code_text) +extra card field: + type: text + name: legacy copyright + save value: false + script: + if set.automatic_card_numbers then + combined_editor(field1: set.copyright, separator: " ", field2: card.card_number) + else + forward_editor(field: set.copyright) + description: Copyright of this card and cardnumber, the default value can be changed on the 'set info' tab +extra card field: + type: text + name: auto copyright + script: set.copyright + save value: false + editable: false + show statistics: false extra card style: paintbrush: - right: { 232 + ( card_style.illustrator.content_width * -0.5 ) } - top: 571 - width: 35 - height: 14 + right: { if choose_style() == "A" then 232 + ( card_style.illustrator.content_width * -0.5 ) else 243} + top: {if choose_style() == "A" then 571 else 582} + width: {if choose_style() == "A" then 35 else 11} + height: {if choose_style() == "A" then 14 else 8} z index: 6 render style: image choice images: - black: /magic-future-common.mse-include/paintbrush_black.png - white: /magic-future-common.mse-include/paintbrush_white.png + black: {if choose_style() == "A" then "/magic-future-common.mse-include/paintbrush_black.png" else "artist_arrow.png"} + white: {if choose_style() == "A" then "/magic-future-common.mse-include/paintbrush_white.png" else "artist_arrow.png"} frame: left: 0 top: 0 @@ -238,7 +380,7 @@ extra card style: height: 621 z index: 0 render style: image - image: card.png + image: {choose_card()} foil layer: left: 0 top: 0 @@ -247,3 +389,39 @@ extra card style: z index: 3 render style: image image: {if styling.overlay == "" then nil else styling.overlay + "/overlay.png"} + cardSet code: + left: {if choose_style() == "E" then 115 else 0} + top: {if choose_style() == "E" then 579 else 0} + width: {if choose_style() == "E" then 100 else 0} + height: {if choose_style() == "E" then 14 else 0} + z index: 2 + visible: {if choose_style() == "E" then true else false} + font: + name: Relay-Medium + size: 8.5 + color: white + weight: bold + legacy copyright: + left: {if choose_style() == "A" then 67 else 0} + top: {if choose_style() == "A" then 587 else 0} + width: {if choose_style() == "A" then 296 else 0} + height: {if choose_style() == "A" then 14 else 0} + alignment: center + z index: 2 + visible: {if choose_style() == "A" then true else false} + font: + name: MPlantin + size: 6 + color: {styling.artist_font_color} + auto copyright: + left: 145 + top: {if choose_style() == "A" or set.automatic_copyright == "no" then 0 else 593} + width: {if choose_style() == "A" or set.automatic_copyright == "no" then 0 else 145} + height: 14 + z index: 2 + alignment: center middle + font: + name: MPlantin + size: 7.5 + color: white + weight: bold