Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package uk.cjkay.ProMiner;
- import uk.cjkay.FxPaint.*;
- import com.rsbuddy.event.events.MessageEvent;
- import com.rsbuddy.script.Manifest;
- import java.awt.*;
- @Manifest(
- name = "ProMiner F2P",
- description =
- "<html>" +
- " <b>Advanced F2P miner</b> - supports numerous features" +
- "</html>",
- authors = {"CJKay"}
- )
- public class Script extends FxPaintScript {
- FxFrame m_mainFrame;
- FxPanel m_topPanel;
- FxPanel m_bottomPanel;
- FxPanel m_bottomPanelLeft;
- FxPanel m_bottomPanelRight;
- public boolean onStart() {
- m_mainFrame = new FxFrame(new Point(4, 4), new Dimension(512, 334), new Color(0xFFFFFF));
- m_mainFrame.setPadding(new Insets(5, 5, 5, 5)); // Frame has a padding of 5 pixels
- m_mainFrame.setLayout(new FxBoxLayout(FxBoxLayout.Axis.AXIS_Y, 5)); // X-Axis layout with a spacing of 5px
- m_topPanel = new FxPanel(new Color(0xFF0000));
- m_topPanel.setFillLayoutArea(true);
- m_topPanel.setLayoutPrecedence(1);
- m_topPanel.setLayout(new FxBoxLayout(FxBoxLayout.Axis.AXIS_X, 5));
- m_bottomPanel = new FxPanel(new Color(0x00FF00));
- m_bottomPanel.setFillLayoutArea(true);
- m_bottomPanel.setLayoutPrecedence(1);
- m_bottomPanel.setLayout(new FxBoxLayout(FxBoxLayout.Axis.AXIS_X, 5));
- m_bottomPanel.setPadding(new Insets(5, 5, 5, 5));
- m_bottomPanelLeft = new FxPanel(new Color(0xFFFF00));
- m_bottomPanelLeft.setFillLayoutArea(true);
- m_bottomPanelLeft.setLayoutPrecedence(1);
- m_bottomPanelLeft.setLayout(new FxBoxLayout(FxBoxLayout.Axis.AXIS_X, 0));
- m_bottomPanelRight = new FxPanel(new Color(0x00FFFF));
- m_bottomPanelRight.setFillLayoutArea(true);
- m_bottomPanelRight.setLayoutPrecedence(1);
- m_bottomPanelRight.setLayout(new FxBoxLayout(FxBoxLayout.Axis.AXIS_X, 0));
- m_mainFrame.addComponent(m_topPanel);
- m_mainFrame.addComponent(m_bottomPanel);
- m_bottomPanel.addComponent(m_bottomPanelLeft);
- m_bottomPanel.addComponent(m_bottomPanelRight);
- addFrame(m_mainFrame);
- return true;
- }
- public int loop() {
- return 590;
- }
- public void messageReceived(MessageEvent e) {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement