-
Notifications
You must be signed in to change notification settings - Fork 291
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
add report roll tooltip #4873
add report roll tooltip #4873
Conversation
kuronekochomusuke
commented
Nov 4, 2023
•
edited
Loading
edited
- add report roll tooltip for piloting and gunnery skill checks
- add report roll tooltip to more of the reported rolls
Love this. |
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.
Design question: Would it be beneficial to overload the Report::add()
function to take a Roll
parameter so that it can automatically addDataWithToolTip(roll.getIntValue(), roll.getReport())
- in such a way that by default tooltips get generated? It goes against Demitre's law a little because Report would need to know about Roll - but there is a LOT of reporting code intermingled within the game logic -but tool tips are part of reporting.
I think it would make things a little cleaner in game logic parts of the code. just need to see what impacts returning roll in some of the edge cases, but in general it seems an easy change. |
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 good to me