mirror of
https://github.com/magefree/mage.git
synced 2025-12-22 11:32:00 -08:00
Hints: disable card hints in m15 render mode;
This commit is contained in:
parent
3f510e97c9
commit
f341d35ece
4 changed files with 13 additions and 1 deletions
|
|
@ -5,6 +5,7 @@
|
|||
*/
|
||||
package org.mage.card.arcane;
|
||||
|
||||
import mage.abilities.hint.HintUtils;
|
||||
import mage.cards.ArtRect;
|
||||
import mage.client.dialog.PreferencesDialog;
|
||||
import mage.constants.AbilityType;
|
||||
|
|
@ -137,12 +138,18 @@ public abstract class CardRenderer {
|
|||
}
|
||||
|
||||
protected void parseRules(List<String> stringRules, ArrayList<TextboxRule> keywords, ArrayList<TextboxRule> rules) {
|
||||
// Translate the textbox text
|
||||
// Translate the textbox text and remove card hints
|
||||
for (String rule : stringRules) {
|
||||
// remove all card hints
|
||||
if (rule.equals(HintUtils.HINT_START_MARK)) {
|
||||
break;
|
||||
}
|
||||
|
||||
// Kill reminder text
|
||||
if (PreferencesDialog.getCachedValue(PreferencesDialog.KEY_CARD_RENDERING_REMINDER_TEXT, "false").equals("false")) {
|
||||
rule = CardRendererUtils.killReminderText(rule).trim();
|
||||
}
|
||||
|
||||
if (!rule.isEmpty()) {
|
||||
TextboxRule tbRule = TextboxRuleParser.parse(cardView, rule);
|
||||
if (tbRule.type == TextboxRuleType.SIMPLE_KEYWORD) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue