I want to save my gui settings.
[ERROR][bot #1][06/09 01:51:05 AM]: Blocked permission: ("java.io.FilePermission" "C:\Users\ddd\OSbot" "read")
Is there ANY way i can save/read local files? What kind of alternative avenue can i explore?
paint looks like a unicorn took a shit on the screen
dont draw prayer xp if the person didnt choose to bury bones
make the items line up
dont have font mismatch
dont draw combat items which the user isnt going to get xp in
why is only your name on there, idc m8 i want to know the script name IF anything
i cant comment on the code since not public so yeah good luck mate
for (Player p : methods.getPlayers().getAll()) {
if (p.isVisible() || p.getPosition().distance(methods.myPlayer().getPosition()) < 10) {
// OH NOES
}
}
}
where methods is an instance of MethodProvider
note: i did not test this
That's silly because it negates a large aim of JavaFX (separating logic code from design code). I hope they can support it soon to encourage good programming habits.
You should probably avoid static time quantities in sleep. A lot of this logic should have probably been split into some kind of task-based architecture. The paint calculations should also be in another method. This is a fine first attempt but you should keep working to improve.
For future reference, I don't think it's currently possible to make GUIs using JavaFX for OSBot. If I had known this I would have saved myself a lot of trouble!
Why is
tbAnswer.Text = "";
input = input + "0";
tbAnswer.Text = tbAnswer.Text + input;
not a method?
I also think the buttons should have been created at run-time to reduce the clutter.