-
Notifications
You must be signed in to change notification settings - Fork 62
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
Increase vault size to 18x20 and rework main form #37
Increase vault size to 18x20 and rework main form #37
Conversation
epinter
commented
Dec 16, 2017
•
edited
Loading
edited
This is pretty amazing. I'll bump the minor version at least. |
I tried to keep the screen height shorter as I could... This was the best way I found to increase the size. Every other way I tried, I ended up trading 50px of height for 8 lines of vault... |
Nice work epinter. There is one problem that I can see. A lot of laptop displays have lower resolutions then the 910 that is the default with this size. |
I made some tests, didn't found better way... It's possible to reduce a bit (like 50px or 80px, but didn't worth it). I think it's not so critical because we can trust the scaling. |
Also, I don't think we should avoid the increase because users limited to 768px... The majority certainly isn't this kind of user. With scaling they still be able to use... |
There is a way to reduce it by a lot more but I think it's a bit more involved. It would require putting the Inventory Area as a new tab next to Equipment/Transfer Area/Storage Area. The other solution that I've seen is having a toggle between inventory and the rest (not so pretty). |
Maybe we could reduce the "default scaling", don't know if it's easy to implement... |
I think we don't need to worry, TQVault already scale automatically when screen is smaller: TQVaultAE/src/TQVaultAE.GUI/MainForm.cs Line 950 in 1f0cf15
|
It doesn't take the taskbar into consideration but you are right. It does fit to max height. I'm looking now to see how much of a pain it would be to put the inventory as a tab. |
Wouldn't be confusing to switch inventory using a tab ? We can change the calc to reduce the scale. like: this.ScaleForm(((Convert.ToSingle(Screen.PrimaryScreen.Bounds.Height) / Convert.ToSingle(this.Height))*0.95, false); The current scaling would be (768/910) = 0.84 or 764px Reducing (with *0.95), the new size would be 719px |
Personally, when I look this sketch, there's something that is not in the right place... I think the player inventory, storage area and transfer area are things we whould left the visual like they are in game... The scalling adjust on lower resolutions should work. What you think ? |
Looking at the screenshots I just posted I got inspired. We could get a bit of height by removing the char/vault name labels and using the combo boxes for the name of the selection. The labels seem redundant anyhow. The information is already displayed. What do you think? |
To be honest, I think the scaling adjust is necessary even if we change the interface to any other way. So I will add one commit with the change. I think we can merge this if everything works fine. And if we find a better way to place the panels, we can change in the future. |
I tried to remove the labels. To be honest I prefer without the redundant labels, but I left then to avoid radical changes (more). |
Commit added, can you test for me ? I don't have visual studio here atm. |
Interestingly enough, on the first run the UI seems to be scaled down but not the window. On the second run all look good. |
This is a better fix: this.ScaleForm(Convert.ToSingle(Screen.PrimaryScreen.WorkingArea.Height) / Convert.ToSingle(this.Height), false); |
OK, done. :) |
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.
nice work
@EtienneLamoureux seeing how you already approved the redesign, I'll merge this later today in order to draft a new release. |