package me.dreamteam.tardis;

import javax.swing.*;
import javax.swing.border.MatteBorder;
import java.awt.*;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;

public class HowToPlay extends JFrame {

    private JPanel contentPane;

    /**
     * Create the frame.
     */
    public HowToPlay() {
        setAlwaysOnTop(true);
        setType(Type.UTILITY);

        // Window setup

        setResizable(false);
        setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
        setBounds(100, 100, 450, 400);
        setUndecorated(true);


        contentPane = new JPanel();

        // Set how to play to show in middle of container
        int htpX = GProperties.sX + 30;
        int htpY = GProperties.sY + 170;
        setLocation(htpX, htpY);

        contentPane.setBorder(new MatteBorder(1, 1, 1, 1, (Color) Color.WHITE));
        setContentPane(contentPane);
        contentPane.setLayout(null);

        addMouseListener(new MouseAdapter() {
            @Override
            public void mouseClicked(MouseEvent arg0) {
                setVisible(false);
                GProperties.wake = 1;
            }
        });

        JLabel htpHeading = new JLabel("How to Play...");
        htpHeading.setForeground(Color.WHITE);
        htpHeading.setFont(new Font("Volter (Goldfish)", Font.BOLD, 39));
        htpHeading.setBounds(10, 5, 430, 59);
        contentPane.add(htpHeading);

        JLabel htpTitle = new JLabel("Welcome to Super Spaceship Adventure");
        htpTitle.setFont(new Font("Tahoma", Font.BOLD, 14));
        htpTitle.setBounds(10, 65, 306, 23);
        htpTitle.setForeground(Color.WHITE);
        contentPane.add(htpTitle);

        JLabel htpLine1 = new JLabel("To begin, choose a spaceship.");
        htpLine1.setForeground(Color.WHITE);
        htpLine1.setBounds(10, 100, 306, 14);
        contentPane.add(htpLine1);

        JLabel htpLine2 = new JLabel("Your spaceship will guide you through the universe, a universe filled with enemies.");
        htpLine2.setForeground(Color.WHITE);
        htpLine2.setBounds(10, 115, 430, 14);
        contentPane.add(htpLine2);

        JLabel htpLine3 = new JLabel("To move your spaceship, use the LEFT and RIGHT ARROW KEY. ");
        htpLine3.setForeground(Color.WHITE);
        htpLine3.setBounds(10, 145, 430, 14);
        contentPane.add(htpLine3);

        JLabel htpLine4 = new JLabel("Alternatively, you can use the A KEY to move left, or the D KEY to move right");
        htpLine4.setForeground(Color.WHITE);
        htpLine4.setBounds(10, 160, 430, 14);
        contentPane.add(htpLine4);

        JLabel htpLine5 = new JLabel("Sometimes you may get a powerup, use SPACE KEY to activate them.");
        htpLine5.setForeground(Color.WHITE);
        htpLine5.setBounds(10, 185, 430, 14);
        contentPane.add(htpLine5);

        JLabel htpLine7 = new JLabel("Powerups are limited, so use them wisely!");
        htpLine7.setForeground(Color.WHITE);
        htpLine7.setBounds(10, 215, 430, 14);
        contentPane.add(htpLine7);

        JLabel htpLine8 = new JLabel("To pause the game at any time, use P KEY or ESC KEY");
        htpLine8.setForeground(Color.WHITE);
        htpLine8.setBounds(10, 245, 430, 14);
        contentPane.add(htpLine8);

        JLabel htpHide = new JLabel("Click here to hide...");
        htpHide.setForeground(Color.WHITE);
        htpHide.setFont(new Font("Volter (Goldfish)", Font.BOLD, 18));
        htpHide.setBounds(220, 364, 220, 25);
        contentPane.add(htpHide);

        JLabel htpHaveFun = new JLabel("Have fun!");
        htpHaveFun.setFont(new Font("Tahoma", Font.BOLD, 20));
        htpHaveFun.setBounds(10, 280, 306, 23);
        htpHaveFun.setForeground(Color.WHITE);
        contentPane.add(htpHaveFun);


    }
}

@@ -27,3761 +27,130 @@
 s;%0A%0A
-import javax.swing.*;%0Aimport javax.swing.border.MatteBorder;%0Aimport java.awt.*;%0Aimport java.awt.event.MouseAdapter;%0Aimport java.awt.event.MouseEvent;%0A%0Apublic class HowToPlay extends JFrame %7B%0A%0A    private JPanel contentPane;%0A%0A    /**%0A     * Create the frame.%0A     */%0A    public HowToPlay() %7B%0A        setAlwaysOnTop(true);%0A        setType(Type.UTILITY);%0A%0A        // Window setup%0A%0A        setResizable(false);%0A        setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);%0A        setBounds(100, 100, 450, 400);%0A        setUndecorated(true);%0A%0A%0A        contentPane = new JPanel();%0A%0A        // Set how to play to show in middle of container%0A        int htpX = GProperties.sX + 30;%0A        int htpY = GProperties.sY + 170;%0A        setLocation(htpX, htpY);%0A%0A        contentPane.setBorder(new MatteBorder(1, 1, 1, 1, (Color) Color.WHITE));%0A        setContentPane(contentPane);%0A        contentPane.setLayout(null);%0A%0A        addMouseListener(new MouseAdapter() %7B%0A            @Override%0A            public void mouseClicked(MouseEvent arg0) %7B%0A                setVisible(false);%0A                GProperties.wake = 1;%0A            %7D%0A        %7D);%0A%0A        JLabel htpHeading = new JLabel(%22How to Play...%22);%0A        htpHeading.setForeground(Color.WHITE);%0A        htpHeading.setFont(new Font(%22Volter (Goldfish)%22, Font.BOLD, 39));%0A        htpHeading.setBounds(10, 5, 430, 59);%0A        contentPane.add(htpHeading);%0A%0A        JLabel htpTitle = new JLabel(%22Welcome to Super Spaceship Adventure%22);%0A        htpTitle.setFont(new Font(%22Tahoma%22, Font.BOLD, 14));%0A        htpTitle.setBounds(10, 65, 306, 23);%0A        htpTitle.setForeground(Color.WHITE);%0A        contentPane.add(htpTitle);%0A%0A        JLabel htpLine1 = new JLabel(%22To begin, choose a spaceship.%22);%0A        htpLine1.setForeground(Color.WHITE);%0A        htpLine1.setBounds(10, 100, 306, 14);%0A        contentPane.add(htpLine1);%0A%0A        JLabel htpLine2 = new JLabel(%22Your spaceship will guide you through the universe, a universe filled with enemies.%22);%0A        htpLine2.setForeground(Color.WHITE);%0A        htpLine2.setBounds(10, 115, 430, 14);%0A        contentPane.add(htpLine2);%0A%0A        JLabel htpLine3 = new JLabel(%22To move your spaceship, use the LEFT and RIGHT ARROW KEY. %22);%0A        htpLine3.setForeground(Color.WHITE);%0A        htpLine3.setBounds(10, 145, 430, 14);%0A        contentPane.add(htpLine3);%0A%0A        JLabel htpLine4 = new JLabel(%22Alternatively, you can use the A KEY to move left, or the D KEY to move right%22);%0A        htpLine4.setForeground(Color.WHITE);%0A        htpLine4.setBounds(10, 160, 430, 14);%0A        contentPane.add(htpLine4);%0A%0A        JLabel htpLine5 = new JLabel(%22Sometimes you may get a powerup, use SPACE KEY to activate them.%22);%0A        htpLine5.setForeground(Color.WHITE);%0A        htpLine5.setBounds(10, 185, 430, 14);%0A        contentPane.add(htpLine5);%0A%0A        JLabel htpLine7 = new JLabel(%22Powerups are limited, so use them wisely!%22);%0A        htpLine7.setForeground(Color.WHITE);%0A        htpLine7.setBounds(10, 215, 430, 14);%0A        contentPane.add(htpLine7);%0A%0A        JLabel htpLine8 = new JLabel(%22To pause the game at any time, use P KEY or ESC KEY%22);%0A        htpLine8.setForeground(Color.WHITE);%0A        htpLine8.setBounds(10, 245, 430, 14);%0A        contentPane.add(htpLine8);%0A%0A        JLabel htpHide = new JLabel(%22Click here to hide...%22);%0A        htpHide.setForeground(Color.WHITE);%0A        htpHide.setFont(new Font(%22Volter (Goldfish)%22, Font.BOLD, 18));%0A        htpHide.setBounds(220, 364, 220, 25);%0A        contentPane.add(htpHide);%0A%0A        JLabel htpHaveFun = new JLabel(%22Have fun!%22);%0A        htpHaveFun.setFont(new Font(%22Tahoma%22, Font.BOLD, 20));%0A        htpHaveFun.setBounds(10, 280, 306, 23);%0A        htpHaveFun.setForeground(Color.WHITE);%0A        contentPane.add(htpHaveFun);%0A%0A%0A    %7D
+public class HowToPlay %7B%0A%0A    /*%0A    DEPRECATED CLASS - NO LONGER IN USE AND WILL BE REMOVED IN CONSEQUENT UPDATES%0A     */%0A
 %0A%7D%0A

Remove deprecated class