-
-
Notifications
You must be signed in to change notification settings - Fork 388
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 functionality to place monsters in the Editor #7852
Conversation
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.
clang-tidy
found issue(s) with the introduced code (1/1)
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.
Hi, @ihhub, I left a couple comments after a quick check. Could you please check them in your spare time.
Also there is a mouse cursor issue. We may address it in a new PR: if you open the quick info or any dialog (in example quit dialog) the cursor is set to the POINTER after the dialog is closed and returned back to the monster icon after you move it to the nearby tile. (In future we could show a POINTER cursor above the places were the monster can not be placed).
fheroes2.2023-10-01.16-43-14-435.mp4
And a question to discuss - maybe after choosing a monster we should open the Dialog::SelectCount()
with the default monster count set by default?
Hi @Districh-ru , it is better to set monster count separately while you click on the monster. Doing it right after choosing a monster will limit your ability to quickly set them. I know that 0 doesn't mean 0 monsters but we can find a solution later. |
@Districh-ru , I am aware of the cursor issue. This is due to cursor updater class. I am still thinking how to address it properly in a separate PR. |
Hi @zenseii , could you please review the new text dialogs here? |
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.
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 left one comment regarding text, @ihhub
Co-authored-by: Zenseii <[email protected]>
Hi, @ihhub 2023-10-04.11-06-43.mp4But I suppose it is related to the issue you've discussed above with @Districh-ru . It's not urgent for sure. Everything else works well. |
Hi @Branikolog , I addressed your concern regarding the cursor. |
Thanks, @ihhub ! 2023-10-04.16-45-59.mp4 |
Hi @Branikolog , this is the same problem which @Districh-ru spotted. This will be addressed in the separate pull request. |
@ihhub Creature sometimes appears on the map really far from the cursor. The issue spotted by @Districh-ru , relates to showing the pointer cursor instead of creature sprite. Correct me if I'm wrong. But I want to apologize, the issue I'm talking about is valid for a previous implementation too. Edit: |
I also observe this issue: it appears only with disabled software cursor - the upper left corner of the monster sprite is set as the cursor center. |
Hi @Branikolog , I fixed the issue with the cursor. Please take a look. |
Kudos, SonarCloud Quality Gate passed! |
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.
Now cursor works fine for both rendering modes!
relates to #6845
fheroes2.engine.version_.1.0.8.2023-10-01.20-33-07.mp4
There are 2 problems which should be addressed later:
Both issues will be addressed in a separate pull request.