Updated to version 0.6. Fixed and updated rate plugin.

This commit is contained in:
magenoxx 2011-01-30 10:42:35 +03:00
parent 2abc0e888d
commit f6b812bce1
27 changed files with 37 additions and 31 deletions

Binary file not shown.

View file

@ -6,7 +6,7 @@
<parent>
<groupId>org.mage</groupId>
<artifactId>mage-root</artifactId>
<version>0.5.1</version>
<version>0.6</version>
</parent>
<groupId>org.mage</groupId>

View file

@ -77,15 +77,15 @@ public class AboutDialog extends MageDialog {
}
});
jLabel1.setText("MAGE client, version 0.5.1");
jLabel1.setText("MAGE client, version 0.6");
lblVersion.setText("version");
jLabel2.setText("Courtesy: BetaSteward@googlemail.com");
jLabel3.setText("Devs: BetaSteward, Nantuko84, Eugen.Rivniy");
jLabel3.setText("Devs: BetaSteward, Nantuko84, Eugen.Rivniy, maurer.it");
jLabel4.setText("Thanks: KLo, Cosmo & Fritz");
//jLabel4.setText("Thanks: KLo, Cosmo & Fritz");
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);

View file

@ -7,7 +7,7 @@
<parent>
<groupId>org.mage</groupId>
<artifactId>mage-root</artifactId>
<version>0.5.1</version>
<version>0.6</version>
</parent>
<artifactId>Mage-Common</artifactId>

View file

@ -7,7 +7,7 @@
<parent>
<groupId>org.mage</groupId>
<artifactId>Mage-Plugins</artifactId>
<version>0.5.1</version>
<version>0.6</version>
</parent>
<artifactId>Mage-Card-Plugin</artifactId>

View file

@ -7,7 +7,7 @@
<parent>
<groupId>org.mage</groupId>
<artifactId>Mage-Plugins</artifactId>
<version>0.5.1</version>
<version>0.6</version>
</parent>
<artifactId>Mage-Counter-Plugin</artifactId>

View file

@ -6,7 +6,7 @@
<parent>
<groupId>org.mage</groupId>
<artifactId>Mage-Plugins</artifactId>
<version>0.5.1</version>
<version>0.6</version>
</parent>
<groupId>org.mage</groupId>
@ -25,7 +25,7 @@
<dependency>
<groupId>org.mage</groupId>
<artifactId>Mage-Sets</artifactId>
<version>0.5.1</version>
<version>0.6</version>
</dependency>
<dependency>
<groupId>com.googlecode.jspf</groupId>

View file

@ -15,6 +15,7 @@ import javax.swing.SwingUtilities;
import javax.swing.UIManager;
import org.apache.log4j.Logger;
import org.mage.plugins.rating.cards.CardsStorage;
import org.mage.plugins.rating.results.ResultHandler;
import org.mage.plugins.rating.ui.BigCard;
@ -22,6 +23,7 @@ public class RateFrame extends JFrame {
private static Logger log = Logger.getLogger(RateFrame.class);
private BigCard bigCard;
private JLabel label;
public RateFrame() {
setTitle("Mage Rate Cards, version 0.1");
@ -56,7 +58,8 @@ public class RateFrame extends JFrame {
bigCard.setBorder(BorderFactory.createLineBorder(Color.gray));
add(bigCard);
JLabel label = new JLabel("The results are stored for every 10 compare.");
//JLabel label = new JLabel("The results are stored for every 10 compare.");
label = new JLabel("Loading cards...Please wait.");
label.setBounds(290, 270, 300, 30);
add(label);
@ -78,6 +81,8 @@ public class RateFrame extends JFrame {
}
public void startRating() {
CardsStorage.getAllCards();
label.setText("The results are stored for every 10 compare.");
RateThread.getInstance().start(this, this.bigCard);
}

View file

@ -1,6 +1,6 @@
package org.mage.plugins.rating;
import java.awt.Component;
import java.awt.*;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
@ -25,6 +25,7 @@ public class RateThread extends Thread {
private static RateThread fInstance = new RateThread();
private CardPluginImpl impl = new CardPluginImpl();
public static CardDimensions dimensions = new CardDimensions(0.4);
public static Dimension cardDimension = new Dimension(dimensions.frameWidth, dimensions.frameHeight);
public static CardDimensions bigCardDimension = new CardDimensions(0.8);
private JFrame frame;
private MageCard mageCard1;
@ -51,11 +52,11 @@ public class RateThread extends Thread {
Card card1 = getRandomUniqueNonLandCard(null);
Card card2 = getRandomUniqueNonLandCard(card1);
mageCard1 = impl.getMageCard(new CardView(card1), dimensions, UUID.randomUUID(), new RateCallback(card1, card2, this, bigCard), false);
mageCard1 = impl.getMageCard(new CardView(card1), cardDimension, UUID.randomUUID(), new RateCallback(card1, card2, this, bigCard), false);
mageCard1.setCardBounds(bigCardDimension.frameWidth + 80, 10, dimensions.frameWidth, dimensions.frameHeight);
frame.add(mageCard1);
mageCard2 = impl.getMageCard(new CardView(card2), dimensions, UUID.randomUUID(), new RateCallback(card2, card1, this, bigCard), false);
mageCard2 = impl.getMageCard(new CardView(card2), cardDimension, UUID.randomUUID(), new RateCallback(card2, card1, this, bigCard), false);
mageCard2.setCardBounds(bigCardDimension.frameWidth + 80 + dimensions.frameWidth + 30, 10, dimensions.frameWidth, dimensions.frameHeight);
frame.add(mageCard2);

View file

@ -6,7 +6,7 @@
<parent>
<groupId>org.mage</groupId>
<artifactId>Mage-Plugins</artifactId>
<version>0.5.1</version>
<version>0.6</version>
</parent>
<artifactId>Mage-Theme-Plugin</artifactId>

View file

@ -7,7 +7,7 @@
<parent>
<groupId>org.mage</groupId>
<artifactId>mage-root</artifactId>
<version>0.5.1</version>
<version>0.6</version>
</parent>
<artifactId>Mage-Plugins</artifactId>

View file

@ -7,7 +7,7 @@
<parent>
<groupId>org.mage</groupId>
<artifactId>mage-root</artifactId>
<version>0.5.1</version>
<version>0.6</version>
</parent>
<artifactId>Mage-Deck-Constructed</artifactId>

View file

@ -7,7 +7,7 @@
<parent>
<groupId>org.mage</groupId>
<artifactId>mage-root</artifactId>
<version>0.5.1</version>
<version>0.6</version>
</parent>
<artifactId>Mage-Deck-Limited</artifactId>

View file

@ -6,7 +6,7 @@
<parent>
<groupId>org.mage</groupId>
<artifactId>mage-root</artifactId>
<version>0.5.1</version>
<version>0.6</version>
</parent>
<artifactId>Mage-Draft-8PlayerBooster</artifactId>

View file

@ -7,7 +7,7 @@
<parent>
<groupId>org.mage</groupId>
<artifactId>mage-root</artifactId>
<version>0.5.1</version>
<version>0.6</version>
</parent>
<artifactId>Mage-Game-FreeForAll</artifactId>

View file

@ -7,7 +7,7 @@
<parent>
<groupId>org.mage</groupId>
<artifactId>mage-root</artifactId>
<version>0.5.1</version>
<version>0.6</version>
</parent>
<artifactId>Mage-Game-TwoPlayerDuel</artifactId>

View file

@ -7,7 +7,7 @@
<parent>
<groupId>org.mage</groupId>
<artifactId>mage-root</artifactId>
<version>0.5.1</version>
<version>0.6</version>
</parent>
<artifactId>Mage-Player-AI</artifactId>

View file

@ -7,7 +7,7 @@
<parent>
<groupId>org.mage</groupId>
<artifactId>mage-root</artifactId>
<version>0.5.1</version>
<version>0.6</version>
</parent>
<artifactId>Mage-Player-AIMinimax</artifactId>

View file

@ -7,7 +7,7 @@
<parent>
<groupId>org.mage</groupId>
<artifactId>mage-root</artifactId>
<version>0.5.1</version>
<version>0.6</version>
</parent>
<artifactId>Mage-Player-Human</artifactId>

View file

@ -6,7 +6,7 @@
<parent>
<groupId>org.mage</groupId>
<artifactId>mage-root</artifactId>
<version>0.5.1</version>
<version>0.6</version>
</parent>
<artifactId>Mage-Server-Plugins</artifactId>
@ -22,7 +22,7 @@
<module>Mage.Player.AI</module>
<module>Mage.Player.AIMinimax</module>
<module>Mage.Player.Human</module>
<module>Mage.Draft.8PlayerBooster</module>
<module>Mage.Draft.8PlayerBooster</module>
</modules>
</project>

View file

@ -6,7 +6,7 @@
<parent>
<groupId>org.mage</groupId>
<artifactId>mage-root</artifactId>
<version>0.5.1</version>
<version>0.6</version>
</parent>
<artifactId>Mage-Server</artifactId>

View file

@ -7,7 +7,7 @@
<parent>
<groupId>org.mage</groupId>
<artifactId>mage-root</artifactId>
<version>0.5.1</version>
<version>0.6</version>
</parent>
<groupId>org.mage</groupId>

View file

@ -6,7 +6,7 @@
<parent>
<groupId>org.mage</groupId>
<artifactId>mage-root</artifactId>
<version>0.5.1</version>
<version>0.6</version>
</parent>
<artifactId>Mage-Tests</artifactId>

View file

@ -7,7 +7,7 @@
<parent>
<groupId>org.mage</groupId>
<artifactId>mage-root</artifactId>
<version>0.5.1</version>
<version>0.6</version>
</parent>
<artifactId>Mage</artifactId>

View file

@ -6,7 +6,7 @@
<groupId>org.mage</groupId>
<artifactId>mage-root</artifactId>
<version>0.5.1</version>
<version>0.6</version>
<packaging>pom</packaging>
<name>Mage Root</name>
<description>Mage Root POM</description>
@ -40,6 +40,6 @@
</repositories>
<properties>
<mage-version>0.5.1</mage-version>
<mage-version>0.6</mage-version>
</properties>
</project>