-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Katyara22 add button remove all waypoints #25
Katyara22 add button remove all waypoints #25
Conversation
For translate I have used ChatGPT-4
For translate I have used ChatGPT-4
bottomButtons = new ButtonList(buttonOptions, buttonAdd, buttonDimensions, buttonClose); | ||
buttonList.addAll(bottomButtons); | ||
|
||
init.run(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why are these runnable? I am not a fan of that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is a basic method defined the same logic for initializing 2 different Gui.
One Gui is the main initGui
, and another method initConfirmGui
it's a method for initializing confirming buttons to remove all waypoints.
I need to run this code because I don't want to repeat the same code.
It's allowed me to write that code.
@Override
public void initGui()
{
initBasicGui(() -> {
// here is some code
//For instance I init buttons which I need
});
}
private void initConfirmGui()
{
initBasicGui(() -> {
//Here another code
});
}
maybe it isn't correct in Java but I'm a .NET developer, so it looks correct to me
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I get what it's doing and why.
Seems like a .net thing haha. it works, it's fine
Thanks for your submission, I will merge it an publish a new release
bottomButtons = new ButtonList(buttonOptions, buttonAdd, buttonDimensions, buttonClose); | ||
buttonList.addAll(bottomButtons); | ||
|
||
init.run(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I get what it's doing and why.
Seems like a .net thing haha. it works, it's fine
Thanks for your submission, I will merge it an publish a new release
This has been published but under manual review on curseforge |
Hello,
I have a decade to add a button (remove all waypoints) because I have been playing with that mod. I like this mod but it pissed me off that I can't delete all the waypoints.