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

[demo] Add the PortraitWindow #1287

Draft
wants to merge 6 commits into
base: master
Choose a base branch
from
Draft

[demo] Add the PortraitWindow #1287

wants to merge 6 commits into from

Conversation

m7600
Copy link
Contributor

@m7600 m7600 commented Jun 13, 2021

This commit adds the PortraitWindow to the demo, please see #1282

Screenshot from 2021-06-13 16-47-57

@lynxlynxlynx lynxlynxlynx linked an issue Jun 13, 2021 that may be closed by this pull request
@lynxlynxlynx lynxlynxlynx added this to the 0.9.1 - TBN milestone Jun 13, 2021
@lynxlynxlynx
Copy link
Member

Please move the portrait controls, so it will look horizontally centered.

It also takes away even more game space. Maybe it would be better if we added it over the right bottom side, which is full of placeholder buttons anyway. And using much smaller portraits, since they don't do anything anyway.

@m7600
Copy link
Contributor Author

m7600 commented Jun 13, 2021

Ok, will do. If we're going to move the placeholder buttons, would it be a good idea to add the OptionsWindow now for them? To the left side of the screen.

@lynxlynxlynx
Copy link
Member

No, that would just take more space. I kinda like the pst/iwd2 approach here. We can move them in the place for dialog buttons and just hide them when in dialog. Then the now free grid space can be for the portraits

@m7600
Copy link
Contributor Author

m7600 commented Jun 13, 2021

Ok. Then we don't really need a new a PortraitWindow either, just a new button for MessageWindow with the player's potrait. Right? Or am I missing something here?

@lynxlynxlynx
Copy link
Member

Yeah, the code expects it, so if we provide it, things will just work, otherwise tons of hacks in shared code would be required, which would be bad.

There's no problem with overlapping, though we can also cut the region out from the messagewindow.

@m7600
Copy link
Contributor Author

m7600 commented Jun 14, 2021

Lynx how about now? Is this what you were referring to? The size of the small portrait is 38 x 60. I think it might be better if the portraits were on top of the text from the message window.
Screenshot from 2021-06-13 20-57-37

@lynxlynxlynx
Copy link
Member

No, I meant the buttons for the map etc., the fake options window. Then the portraits can be bigger (as if there were only max 4) in their place.

@m7600
Copy link
Contributor Author

m7600 commented Jun 14, 2021

Ok, but then where would the buttons go (map, inventory, center)?

@m7600
Copy link
Contributor Author

m7600 commented Jun 14, 2021

@lynxlynxlynx is this what you mean? Are the buttons for the map, inventory. etc. ok where I placed them at the bottom left?

Screenshot from 2021-06-14 09-21-06

@lynxlynxlynx
Copy link
Member

lynxlynxlynx commented Jun 14, 2021

Pretty much yeah. :) The portrait buttons can now be bigger. But also the messagewindow needs to be shortened and its bg cut, so things will work as expected on higher resolutions — where the windows otherwise wouldn't overlap perfectly.

@lynxlynxlynx lynxlynxlynx marked this pull request as draft August 8, 2021 16:30
@lynxlynxlynx lynxlynxlynx modified the milestones: 0.9.1 - TBN, 0.9.2 - TBN Feb 28, 2022
@lynxlynxlynx lynxlynxlynx removed this from the 0.9.2 - TBN milestone Jan 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[demo] Add the PortraitWindow
2 participants