Advertisement
Guest User

Untitled

a guest
Jul 28th, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 2.07 KB | None | 0 0
  1. package uk.cjkay.ProMiner;
  2.  
  3. import uk.cjkay.FxPaint.*;
  4.  
  5. import com.rsbuddy.event.events.MessageEvent;
  6. import com.rsbuddy.script.Manifest;
  7.  
  8. import java.awt.*;
  9.  
  10. @Manifest(
  11.     name = "ProMiner F2P",
  12.     description =
  13.         "<html>" +
  14.         "   <b>Advanced F2P miner</b> - supports numerous features" +
  15.         "</html>",
  16.     authors = {"CJKay"}
  17. )
  18. public class Script extends FxPaintScript {
  19.     FxFrame m_mainFrame;
  20.     FxPanel m_topPanel;
  21.     FxPanel m_bottomPanel;
  22.     FxPanel m_bottomPanelLeft;
  23.     FxPanel m_bottomPanelRight;
  24.  
  25.     public boolean onStart() {
  26.         m_mainFrame = new FxFrame(new Point(4, 4), new Dimension(512, 334), new Color(0xFFFFFF));
  27.         m_mainFrame.setPadding(new Insets(5, 5, 5, 5)); // Frame has a padding of 5 pixels
  28.         m_mainFrame.setLayout(new FxBoxLayout(FxBoxLayout.Axis.AXIS_Y, 5)); // X-Axis layout with a spacing of 5px
  29.  
  30.             m_topPanel = new FxPanel(new Color(0xFF0000));
  31.             m_topPanel.setFillLayoutArea(true);
  32.             m_topPanel.setLayoutPrecedence(1);
  33.             m_topPanel.setLayout(new FxBoxLayout(FxBoxLayout.Axis.AXIS_X, 5));
  34.  
  35.             m_bottomPanel = new FxPanel(new Color(0x00FF00));
  36.             m_bottomPanel.setFillLayoutArea(true);
  37.             m_bottomPanel.setLayoutPrecedence(1);
  38.             m_bottomPanel.setLayout(new FxBoxLayout(FxBoxLayout.Axis.AXIS_X, 5));
  39.             m_bottomPanel.setPadding(new Insets(5, 5, 5, 5));
  40.  
  41.                 m_bottomPanelLeft = new FxPanel(new Color(0xFFFF00));
  42.                 m_bottomPanelLeft.setFillLayoutArea(true);
  43.                 m_bottomPanelLeft.setLayoutPrecedence(1);
  44.                 m_bottomPanelLeft.setLayout(new FxBoxLayout(FxBoxLayout.Axis.AXIS_X, 0));
  45.  
  46.                 m_bottomPanelRight = new FxPanel(new Color(0x00FFFF));
  47.                 m_bottomPanelRight.setFillLayoutArea(true);
  48.                 m_bottomPanelRight.setLayoutPrecedence(1);
  49.                 m_bottomPanelRight.setLayout(new FxBoxLayout(FxBoxLayout.Axis.AXIS_X, 0));
  50.  
  51.         m_mainFrame.addComponent(m_topPanel);
  52.         m_mainFrame.addComponent(m_bottomPanel);
  53.             m_bottomPanel.addComponent(m_bottomPanelLeft);
  54.             m_bottomPanel.addComponent(m_bottomPanelRight);
  55.         addFrame(m_mainFrame);
  56.         return true;
  57.     }
  58.  
  59.     public int loop() {
  60.         return 590;
  61.     }
  62.  
  63.     public void messageReceived(MessageEvent e) {
  64.        
  65.     }
  66. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement