Skip to content
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

[ENHANCEMENT] Draw lines for regions code location #848

Open
offline171 opened this issue Aug 2, 2024 · 0 comments
Open

[ENHANCEMENT] Draw lines for regions code location #848

offline171 opened this issue Aug 2, 2024 · 0 comments
Labels
enhancement Improvement to existing feature

Comments

@offline171
Copy link
Collaborator

Describe the current behavior of what you're trying to improve. If your enhancement request related to a problem, please also describe the problem.

Currently, we don't have borders drawn for users to see in StarBattle, even if the code recognizes where the borders are secretly. I think I found out where it would be best to add borders for StarBattle, and possibly other puzzles as well.

Describe the improvement you'd like

In order to draw an element that will work with the board, (scale with the board when the size is changed, etc,) Star Battle should override the "drawBoard(Graphics2D)" function in the file path "\LEGUP\src\main\java\edu\rpi\legup\ui\boardview\BoardView.java," and place the override in the file path "\LEGUP\src\main\java\edu\rpi\legup\puzzle\starbattle\StarBattleView.java." Other puzzles overriding the drawBoard function should be used as guidelines, where they super call drawBoard, and then afterwards, have seperate draw calls for whatever additional elements they need. We could use these additional calls to draw the borders.

Describe alternatives you've considered

No response

Additional Context

No response

@offline171 offline171 added the enhancement Improvement to existing feature label Aug 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improvement to existing feature
Projects
None yet
Development

No branches or pull requests

1 participant