mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38:00 +00:00
Quest and Battle icons are now set properly in matches
This commit is contained in:
@@ -505,6 +505,8 @@ public class QuestMainPanel extends QuestAbstractPanel {
|
|||||||
Constant.Runtime.HumanDeck[0] = humanDeck;
|
Constant.Runtime.HumanDeck[0] = humanDeck;
|
||||||
moveDeckToTop(humanDeckName);
|
moveDeckToTop(humanDeckName);
|
||||||
|
|
||||||
|
Constant.Quest.oppIconName[0] = getMatchIcon();
|
||||||
|
|
||||||
// Dev Mode occurs before Display
|
// Dev Mode occurs before Display
|
||||||
Constant.Runtime.DevMode[0] = devModeCheckBox.isSelected();
|
Constant.Runtime.DevMode[0] = devModeCheckBox.isSelected();
|
||||||
|
|
||||||
@@ -539,11 +541,6 @@ public class QuestMainPanel extends QuestAbstractPanel {
|
|||||||
Deck computer = questData.ai_getDeckNewFormat((selectedOpponent).getName());
|
Deck computer = questData.ai_getDeckNewFormat((selectedOpponent).getName());
|
||||||
Constant.Runtime.ComputerDeck[0] = computer;
|
Constant.Runtime.ComputerDeck[0] = computer;
|
||||||
|
|
||||||
String oppIconName = selectedOpponent.getName();
|
|
||||||
oppIconName = oppIconName.substring(0, oppIconName.length() - 1).trim() + ".jpg";
|
|
||||||
|
|
||||||
Constant.Quest.oppIconName[0] = oppIconName;
|
|
||||||
|
|
||||||
AllZone.GameAction.newGame(
|
AllZone.GameAction.newGame(
|
||||||
humanDeck,
|
humanDeck,
|
||||||
computer,
|
computer,
|
||||||
@@ -561,7 +558,6 @@ public class QuestMainPanel extends QuestAbstractPanel {
|
|||||||
Constant.Runtime.ComputerDeck[0] = computerDeck;
|
Constant.Runtime.ComputerDeck[0] = computerDeck;
|
||||||
|
|
||||||
AllZone.QuestAssignment = selectedQuest;
|
AllZone.QuestAssignment = selectedQuest;
|
||||||
Constant.Quest.oppIconName[0] = selectedQuest.getIconName();
|
|
||||||
|
|
||||||
int extraLife = 0;
|
int extraLife = 0;
|
||||||
|
|
||||||
@@ -580,6 +576,20 @@ public class QuestMainPanel extends QuestAbstractPanel {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
String getMatchIcon(){
|
||||||
|
String oppIconName;
|
||||||
|
|
||||||
|
if (isShowingQuests){
|
||||||
|
Quest_Assignment selectedQuest = ((QuestQuest) selectedOpponent).getQuestAssignment();
|
||||||
|
oppIconName = selectedQuest.getIconName();
|
||||||
|
}
|
||||||
|
|
||||||
|
else{
|
||||||
|
oppIconName = selectedOpponent.getName();
|
||||||
|
oppIconName = oppIconName.substring(0, oppIconName.length() - 1).trim() + ".jpg";
|
||||||
|
}
|
||||||
|
return oppIconName;
|
||||||
|
}
|
||||||
void showQuests() {
|
void showQuests() {
|
||||||
if (isShowingQuests) {
|
if (isShowingQuests) {
|
||||||
this.nextMatchLayout.show(nextMatchPanel, BATTLES);
|
this.nextMatchLayout.show(nextMatchPanel, BATTLES);
|
||||||
|
|||||||
Reference in New Issue
Block a user