Commit 6f8d74df authored by twanvl's avatar twanvl

New keyword mode: 'inline', givin correct reminder text for 'scry'

parent a1859062
...@@ -348,6 +348,10 @@ label: ...@@ -348,6 +348,10 @@ label:
# Open dialogs # Open dialogs
all files All files all files All files
# New set window
game type: &Game type:
style type: &Card style:
# Preferences # Preferences
language: Language language: Language
app language: Language of the user interface: app language: Language of the user interface:
...@@ -380,6 +384,9 @@ label: ...@@ -380,6 +384,9 @@ label:
set code: Set &Code: set code: Set &Code:
apprentice export cancled: Export to Apprentice is cancled apprentice export cancled: Export to Apprentice is cancled
# Html export
html template: Template:
# Image slicer # Image slicer
original: Original: original: Original:
result: Result: result: Result:
...@@ -462,6 +469,7 @@ title: ...@@ -462,6 +469,7 @@ title:
# export # export
export images: Export Images export images: Export Images
export cancled: Export Cancled export cancled: Export Cancled
export html: Export HTML
############################################################## Action (undo/redo) names ############################################################## Action (undo/redo) names
action: action:
......
mse version: 0.3.2 mse version: 0.3.3
full name: Magic The Gathering, card blend utilities full name: Magic The Gathering, card blend utilities
version: 2006.01.17 version: 2007.05.13
# This file doesn't do anything, other files in this directory can be included # This file doesn't do anything, other files in this directory can be included
# in game/style files: # in game/style files:
......
mse version: 0.3.2 mse version: 0.3.3
short name: Magic short name: Magic
full name: Magic the Gathering full name: Magic the Gathering
icon: card-back.png icon: card-back.png
...@@ -214,7 +214,12 @@ init script: ...@@ -214,7 +214,12 @@ init script:
default_expand: { contains(match:mode, set.automatic_reminder_text) }, default_expand: { contains(match:mode, set.automatic_reminder_text) },
combine: { combine: {
if mode == "pseudo" then "<i-auto>{keyword}</i-auto>" if mode == "pseudo" then "<i-auto>{keyword}</i-auto>"
else "{keyword}<atom-reminder><i> ({process_english_hints(reminder)})</i></atom-reminder>" } else "{keyword}<atom-reminder-{mode}> ({process_english_hints(reminder)})</atom-reminder-{mode}>" }
) +
# step 2b : move inline keywords' reminder text to the end of the line
replace_rule(
match: "(<atom-reminder-inline>.*</atom-reminder-inline></kw[^>]*>)([^\n(]+)",
replace: "\\2\\1"
) + ) +
# step 3a : expand shortcut words ~ and CARDNAME # step 3a : expand shortcut words ~ and CARDNAME
replace_rule( replace_rule(
...@@ -410,8 +415,9 @@ set field: ...@@ -410,8 +415,9 @@ set field:
choice: core choice: core
choice: expert choice: expert
choice: pseudo choice: pseudo
choice: inline
choice: custom choice: custom
initial: old, core, expert, pseudo, custom initial: old, core, expert, pseudo, inline, custom
# Convert from older mse versions # Convert from older mse versions
script: script:
if value = "yes" then "old, core, expert, custom" if value = "yes" then "old, core, expert, custom"
...@@ -1459,8 +1465,12 @@ keyword: ...@@ -1459,8 +1465,12 @@ keyword:
keyword: keyword:
keyword: Scry keyword: Scry
match: Scry <atom-param>number</atom-param> match: Scry <atom-param>number</atom-param>
mode: expert mode: inline
reminder: Look at the top {english_number_multiple(param1)} card(s) of your library. Put any number of them on the bottom of your library in any order and the rest on top of your library in any order. reminder:
To scry {param1}, look at the top {
if param1.value==1 then "card of your library, then you may put that card on the bottom of your library."
else "{english_number(param1)} cards of your library. Put any number of them on the bottom of your library in any order and the rest on top in any order."
}
keyword: keyword:
keyword: Sunburst keyword: Sunburst
match: Sunburst match: Sunburst
......
...@@ -441,8 +441,8 @@ String KeywordDatabase::expand(const String& text, ...@@ -441,8 +441,8 @@ String KeywordDatabase::expand(const String& text,
assert(combine_script); assert(combine_script);
// Remove all old reminder texts // Remove all old reminder texts
String s = remove_tag_contents(text, _("<atom-reminder>")); String s = remove_tag_contents(text, _("<atom-reminder"));
s = remove_tag_contents(s, _("<atom-keyword>")); // OLD, TODO: REMOVEME s = remove_tag_contents(s, _("<atom-keyword")); // OLD, TODO: REMOVEME
s = remove_tag_contents(s, _("<atom-kwpph>")); s = remove_tag_contents(s, _("<atom-kwpph>"));
s = remove_tag(s, _("<keyword-param")); s = remove_tag(s, _("<keyword-param"));
s = remove_tag(s, _("<param-")); s = remove_tag(s, _("<param-"));
......
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