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

Floating Inventory Item Info Box #3

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

kphoenix137
Copy link
Member

@kphoenix137 kphoenix137 commented Feb 16, 2023

This PR features a floating info box in the style of Diablo 2. This is the first step towards fully removing the classic control panel and replacing it with one that doesn't have the built-in Info Box.

  • Hovering over an inventory/belt/stash item will draw a floating transparent box next to the item, containing all the item data (Will have much more capacity for information than the Control Panel.
  • Hovering over Objects will show the name over the object
  • Hovering over Monsters will show only the name (More detailed information about monsters can be found on the Health Bar. A new Beastiary Panel will be added containing the information that you would normally find in the Control Panel)

Accidentally overwrote the original PR #2

@kphoenix137 kphoenix137 force-pushed the master branch 2 times, most recently from 209f099 to 9267f98 Compare February 25, 2023 02:54
@kphoenix137 kphoenix137 added this to the 1.0.0 milestone Mar 1, 2023
@kphoenix137 kphoenix137 added QoL Quality of life feature Cosmetic Improves upon visual/audio elements of the game labels Mar 1, 2023
@kphoenix137 kphoenix137 changed the title Floating Info Box Floating Inventory Item Info Box Mar 1, 2023
@kphoenix137 kphoenix137 force-pushed the qol-floatinginfobox branch from 8c10443 to afce73c Compare June 28, 2023 02:25
@kphoenix137 kphoenix137 force-pushed the qol-floatinginfobox branch from 746c991 to 41d6bae Compare July 11, 2023 00:29
Add GetLongestLineWidth()

Move functions and update

namespace anonymous

Fix GetPanelPosition arguments for latest rebase

Removed unnecessary

Add function GetItemBonusColors()

Add function GetItemRequirementColors()

Fix y position bug

After rebase to latest master, inventory item floating boxes started appearing 28 px too high

Reorganize lines displayed

Replace string searching functionality

separate formatted strings

Fix bugs

Fix unique item display

Completely inelegant solution, but it's the only thing that works

Remove dead function

Major refactor

Allow stash floating info box

Temp fix for bad width calculation

Remove GetLongestLineWidth()

Remove unncessary accidental line

Remove changes from bad rebase

Remove debug code

Fix bad rebase

fix bad rebase

Fixed bug causing incorrect modified damage and armor values

Fix gold pile text

clang

Red text "Not Identified"

Fix durability colors

Fix bug where normal items displayed 1 extra blank line

Update Quest Unique Base Items for use with Floating Boxes

Fix render order

Alter quest base item AC

Altered the base AC of quest items that have unique data that manually sets the durability. 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.

Fixes

Items with values <= 0 wouldn't have those stats displayed at all. Also items with `IPL_AC_CURSE` weren't handled for text color. Fixed oversight where negative numbers for stats were underflowing for the text representation.

Extra info with Shift

Fix errors

Remove bad shift detection method

Add ability to map key for extra info

Fix bitwise logic and Format value

Add Game Info and fix no source

Fixes and cheat detection

Bad level detection

Expand incompatible CF bits

Fix regression with Harlequin Crest

Fix pcursstashitem comparison

Fix pcursstashitem comparison
@kphoenix137 kphoenix137 force-pushed the qol-floatinginfobox branch from 50c7583 to 64a8117 Compare March 31, 2024 20:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Cosmetic Improves upon visual/audio elements of the game QoL Quality of life feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant