/*    */ package org.ui.editors.map;
/*    */ 
/*    */ import java.awt.Font;
/*    */ import javax.swing.Box;
/*    */ import javax.swing.JLabel;
/*    */ import javax.swing.JOptionPane;
/*    */ import org.world.World;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public class MapInformation
/*    */ {
/*    */   private Box content;
/*    */   private JLabel title;
/*    */   private JLabel nameLabel;
/*    */   private JLabel authorLabel;
/*    */   private JLabel dateLabel;
/*    */   private JLabel versionLabel;
/*    */   private JLabel sizeLabel;
/*    */   private JLabel coinsLabel;
/*    */   
/*    */   public MapInformation(World world) {
/* 38 */     this.content = Box.createVerticalBox();
/* 39 */     this.content.setAlignmentX(0.0F);
/*    */ 
/*    */     
/* 42 */     this.title = new JLabel("Map information");
/* 43 */     this.title.setFont(new Font("Verdana", 0, 12));
/* 44 */     this.title.setAlignmentX(0.0F);
/*    */ 
/*    */ 
/*    */ 
/*    */     
/* 49 */     this.nameLabel = new JLabel("Map: " + world.getName());
/*    */     
/* 51 */     this.authorLabel = new JLabel("Author: " + world.getAuthor());
/*    */     
/* 53 */     this.dateLabel = new JLabel("Date: " + world.getDate());
/*    */     
/* 55 */     this.versionLabel = new JLabel("Version: " + world.getVersion());
/*    */     
/* 57 */     this.sizeLabel = new JLabel("Size: " + world.getWidth() + "x" + world.getHeight());
/*    */     
/* 59 */     this.coinsLabel = new JLabel("Coins(total) : " + world.getCoinCount());
/*    */ 
/*    */ 
/*    */     
/* 63 */     this.nameLabel.setAlignmentX(0.0F);
/* 64 */     this.authorLabel.setAlignmentX(0.0F);
/* 65 */     this.dateLabel.setAlignmentX(0.0F);
/* 66 */     this.versionLabel.setAlignmentX(0.0F);
/*    */ 
/*    */ 
/*    */     
/* 70 */     this.content.add(Box.createVerticalStrut(12));
/* 71 */     this.content.add(this.title);
/* 72 */     this.content.add(Box.createVerticalStrut(6));
/* 73 */     this.content.add(this.nameLabel);
/* 74 */     this.content.add(Box.createVerticalStrut(4));
/* 75 */     this.content.add(this.sizeLabel);
/* 76 */     this.content.add(Box.createVerticalStrut(6));
/* 77 */     this.content.add(this.coinsLabel);
/* 78 */     this.content.add(Box.createVerticalStrut(6));
/* 79 */     this.content.add(this.authorLabel);
/* 80 */     this.content.add(Box.createVerticalStrut(4));
/* 81 */     this.content.add(this.dateLabel);
/* 82 */     this.content.add(Box.createVerticalStrut(4));
/* 83 */     this.content.add(this.versionLabel);
/*    */ 
/*    */     
/* 86 */     JOptionPane.showInternalConfirmDialog(null, this.content, "RTX-GYTEBOT - map information", 0);
/*    */   }
/*    */ }


/* Location:              /home/teridax/Projects/Gytebot/GYTEBOT.jar!/org/ui/editors/map/MapInformation.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */