Commit e66bfad6 authored by Léo DUBOIS--JULIENNE's avatar Léo DUBOIS--JULIENNE
Browse files

images

parent 0bc32aec
......@@ -89,7 +89,7 @@ public class CreationFlotte extends JPanel {// JPanel {
ready.setPreferredSize(DIMENSION_RESET);
retour = new JButton("Déserter");
ready.setPreferredSize(DIMENSION_RETOUR);
refresh = new JButton(new ImageIcon("img/interface/bouton/BoutonRafraichirMap.png"));
refresh = new JButton(new ImageIcon("img/interface/bouton/creationFlotte/BoutonRafraichirMap.png"));
refresh.setText("Raffraichir la carte");
refresh.setPreferredSize(DIMENSION_REFRESH);
......
......@@ -47,25 +47,25 @@ public class MenuPrincipal extends JPanel {
this.setName(titre);
try {
creerFlotte = new JButton(new ImageIcon((ImageIO.read(new File("img/interface/bouton/BoutonJouer1.png"))).getScaledInstance(175, 70, Image.SCALE_SMOOTH)));
creerFlotte.setRolloverIcon(new ImageIcon((ImageIO.read(new File("img/interface/bouton/BoutonJouer1Hover.png"))).getScaledInstance(175, 70, Image.SCALE_SMOOTH)));
creerFlotte.setPressedIcon(new ImageIcon((ImageIO.read(new File("img/interface/bouton/BoutonJouer1Pressed.png"))).getScaledInstance(175, 70, Image.SCALE_SMOOTH)));
creerFlotte = new JButton(new ImageIcon((ImageIO.read(new File("img/interface/bouton/menu/BoutonJouer1.png"))).getScaledInstance(175, 70, Image.SCALE_SMOOTH)));
creerFlotte.setRolloverIcon(new ImageIcon((ImageIO.read(new File("img/interface/bouton/menu/BoutonJouer1Hover.png"))).getScaledInstance(175, 70, Image.SCALE_SMOOTH)));
creerFlotte.setPressedIcon(new ImageIcon((ImageIO.read(new File("img/interface/bouton/menu/BoutonJouer1Pressed.png"))).getScaledInstance(175, 70, Image.SCALE_SMOOTH)));
creerFlotte.setPreferredSize(DIMENSION_BOUTTONS);
regles = new JButton(new ImageIcon((ImageIO.read(new File("img/interface/bouton/BoutonRegles1.png"))).getScaledInstance(175, 70, Image.SCALE_SMOOTH)));
regles.setRolloverIcon(new ImageIcon((ImageIO.read(new File("img/interface/bouton/BoutonRegles1Hover.png"))).getScaledInstance(175, 70, Image.SCALE_SMOOTH)));
regles.setPressedIcon(new ImageIcon((ImageIO.read(new File("img/interface/bouton/BoutonRegles1Pressed.png"))).getScaledInstance(175, 70, Image.SCALE_SMOOTH)));
regles = new JButton(new ImageIcon((ImageIO.read(new File("img/interface/bouton/menu/BoutonRegles1.png"))).getScaledInstance(175, 70, Image.SCALE_SMOOTH)));
regles.setRolloverIcon(new ImageIcon((ImageIO.read(new File("img/interface/bouton/menu/BoutonRegles1Hover.png"))).getScaledInstance(175, 70, Image.SCALE_SMOOTH)));
regles.setPressedIcon(new ImageIcon((ImageIO.read(new File("img/interface/bouton/menu/BoutonRegles1Pressed.png"))).getScaledInstance(175, 70, Image.SCALE_SMOOTH)));
regles.setPreferredSize(DIMENSION_BOUTTONS);
options = new JButton(new ImageIcon((ImageIO.read(new File("img/interface/bouton/BoutonOptions1.png"))).getScaledInstance(175, 70, Image.SCALE_SMOOTH)));
options.setRolloverIcon(new ImageIcon((ImageIO.read(new File("img/interface/bouton/BoutonOptions1Hover.png"))).getScaledInstance(175, 70, Image.SCALE_SMOOTH)));
options.setPressedIcon(new ImageIcon((ImageIO.read(new File("img/interface/bouton/BoutonOptions1Pressed.png"))).getScaledInstance(175, 70, Image.SCALE_SMOOTH)));
options = new JButton(new ImageIcon((ImageIO.read(new File("img/interface/bouton/menu/BoutonOptions1.png"))).getScaledInstance(175, 70, Image.SCALE_SMOOTH)));
options.setRolloverIcon(new ImageIcon((ImageIO.read(new File("img/interface/bouton/menu/BoutonOptions1Hover.png"))).getScaledInstance(175, 70, Image.SCALE_SMOOTH)));
options.setPressedIcon(new ImageIcon((ImageIO.read(new File("img/interface/bouton/menu/BoutonOptions1Pressed.png"))).getScaledInstance(175, 70, Image.SCALE_SMOOTH)));
options.setPreferredSize(DIMENSION_BOUTTONS);
credits = new JButton(new ImageIcon((ImageIO.read(new File("img/interface/bouton/BoutonCredits1.png"))).getScaledInstance(175, 70, Image.SCALE_SMOOTH)));
credits.setRolloverIcon(new ImageIcon((ImageIO.read(new File("img/interface/bouton/BoutonCredits1Hover.png"))).getScaledInstance(175, 70, Image.SCALE_SMOOTH)));
credits.setPressedIcon(new ImageIcon((ImageIO.read(new File("img/interface/bouton/BoutonCredits1Pressed.png"))).getScaledInstance(175, 70, Image.SCALE_SMOOTH)));
credits = new JButton(new ImageIcon((ImageIO.read(new File("img/interface/bouton/menu/BoutonCredits1.png"))).getScaledInstance(175, 70, Image.SCALE_SMOOTH)));
credits.setRolloverIcon(new ImageIcon((ImageIO.read(new File("img/interface/bouton/menu/BoutonCredits1Hover.png"))).getScaledInstance(175, 70, Image.SCALE_SMOOTH)));
credits.setPressedIcon(new ImageIcon((ImageIO.read(new File("img/interface/bouton/menu/BoutonCredits1Pressed.png"))).getScaledInstance(175, 70, Image.SCALE_SMOOTH)));
credits.setPreferredSize(DIMENSION_BOUTTONS);
quitter = new JButton(new ImageIcon((ImageIO.read(new File("img/interface/bouton/BoutonQuitter1.png"))).getScaledInstance(175, 70, Image.SCALE_SMOOTH)));
quitter.setRolloverIcon(new ImageIcon((ImageIO.read(new File("img/interface/bouton/BoutonQuitter1Hover.png"))).getScaledInstance(175, 70, Image.SCALE_SMOOTH)));
quitter.setPressedIcon(new ImageIcon((ImageIO.read(new File("img/interface/bouton/BoutonQuitter1Pressed.png"))).getScaledInstance(175, 70, Image.SCALE_SMOOTH)));
quitter = new JButton(new ImageIcon((ImageIO.read(new File("img/interface/bouton/menu/BoutonQuitter1.png"))).getScaledInstance(175, 70, Image.SCALE_SMOOTH)));
quitter.setRolloverIcon(new ImageIcon((ImageIO.read(new File("img/interface/bouton/menu/BoutonQuitter1Hover.png"))).getScaledInstance(175, 70, Image.SCALE_SMOOTH)));
quitter.setPressedIcon(new ImageIcon((ImageIO.read(new File("img/interface/bouton/menu/BoutonQuitter1Pressed.png"))).getScaledInstance(175, 70, Image.SCALE_SMOOTH)));
quitter.setPreferredSize(DIMENSION_BOUTTONS);
} catch (IOException e) {
System.out.println("erreur lors du chargement d'une image");
......
......@@ -79,11 +79,11 @@ public class PageJeu extends JPanel {
confirmer.setAlignmentX(Component.CENTER_ALIGNMENT);
confirmer.setAlignmentY(Component.RIGHT_ALIGNMENT);
try {
confirmer.setIcon(new ImageIcon((ImageIO.read(new File("img/interface/bouton/boutonShoot1.png"))).getScaledInstance((int)tailleConfirmer.getWidth(),(int)tailleConfirmer.getHeight(), Image.SCALE_SMOOTH)));
confirmer.setIcon(new ImageIcon((ImageIO.read(new File("img/interface/bouton/pageJeu/boutonShoot1.png"))).getScaledInstance((int)tailleConfirmer.getWidth(),(int)tailleConfirmer.getHeight(), Image.SCALE_SMOOTH)));
confirmer.setRolloverIcon(new ImageIcon((ImageIO.read(new File("img/interface/bouton/BoutonShoot1Hover.png"))).getScaledInstance((int)tailleConfirmer.getWidth(),(int)tailleConfirmer.getHeight(), Image.SCALE_SMOOTH)));
confirmer.setRolloverIcon(new ImageIcon((ImageIO.read(new File("img/interface/bouton/pageJeu/BoutonShoot1Hover.png"))).getScaledInstance((int)tailleConfirmer.getWidth(),(int)tailleConfirmer.getHeight(), Image.SCALE_SMOOTH)));
confirmer.setPressedIcon(new ImageIcon((ImageIO.read(new File("img/interface/bouton/BoutonShoot1Pressed.png"))).getScaledInstance((int)tailleConfirmer.getWidth(),(int)tailleConfirmer.getHeight(), Image.SCALE_SMOOTH)));
confirmer.setPressedIcon(new ImageIcon((ImageIO.read(new File("img/interface/bouton/pageJeu/BoutonShoot1Pressed.png"))).getScaledInstance((int)tailleConfirmer.getWidth(),(int)tailleConfirmer.getHeight(), Image.SCALE_SMOOTH)));
} catch (IOException e) {
System.out.println("Erreur lors du chargement d'une des icones du bouton \"Confirmer\"");
......
......@@ -16,7 +16,7 @@ import info1.Vue.PageJeu;
import info1.Vue.ViewManager;
import info1.controlleur.AjouterBateau;
import info1.controlleur.ChangerVersionControleur;
import info1.controlleur.CreerPartieControleur;
//import info1.controlleur.CreerPartieControleur;
import info1.controlleur.OuvrirChoixPartieControleur;
import info1.controlleur.OuvrirCreditsControleur;
import info1.controlleur.OuvrirCreerFlotteControleur;
......@@ -120,7 +120,7 @@ public class appli {
if (heberger)
{
optionsPartie.afficherHeberger();
optionsPartie.FixeListenerCreation(new CreerPartieControleur(optionsPartie));
// optionsPartie.FixeListenerCreation(new CreerPartieControleur(optionsPartie));
}
else
......
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