-
Notifications
You must be signed in to change notification settings - Fork 0
feat: dialogue popup implemented #34
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
Conversation
|
|
||
| viewModel = loader.getController(); | ||
| viewModel.setNpcImage(npcImage); | ||
| viewModel.setBackgroundImage("file:assets/popup-background.png"); //images do not load from fxml on my computer |
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.
might be a little problem with working with this code, maybe it's because of operating system, but it's fine as long as it works on any of our computers, the app doesn't need to be cross-platform
| viewModel.setNpcFrameImage("file:assets/npc-frame.png"); | ||
| this.setFill(Color.TRANSPARENT); | ||
|
|
||
| textPages = List.of(text.split("(?<=\\G.{200})")); //split text into 200-letter pages |
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.
splitting question into pages is nice, but we'll need a limit for answer's length, cause dividing answers into pages seems like too much for me (though it's just my opinion)
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.
For now I've decided not to implement a back and forth dialogue. Thought of it as more of a guide or a quick tip for a player. I guess that's still up for debate.
| public void setPreviousButtonOnClick(EventHandler<? super MouseEvent> callback) { | ||
| previousButton.setOnMouseClicked(callback); | ||
| } | ||
| } |
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.
LGTM, gj
co012
left a comment
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.
Looks solid
co012
left a comment
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.
LGTM
kkafar
left a comment
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.
lgtm
Description
Checklist