Jump to content
hunterl31

options menu

Recommended Posts

If by "options menu" you're referring to GUI (graphical user interface) then you would have to design one using a builder of your choice (Windows builder pro) for eclipse add on is recommended. 

 

Then import you're class like this in your class file that contains the onLoop etc

import PackageName.guiName;

Then in underneath the "Class extends Script" part write: (Creating an object so it's easier to refer to)

guiName GUI = new guiName();

In your onStart() method set it visible:

GUI.setVisible(true);

Finally in your onLoop() method give it the condition: 

while(GUI.isVisible()){
sleep(100);
}

I would recommend looking in the "Tutorials" section for @Pandemic's tutorial on beginner scripting, no offence but it doesn't seem as if you know much. Basic knowledge of java is quite essential otherwise you will find it tricky.

 

Anyhow good luck smile.png

Edited by Divinity
  • Like 1
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...