Fixed pet combo box not reappearing in quest mode.

This commit is contained in:
Doublestrike
2012-05-24 12:53:10 +00:00
parent 490dfe0e9a
commit 63f0ff69c0

View File

@@ -88,9 +88,10 @@ public class SSubmenuQuestUtil {
}
if (iSlot == 1) {
view.getCbxPet().removeAllItems();
// Pet list visibility
if (petList.size() > 0) {
view.getCbxPet().setEnabled(true);
view.getCbxPet().setVisible(true);
view.getCbxPet().addItem("Don't summon a pet");
for (final QuestPetController pet : petList) {
@@ -125,11 +126,10 @@ public class SSubmenuQuestUtil {
if (qA == null) { return; }
final IStatsAndPet[] viewsToUpdate = new IStatsAndPet[] {
VSubmenuDuels.SINGLETON_INSTANCE,
VSubmenuChallenges.SINGLETON_INSTANCE
VSubmenuDuels.SINGLETON_INSTANCE,
VSubmenuChallenges.SINGLETON_INSTANCE
};
for (final IStatsAndPet view : viewsToUpdate) {
// Fantasy UI display
view.getLblNextChallengeInWins().setVisible(true);