Advertisement
NeBuR

Powdertoy

Nov 24th, 2011
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 23.05 KB | None | 0 0
  1. import java.awt.BorderLayout;
  2. import java.awt.Container;
  3. import java.awt.event.ActionEvent;
  4. import java.awt.event.ActionListener;
  5.  
  6. import javax.swing.JFrame;
  7. import javax.swing.JMenu;
  8. import javax.swing.JMenuBar;
  9. import javax.swing.JMenuItem;
  10. import javax.swing.JScrollPane;
  11. import javax.swing.JTextArea;
  12.  
  13. public class Powdertoy implements ActionListener {
  14.     JFrame applikation;
  15.     Container container;
  16.     double version = 0.5;
  17.  
  18.     // Menu-Items
  19.     // Walls
  20.     JMenuItem Wallconductive = new JMenuItem("Wall(conductive)");
  21.     JMenuItem EWall = new JMenuItem("E-Wall");
  22.     JMenuItem Detector = new JMenuItem("Detector");
  23.     JMenuItem Stream = new JMenuItem("Streamline");
  24.     JMenuItem Sign = new JMenuItem("Sign");
  25.     JMenuItem Fan = new JMenuItem("Fan");
  26.     JMenuItem Liquid = new JMenuItem("Liquid-premable Wall");
  27.     JMenuItem Absorbing = new JMenuItem("Particle Absorbing Wall");
  28.     JMenuItem Eraser = new JMenuItem("Eraser");
  29.     JMenuItem Wallnone = new JMenuItem("Wall(none-conductive)");
  30.     JMenuItem Nonpermeable = new JMenuItem("Non-permeable Wall");
  31.     JMenuItem Solid = new JMenuItem("Solid-permeable Wall");
  32.     JMenuItem Conductor = new JMenuItem("Conductor Wall");
  33.     JMenuItem EHole = new JMenuItem("E-Hole");
  34.     JMenuItem Gas = new JMenuItem("Gas-premeable Wall");
  35.     JMenuItem Gravity = new JMenuItem("Gravity Wall");
  36.     JMenuItem Energy = new JMenuItem("Energy Wall");
  37.  
  38.     // Electronics
  39.     JMenuItem METL = new JMenuItem("METL");
  40.     JMenuItem SPRK = new JMenuItem("SPRK");
  41.     JMenuItem PSCN = new JMenuItem("PSCN");
  42.     JMenuItem NSCN = new JMenuItem("NSCN");
  43.     JMenuItem NTCT = new JMenuItem("NTCT");
  44.     JMenuItem PTCT = new JMenuItem("PTCT");
  45.     JMenuItem ETRD = new JMenuItem("ETRD");
  46.     JMenuItem BTRY = new JMenuItem("BTRY");
  47.     JMenuItem SWCH = new JMenuItem("SWCH");
  48.     JMenuItem INWR = new JMenuItem("INWR");
  49.     JMenuItem LIGH = new JMenuItem("LIGH");
  50.     JMenuItem TESC = new JMenuItem("TESC");
  51.     JMenuItem INST = new JMenuItem("INST");
  52.     JMenuItem WIFI = new JMenuItem("WIFI");
  53.     JMenuItem ARAY = new JMenuItem("ARAY");
  54.     JMenuItem EMP = new JMenuItem("EMP");
  55.     JMenuItem MERC = new JMenuItem("MERC");
  56.     JMenuItem WIRE = new JMenuItem("WIRE");
  57.  
  58.     // Powered Materials
  59.     JMenuItem LCRY = new JMenuItem("LCRY");
  60.     JMenuItem PCLN = new JMenuItem("PCLN");
  61.     JMenuItem HSWC = new JMenuItem("HSWC");
  62.     JMenuItem PUMP = new JMenuItem("PUMP");
  63.     JMenuItem GPMP = new JMenuItem("GPMP");
  64.     JMenuItem DLAY = new JMenuItem("DLAY");
  65.     JMenuItem STOR = new JMenuItem("STOR");
  66.     JMenuItem PVOD = new JMenuItem("PVOD");
  67.     JMenuItem PBCN = new JMenuItem("PBCN");
  68.  
  69.     // Explosives
  70.     JMenuItem THRM = new JMenuItem("THRM");
  71.     JMenuItem FIRW = new JMenuItem("FIRW");
  72.     JMenuItem DEST = new JMenuItem("DEST");
  73.     JMenuItem FWRK = new JMenuItem("FRWK");
  74.     JMenuItem RBDM = new JMenuItem("RBDM");
  75.     JMenuItem LRBD = new JMenuItem("LRBD");
  76.     JMenuItem C4 = new JMenuItem("C4");
  77.     JMenuItem NITR = new JMenuItem("NITR");
  78.     JMenuItem GUN = new JMenuItem("GUN");
  79.     JMenuItem FIRE = new JMenuItem("FIRE");
  80.     JMenuItem C5 = new JMenuItem("C5");
  81.     JMenuItem BOMB = new JMenuItem("BOMB");
  82.     JMenuItem THDR = new JMenuItem("THDR");
  83.     JMenuItem CFLM = new JMenuItem("CFLM");
  84.     JMenuItem GBMB = new JMenuItem("GBMB");
  85.  
  86.     // Gasses
  87.     JMenuItem OXYG = new JMenuItem("OXYG");
  88.     JMenuItem CO2 = new JMenuItem("CO2");
  89.     JMenuItem SMKE = new JMenuItem("SMKE");
  90.     JMenuItem NBLE = new JMenuItem("NBLE");
  91.     JMenuItem PLSM = new JMenuItem("PLSM");
  92.     JMenuItem WTRV = new JMenuItem("WTRV");
  93.     JMenuItem GAS = new JMenuItem("GAS");
  94.     JMenuItem BOYL = new JMenuItem("BOYL");
  95.     JMenuItem HYGN = new JMenuItem("HYGN");
  96.     JMenuItem CAUS = new JMenuItem("CAUS");
  97.  
  98.     // Liquids
  99.     JMenuItem GLOW = new JMenuItem("GLOW");
  100.     JMenuItem LN2 = new JMenuItem("LN2");
  101.     JMenuItem DESL = new JMenuItem("DESL");
  102.     JMenuItem MWAX = new JMenuItem("MWAX");
  103.     JMenuItem ACID = new JMenuItem("ACID");
  104.     JMenuItem LAVA = new JMenuItem("LAVA");
  105.     JMenuItem OIL = new JMenuItem("OIL");
  106.     JMenuItem BIZR = new JMenuItem("BIZR");
  107.     JMenuItem PSTE = new JMenuItem("PSTE");
  108.     JMenuItem SOAP = new JMenuItem("SOAP");
  109.     JMenuItem SLTW = new JMenuItem("SLTW");
  110.     JMenuItem DSTW = new JMenuItem("DSTW");
  111.     JMenuItem BUBW = new JMenuItem("BUBW");
  112.     JMenuItem WATR = new JMenuItem("WATR");
  113.     JMenuItem FRZW = new JMenuItem("FRZW");
  114.  
  115.     // Powders
  116.     JMenuItem DUST = new JMenuItem("DUST");
  117.     JMenuItem STNE = new JMenuItem("STNE");
  118.     JMenuItem SNOW = new JMenuItem("SNOW");
  119.     JMenuItem CNCT = new JMenuItem("CNCT");
  120.     JMenuItem SALT = new JMenuItem("SALT");
  121.     JMenuItem BRMT = new JMenuItem("BRMT");
  122.     JMenuItem SAND = new JMenuItem("SAND");
  123.     JMenuItem BGLA = new JMenuItem("BGLA");
  124.     JMenuItem YEST = new JMenuItem("YEST");
  125.     JMenuItem FSEP = new JMenuItem("FSEP");
  126.     JMenuItem BCOL = new JMenuItem("BCOL");
  127.     JMenuItem FRZZ = new JMenuItem("FRZZ");
  128.     JMenuItem GRAV = new JMenuItem("GRAV");
  129.     JMenuItem ANAR = new JMenuItem("ANAR");
  130.     JMenuItem PQRT = new JMenuItem("PQRT");
  131.     JMenuItem BREL = new JMenuItem("BREL");
  132.     JMenuItem CLST = new JMenuItem("CLST");
  133.     JMenuItem EQVE = new JMenuItem("EQVE");
  134.     JMenuItem MORT = new JMenuItem("MORT");
  135.     JMenuItem LOVE = new JMenuItem("LOVE");
  136.  
  137.     // Solids
  138.     JMenuItem BRCK = new JMenuItem("BRCK");
  139.     JMenuItem GOO = new JMenuItem("GOO");
  140.     JMenuItem ICE = new JMenuItem("ICE");
  141.     JMenuItem WOOD = new JMenuItem("WOOD");
  142.     JMenuItem PLNT = new JMenuItem("PLNT");
  143.     JMenuItem BMTL = new JMenuItem("BMTL");
  144.     JMenuItem WAX = new JMenuItem("WAX");
  145.     JMenuItem GLAS = new JMenuItem("GLAS");
  146.     JMenuItem NICE = new JMenuItem("NICE");
  147.     JMenuItem COAL = new JMenuItem("COAL");
  148.     JMenuItem SPNG = new JMenuItem("SPNG");
  149.     JMenuItem VINE = new JMenuItem("VINE");
  150.     JMenuItem SHLD = new JMenuItem("SHLD");
  151.     JMenuItem PIPE = new JMenuItem("PIPE");
  152.     JMenuItem INVS = new JMenuItem("INVS");
  153.     JMenuItem QRTZ = new JMenuItem("QRTZ");
  154.     JMenuItem IRON = new JMenuItem("IRON");
  155.     JMenuItem DMND = new JMenuItem("DMND");
  156.     JMenuItem DRIC = new JMenuItem("DRIC");
  157.  
  158.     // Radioactive
  159.     JMenuItem URAN = new JMenuItem("URAN");
  160.     JMenuItem PLUT = new JMenuItem("PLUT");
  161.     JMenuItem NEUT = new JMenuItem("NEUT");
  162.     JMenuItem PHOT = new JMenuItem("PHOT");
  163.     JMenuItem AMTR = new JMenuItem("AMTR");
  164.     JMenuItem DEUT = new JMenuItem("DEUT");
  165.     JMenuItem WARP = new JMenuItem("WARP");
  166.     JMenuItem ISOZ = new JMenuItem("ISOZ");
  167.     JMenuItem ISZS = new JMenuItem("ISZS");
  168.     JMenuItem SING = new JMenuItem("SING");
  169.  
  170.     // Special
  171.     JMenuItem CLNE = new JMenuItem("CLNE");
  172.     JMenuItem BCLN = new JMenuItem("BCLN");
  173.     JMenuItem STKM = new JMenuItem("STKM");
  174.     JMenuItem VENT = new JMenuItem("VENT");
  175.     JMenuItem VACU = new JMenuItem("VACU");
  176.     JMenuItem CONV = new JMenuItem("CONV");
  177.     JMenuItem INSL = new JMenuItem("INSL");
  178.     JMenuItem VOID = new JMenuItem("VOID");
  179.     JMenuItem STK2 = new JMenuItem("STK2");
  180.     JMenuItem PRTI = new JMenuItem("PRTI");
  181.     JMenuItem PRTO = new JMenuItem("PRTO");
  182.     JMenuItem BHOL = new JMenuItem("BHOL");
  183.     JMenuItem WHOL = new JMenuItem("WHOL");
  184.  
  185.     // Life
  186.     JMenuItem GOL = new JMenuItem("GOL");
  187.     JMenuItem HLIF = new JMenuItem("HLIF");
  188.     JMenuItem ASIM = new JMenuItem("ASIM");
  189.     JMenuItem TWOx2 = new JMenuItem("2x2");
  190.     JMenuItem DANI = new JMenuItem("DANI");
  191.     JMenuItem AMOE = new JMenuItem("AMOE");
  192.     JMenuItem MOVE = new JMenuItem("MOVE");
  193.     JMenuItem PGOL = new JMenuItem("PGOL");
  194.     JMenuItem THIRTY4 = new JMenuItem("34");
  195.     JMenuItem LLIF = new JMenuItem("LLIF");
  196.     JMenuItem STAN = new JMenuItem("STAN");
  197.     JMenuItem SEED = new JMenuItem("SEED");
  198.     JMenuItem MAZE = new JMenuItem("MAZE");
  199.     JMenuItem COAG = new JMenuItem("COAG");
  200.     JMenuItem WALL = new JMenuItem("WALL");
  201.     JMenuItem GNAR = new JMenuItem("GNAR");
  202.     JMenuItem REPL = new JMenuItem("REPL");
  203.     JMenuItem MYST = new JMenuItem("MYST");
  204.     JMenuItem STAR = new JMenuItem("STAR");
  205.     JMenuItem LOTE = new JMenuItem("LOTE");
  206.     JMenuItem BRAN = new JMenuItem("BRAN");
  207.     JMenuItem FROG = new JMenuItem("FROG");
  208.  
  209.     // Tools
  210.     JMenuItem AIR = new JMenuItem("AIR");
  211.     JMenuItem VAC = new JMenuItem("VAC");
  212.     JMenuItem COOL = new JMenuItem("COOL");
  213.     JMenuItem HEAT = new JMenuItem("HEAT");
  214.     JMenuItem WIND = new JMenuItem("WIND");
  215.     JMenuItem PGRV = new JMenuItem("PGRV");
  216.     JMenuItem NGRV = new JMenuItem("NGRV");
  217.     JMenuItem PROP = new JMenuItem("PROP");
  218.    
  219.     //General
  220.     JMenuItem HUD =new JMenuItem("The HUD");
  221.     JMenuItem Dmodes =new JMenuItem("Display Modes");
  222.     JMenuItem Console= new JMenuItem("The Console");
  223.     JMenuItem Glitches = new JMenuItem("glitches and Secrets");
  224.     JMenuItem Hotkeys = new JMenuItem("Hotkeys");
  225.     JMenuItem Lua = new JMenuItem("Lua");
  226.     JMenuItem all = new JMenuItem("Display all");
  227.  
  228.     // About
  229.     JMenuItem About = new JMenuItem("About");
  230.    
  231.     //Tutorials
  232.     JMenuItem Howtowifi = new JMenuItem("How to use WIFI");
  233.  
  234.     JTextArea textarea;
  235.  
  236.     public Powdertoy() {
  237.         applikation = new JFrame("Powder Toy Helper by NeBuR");
  238.         container = applikation.getContentPane();
  239.         textarea = new JTextArea();
  240.  
  241.         // Menubar
  242.         JMenuBar menubar = new JMenuBar();
  243.         // Sub-menus
  244.         JMenu Walls = new JMenu("Walls");
  245.         JMenu Electronics = new JMenu("Electronics");
  246.         JMenu Powered = new JMenu("Powered Materials");
  247.         JMenu Explosives = new JMenu("Explosives");
  248.         JMenu Gasses = new JMenu("Gasses");
  249.         JMenu Liquids = new JMenu("Liquids");
  250.         JMenu Powders = new JMenu("Powders");
  251.         JMenu Solids = new JMenu("Solids");
  252.         JMenu Radioactive = new JMenu("Radioactive");
  253.         JMenu Special = new JMenu("Special");
  254.         JMenu Life = new JMenu("Life");
  255.         JMenu Tools = new JMenu("Tools");
  256.         JMenu General = new JMenu("General");
  257.         JMenu Tut = new JMenu("Tutorials");
  258.        
  259.         HUD.addActionListener(this);
  260.         Howtowifi.addActionListener(this);
  261.         all.addActionListener(this);
  262.         PROP.addActionListener(this);
  263.         Dmodes.addActionListener(this);
  264.         Console.addActionListener(this);
  265.         Glitches.addActionListener(this);
  266.         Hotkeys.addActionListener(this);
  267.         Lua.addActionListener(this);
  268.         Wallconductive.addActionListener(this);
  269.         EWall.addActionListener(this);
  270.         Detector.addActionListener(this);
  271.         Stream.addActionListener(this);
  272.         Sign.addActionListener(this);
  273.         Fan.addActionListener(this);
  274.         Liquid.addActionListener(this);
  275.         Absorbing.addActionListener(this);
  276.         Eraser.addActionListener(this);
  277.         Wallnone.addActionListener(this);
  278.         Nonpermeable.addActionListener(this);
  279.         Solid.addActionListener(this);
  280.         Conductor.addActionListener(this);
  281.         EHole.addActionListener(this);
  282.         Gas.addActionListener(this);
  283.         Gravity.addActionListener(this);
  284.         Energy.addActionListener(this);
  285.         METL.addActionListener(this);
  286.         SPRK.addActionListener(this);
  287.         PSCN.addActionListener(this);
  288.         NSCN.addActionListener(this);
  289.         NTCT.addActionListener(this);
  290.         PTCT.addActionListener(this);
  291.         ETRD.addActionListener(this);
  292.         BTRY.addActionListener(this);
  293.         SWCH.addActionListener(this);
  294.         INWR.addActionListener(this);
  295.         LIGH.addActionListener(this);
  296.         TESC.addActionListener(this);
  297.         INST.addActionListener(this);
  298.         WIFI.addActionListener(this);
  299.         ARAY.addActionListener(this);
  300.         EMP.addActionListener(this);
  301.         MERC.addActionListener(this);
  302.         WIRE.addActionListener(this);
  303.         LCRY.addActionListener(this);
  304.         PCLN.addActionListener(this);
  305.         HSWC.addActionListener(this);
  306.         PUMP.addActionListener(this);
  307.         GPMP.addActionListener(this);
  308.         DLAY.addActionListener(this);
  309.         STOR.addActionListener(this);
  310.         PVOD.addActionListener(this);
  311.         PBCN.addActionListener(this);
  312.         THRM.addActionListener(this);
  313.         FIRW.addActionListener(this);
  314.         DEST.addActionListener(this);
  315.         FWRK.addActionListener(this);
  316.         RBDM.addActionListener(this);
  317.         LRBD.addActionListener(this);
  318.         C4.addActionListener(this);
  319.         NITR.addActionListener(this);
  320.         GUN.addActionListener(this);
  321.         FIRE.addActionListener(this);
  322.         C5.addActionListener(this);
  323.         BOMB.addActionListener(this);
  324.         THDR.addActionListener(this);
  325.         CFLM.addActionListener(this);
  326.         GBMB.addActionListener(this);
  327.         OXYG.addActionListener(this);
  328.         CO2.addActionListener(this);
  329.         SMKE.addActionListener(this);
  330.         NBLE.addActionListener(this);
  331.         PLSM.addActionListener(this);
  332.         WTRV.addActionListener(this);
  333.         GAS.addActionListener(this);
  334.         BOYL.addActionListener(this);
  335.         HYGN.addActionListener(this);
  336.         CAUS.addActionListener(this);
  337.         GLOW.addActionListener(this);
  338.         LN2.addActionListener(this);
  339.         DESL.addActionListener(this);
  340.         MWAX.addActionListener(this);
  341.         ACID.addActionListener(this);
  342.         LAVA.addActionListener(this);
  343.         OIL.addActionListener(this);
  344.         BIZR.addActionListener(this);
  345.         PSTE.addActionListener(this);
  346.         SOAP.addActionListener(this);
  347.         SLTW.addActionListener(this);
  348.         DSTW.addActionListener(this);
  349.         BUBW.addActionListener(this);
  350.         WATR.addActionListener(this);
  351.         FRZW.addActionListener(this);
  352.         DUST.addActionListener(this);
  353.         STNE.addActionListener(this);
  354.         SNOW.addActionListener(this);
  355.         CNCT.addActionListener(this);
  356.         SALT.addActionListener(this);
  357.         BRMT.addActionListener(this);
  358.         SAND.addActionListener(this);
  359.         BGLA.addActionListener(this);
  360.         YEST.addActionListener(this);
  361.         FSEP.addActionListener(this);
  362.         BCOL.addActionListener(this);
  363.         FRZZ.addActionListener(this);
  364.         GRAV.addActionListener(this);
  365.         ANAR.addActionListener(this);
  366.         PQRT.addActionListener(this);
  367.         BREL.addActionListener(this);
  368.         CLST.addActionListener(this);
  369.         EQVE.addActionListener(this);
  370.         MORT.addActionListener(this);
  371.         LOVE.addActionListener(this);
  372.         BRCK.addActionListener(this);
  373.         GOO.addActionListener(this);
  374.         ICE.addActionListener(this);
  375.         WOOD.addActionListener(this);
  376.         PLNT.addActionListener(this);
  377.         BMTL.addActionListener(this);
  378.         WAX.addActionListener(this);
  379.         GLAS.addActionListener(this);
  380.         NICE.addActionListener(this);
  381.         COAL.addActionListener(this);
  382.         SPNG.addActionListener(this);
  383.         SHLD.addActionListener(this);
  384.         PIPE.addActionListener(this);
  385.         INVS.addActionListener(this);
  386.         QRTZ.addActionListener(this);
  387.         IRON.addActionListener(this);
  388.         DMND.addActionListener(this);
  389.         DRIC.addActionListener(this);
  390.         URAN.addActionListener(this);
  391.         PLUT.addActionListener(this);
  392.         NEUT.addActionListener(this);
  393.         PHOT.addActionListener(this);
  394.         AMTR.addActionListener(this);
  395.         DEUT.addActionListener(this);
  396.         WARP.addActionListener(this);
  397.         ISOZ.addActionListener(this);
  398.         ISZS.addActionListener(this);
  399.         SING.addActionListener(this);
  400.         CLNE.addActionListener(this);
  401.         BCLN.addActionListener(this);
  402.         STKM.addActionListener(this);
  403.         VENT.addActionListener(this);
  404.         VACU.addActionListener(this);
  405.         CONV.addActionListener(this);
  406.         INSL.addActionListener(this);
  407.         VOID.addActionListener(this);
  408.         STK2.addActionListener(this);
  409.         PRTI.addActionListener(this);
  410.         PRTO.addActionListener(this);
  411.         BHOL.addActionListener(this);
  412.         WHOL.addActionListener(this);
  413.         GOL.addActionListener(this);
  414.         HLIF.addActionListener(this);
  415.         ASIM.addActionListener(this);
  416.         TWOx2.addActionListener(this);
  417.         DANI.addActionListener(this);
  418.         AMOE.addActionListener(this);
  419.         MOVE.addActionListener(this);
  420.         PGOL.addActionListener(this);
  421.         THIRTY4.addActionListener(this);
  422.         LLIF.addActionListener(this);
  423.         STAN.addActionListener(this);
  424.         SEED.addActionListener(this);
  425.         MAZE.addActionListener(this);
  426.         COAG.addActionListener(this);
  427.         WALL.addActionListener(this);
  428.         GNAR.addActionListener(this);
  429.         REPL.addActionListener(this);
  430.         MYST.addActionListener(this);
  431.         STAR.addActionListener(this);
  432.         LOTE.addActionListener(this);
  433.         BRAN.addActionListener(this);
  434.         FROG.addActionListener(this);
  435.         AIR.addActionListener(this);
  436.         VAC.addActionListener(this);
  437.         COOL.addActionListener(this);
  438.         HEAT.addActionListener(this);
  439.         WIND.addActionListener(this);
  440.         PGRV.addActionListener(this);
  441.         NGRV.addActionListener(this);
  442.         About.addActionListener(this);
  443.        
  444.         menubar.add(General);
  445.         menubar.add(Walls);
  446.         menubar.add(Electronics);
  447.         menubar.add(Powered);
  448.         menubar.add(Explosives);
  449.         menubar.add(Gasses);
  450.         menubar.add(Liquids);
  451.         menubar.add(Powders);
  452.         menubar.add(Solids);
  453.         menubar.add(Radioactive);
  454.         menubar.add(Special);
  455.         menubar.add(Life);
  456.         menubar.add(Tools);
  457.         menubar.add(About);
  458.         menubar.add(Tut);
  459.         Tut.add(Howtowifi);
  460.         General.add(HUD);
  461.         General.add(Dmodes);
  462.         General.add(Console);
  463.         General.add(Glitches);
  464.         General.add(Hotkeys);
  465.         General.add(Lua);
  466.         General.add(all);
  467.         Tools.add(PROP);
  468.         Walls.add(Wallconductive);
  469.         Walls.add(EWall);
  470.         Walls.add(Detector);
  471.         Walls.add(Stream);
  472.         Walls.add(Sign);
  473.         Walls.add(Fan);
  474.         Walls.add(Liquid);
  475.         Walls.add(Absorbing);
  476.         Walls.add(Eraser);
  477.         Walls.add(Wallnone);
  478.         Walls.add(Nonpermeable);
  479.         Walls.add(Solid);
  480.         Walls.add(Conductor);
  481.         Walls.add(EHole);
  482.         Walls.add(Gas);
  483.         Walls.add(Gravity);
  484.         Walls.add(Energy);
  485.         Electronics.add(METL);
  486.         Electronics.add(SPRK);
  487.         Electronics.add(PSCN);
  488.         Electronics.add(NSCN);
  489.         Electronics.add(NTCT);
  490.         Electronics.add(PTCT);
  491.         Electronics.add(ETRD);
  492.         Electronics.add(BTRY);
  493.         Electronics.add(SWCH);
  494.         Electronics.add(INWR);
  495.         Electronics.add(LIGH);
  496.         Electronics.add(TESC);
  497.         Electronics.add(INST);
  498.         Electronics.add(WIFI);
  499.         Electronics.add(ARAY);
  500.         Electronics.add(EMP);
  501.         Electronics.add(MERC);
  502.         Electronics.add(WIRE);
  503.         Powered.add(LCRY);
  504.         Powered.add(PCLN);
  505.         Powered.add(HSWC);
  506.         Powered.add(PUMP);
  507.         Powered.add(GPMP);
  508.         Powered.add(DLAY);
  509.         Powered.add(STOR);
  510.         Powered.add(PVOD);
  511.         Powered.add(PBCN);
  512.         Explosives.add(THRM);
  513.         Explosives.add(FIRW);
  514.         Explosives.add(DEST);
  515.         Explosives.add(FWRK);
  516.         Explosives.add(RBDM);
  517.         Explosives.add(LRBD);
  518.         Explosives.add(C4);
  519.         Explosives.add(NITR);
  520.         Explosives.add(GUN);
  521.         Explosives.add(FIRE);
  522.         Explosives.add(C5);
  523.         Explosives.add(BOMB);
  524.         Explosives.add(THDR);
  525.         Explosives.add(CFLM);
  526.         Explosives.add(GBMB);
  527.         Gasses.add(OXYG);
  528.         Gasses.add(CO2);
  529.         Gasses.add(SMKE);
  530.         Gasses.add(NBLE);
  531.         Gasses.add(PLSM);
  532.         Gasses.add(WTRV);
  533.         Gasses.add(GAS);
  534.         Gasses.add(BOYL);
  535.         Gasses.add(HYGN);
  536.         Gasses.add(CAUS);
  537.         Liquids.add(GLOW);
  538.         Liquids.add(LN2);
  539.         Liquids.add(DESL);
  540.         Liquids.add(MWAX);
  541.         Liquids.add(ACID);
  542.         Liquids.add(LAVA);
  543.         Liquids.add(OIL);
  544.         Liquids.add(BIZR);
  545.         Liquids.add(PSTE);
  546.         Liquids.add(SOAP);
  547.         Liquids.add(SLTW);
  548.         Liquids.add(DSTW);
  549.         Liquids.add(BUBW);
  550.         Liquids.add(WATR);
  551.         Liquids.add(FRZW);
  552.         Powders.add(DUST);
  553.         Powders.add(STNE);
  554.         Powders.add(SNOW);
  555.         Powders.add(CNCT);
  556.         Powders.add(SALT);
  557.         Powders.add(BRMT);
  558.         Powders.add(SAND);
  559.         Powders.add(BGLA);
  560.         Powders.add(YEST);
  561.         Powders.add(FSEP);
  562.         Powders.add(BCOL);
  563.         Powders.add(FRZZ);
  564.         Powders.add(GRAV);
  565.         Powders.add(ANAR);
  566.         Powders.add(PQRT);
  567.         Powders.add(BREL);
  568.         Powders.add(CLST);
  569.         Powders.add(EQVE);
  570.         Powders.add(MORT);
  571.         Powders.add(LOVE);
  572.         Solids.add(BRCK);
  573.         Solids.add(GOO);
  574.         Solids.add(ICE);
  575.         Solids.add(WOOD);
  576.         Solids.add(PLNT);
  577.         Solids.add(BMTL);
  578.         Solids.add(WAX);
  579.         Solids.add(GLAS);
  580.         Solids.add(NICE);
  581.         Solids.add(COAL);
  582.         Solids.add(SPNG);
  583.         Solids.add(VINE);
  584.         Solids.add(SHLD);
  585.         Solids.add(PIPE);
  586.         Solids.add(INVS);
  587.         Solids.add(QRTZ);
  588.         Solids.add(IRON);
  589.         Solids.add(DMND);
  590.         Solids.add(DRIC);
  591.         Radioactive.add(URAN);
  592.         Radioactive.add(PLUT);
  593.         Radioactive.add(NEUT);
  594.         Radioactive.add(PHOT);
  595.         Radioactive.add(AMTR);
  596.         Radioactive.add(DEUT);
  597.         Radioactive.add(WARP);
  598.         Radioactive.add(ISOZ);
  599.         Radioactive.add(ISZS);
  600.         Radioactive.add(SING);
  601.         Special.add(CLNE);
  602.         Special.add(BCLN);
  603.         Special.add(STKM);
  604.         Special.add(VENT);
  605.         Special.add(VACU);
  606.         Special.add(CONV);
  607.         Special.add(INSL);
  608.         Special.add(VOID);
  609.         Special.add(STK2);
  610.         Special.add(PRTI);
  611.         Special.add(PRTO);
  612.         Special.add(BHOL);
  613.         Special.add(WHOL);
  614.         Life.add(GOL);
  615.         Life.add(HLIF);
  616.         Life.add(ASIM);
  617.         Life.add(TWOx2);
  618.         Life.add(DANI);
  619.         Life.add(AMOE);
  620.         Life.add(MOVE);
  621.         Life.add(PGOL);
  622.         Life.add(THIRTY4);
  623.         Life.add(LLIF);
  624.         Life.add(STAN);
  625.         Life.add(SEED);
  626.         Life.add(MAZE);
  627.         Life.add(COAG);
  628.         Life.add(WALL);
  629.         Life.add(GNAR);
  630.         Life.add(REPL);
  631.         Life.add(MYST);
  632.         Life.add(STAR);
  633.         Life.add(LOTE);
  634.         Life.add(BRAN);
  635.         Life.add(FROG);
  636.         Tools.add(AIR);
  637.         Tools.add(VAC);
  638.         Tools.add(COOL);
  639.         Tools.add(HEAT);
  640.         Tools.add(WIND);
  641.         Tools.add(PGRV);
  642.         Tools.add(NGRV);
  643.         Tools.add(PROP);
  644.        
  645.         applikation.add(menubar, BorderLayout.NORTH);
  646.         applikation.add(new JScrollPane(textarea), BorderLayout.CENTER);
  647.         applikation.setSize(850, 300);
  648.         applikation.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
  649.         applikation.setVisible(true);
  650.         textarea.append("Powder Toy Helper loaded");
  651.        
  652.     }
  653.     public void actionPerformed(ActionEvent object) {
  654.         if (object.getSource() == About){
  655.             javax.swing.JOptionPane.showMessageDialog(null,"Powder Toy Helper Version "+version+" by NeBuR \n The Powder Toy : www.powdertoy.co.uk" );     
  656.         }
  657.         if (object.getSource() == Wallconductive){
  658.             textarea.append(data.wallconductive());
  659.         }
  660.        
  661.         if (object.getSource() == EWall){
  662.             textarea.append(data.ewall());
  663.         }
  664.         if (object.getSource() == Detector){
  665.             textarea.append(data.detector());
  666.         }
  667.         if (object.getSource() == Stream){
  668.             textarea.append(data.stream());
  669.         }
  670.         if (object.getSource() == Sign){
  671.             textarea.append(data.sign());
  672.         }
  673.         if (object.getSource() == Fan){
  674.             textarea.append(data.fan());
  675.         }
  676.         if (object.getSource() == Liquid){
  677.             textarea.append(data.liquid());
  678.         }
  679.         if (object.getSource() == Absorbing){
  680.             textarea.append(data.absorbing());
  681.         }
  682.         if (object.getSource() == Eraser){
  683.             textarea.append(data.eraser());
  684.         }
  685.         if (object.getSource() == Wallnone){
  686.             textarea.append(data.nonconductive());
  687.         }
  688.         if (object.getSource() == Nonpermeable){
  689.             textarea.append(data.nonpermeable());
  690.         }
  691.         if (object.getSource() == Solid){
  692.             textarea.append(data.solid());
  693.         }
  694.         if (object.getSource() == Conductor){
  695.             textarea.append(data.conductor());
  696.         }
  697.         if (object.getSource() == EHole){
  698.             textarea.append(data.ehole());
  699.         }
  700.         if (object.getSource() == Gas){
  701.             textarea.append(data.gaswall());
  702.         }
  703.         if (object.getSource() == Gravity){
  704.             textarea.append(data.gravity());
  705.         }
  706.         if (object.getSource() == Energy){
  707.             textarea.append(data.energy());
  708.         }
  709.         if (object.getSource() == METL){
  710.             textarea.append(data.metl());
  711.         }
  712.         if (object.getSource() ==SPRK ){
  713.             textarea.append(data.sprk());
  714.         }
  715.         if (object.getSource() ==PSCN ){
  716.             textarea.append(data.pscn());
  717.         }
  718.         if (object.getSource() ==NSCN ){
  719.             textarea.append(data.nscn());
  720.         }
  721.         if (object.getSource() == NTCT){
  722.             textarea.append(data.ntct());
  723.         }
  724.         if (object.getSource() ==PTCT ){
  725.             textarea.append(data.ptct());
  726.         }
  727.         if (object.getSource() == ETRD){
  728.             textarea.append(data.etrd());
  729.         }
  730.         if (object.getSource() == BTRY){
  731.             textarea.append(data.btry());
  732.         }
  733.         if (object.getSource() == SWCH){
  734.             textarea.append(data.swch());
  735.         }
  736.         if (object.getSource() ==INWR ){
  737.             textarea.append(data.inwr());
  738.         }
  739.         if (object.getSource() ==LIGH ){
  740.             textarea.append(data.ligh());
  741.         }
  742.         if (object.getSource() ==TESC ){
  743.             textarea.append(data.tesc());
  744.         }
  745.         if (object.getSource() ==INST ){
  746.             textarea.append(data.inst());
  747.         }
  748.         if (object.getSource() ==WIFI ){
  749.             textarea.append(data.wifi());
  750.         }
  751.         if (object.getSource() ==ARAY ){
  752.             textarea.append(data.aray());
  753.         }
  754.         if (object.getSource() ==EMP ){
  755.             textarea.append(data.emp());
  756.         }
  757.         if (object.getSource() ==MERC ){
  758.             textarea.append(data.merc());
  759.         }
  760.         if (object.getSource() ==WIRE ){
  761.             textarea.append(data.wire());
  762.         }
  763.        
  764.        
  765.         if (object.getSource() == all){
  766.             textarea.append(data.all());
  767.         }
  768.     }
  769.  
  770.  
  771.  
  772. public static void main(String[] args)
  773. {
  774.     new Powdertoy();
  775. }
  776.  
  777. }
  778.  
  779.  
  780.  
  781.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement