devilutionX
devilutionX copied to clipboard
Floating Info Box
https://github.com/diasurgical/devilutionX/assets/68359262/6cbf710b-653a-4131-9abc-a95d7ee2de6e
Adds toggle option for a floating info box (only for inventory currently). Features both moving the control panel item info to a floating box near the item, as well as expanded information since it's no longer limited to the space confinements of the control panel.
Then the question becomes what do we do with that disgusting black void at the bottom of the screen?
Get that new ui on there and get rid of the wasted space
Get that new ui on there and get rid of the wasted space
that's a whole nother ball game and that will DEFINITELY get some massive pushback. Ideally the new control panel I designed would go hand in hand with floating boxes. The entire reason I designed floating info boxes was a result of wanting a more compact control panel. It warranted having them. Having floating info boxes isn't as impactful of a QoL addition if it doesn't result in the UI obscuring less space. In fact using it with the default panel could be seen as detrimental, as now you're obscuring other parts of the screen with information that could be moved to the empty space in the default control panel instead.
However, this PR must come first before a new control panel. So if this gets completed and merged, then that opens the door to a potential next step.
Nice, been waiting a long time for this. I don't think it should be an option, but whatever. Make town map the option, that thing is getting annoying since I know where everything is.
Make town map the option, that thing is getting annoying since I know where everything is.
At lest don't make off topic complaints
Then the question becomes what do we do with that disgusting black void at the bottom of the screen?
I thought that this black area is also needed for other descriptions, for example for the Monster type or when there are items on the ground. But if this is no longer the case, then this area could be made transparent. Or we could use AI to paint over the surface with a suitable motif. But I would rather vote that we would create a larger battlefield.
The monster HP bar can show most of the other relevant informations. In combination they could provide for a more minimal main panel:
Nice! It's really very compact.
The monster HP bar can show most of the other relevant informations. In combination they could provide for a more minimal main panel:
Needs spell select
Bug: New player default gear doesn't show durability
Edit: Fixed
Bug: Bottom half inventory item boxes display an inventory slot height too high
Edit: Fixed
First post indicates it is working for stash items, but I can't get it to. Known?
First post indicates it is working for stash items, but I can't get it to. Known?
Not implemented yet
This looks really nice!
Currently broken. Can't figure out how to format these strings correctly (for damage range and durability range), and I can't figure out how to grab the item power string from PrintItemPower(). It bugs out hard when trying to display the strings.
Okay so at the moment, everything is functional and floating info boxes appear for both stash and inventory items (belt too). Next step would probably be to add floating boxes for anything else UI related. Anything not related to the UI should probably expand on the code used to display ground items.
@AJenbo if you have any suggestions going forward from here, let me know. All the major changes are done and I'll let this settle for a bit. (Although I just gotta add some minor touches in like displaying the amount for a gold pile, as well as changing durability text color based on affix)
Ah, we have a bug with displaying correct magical weapon damage
EDIT: Fixed
@kphoenix137 while you are actively working on the change (finding bugs, sending commits, etc), please consider always marking the PRs as "draft". Then, once you are good to go, remove it.
Otherwise each new comment here triggers a notification for people listening on issues.
Altered the base AC of quest items that have unique data that manually sets the AC. Therefore there shouldn't be any compatibility issues, and the end-user won't notice. This change was made to improve the colored numbers displayed for these items for AC.