collinsmith / riiablo

Diablo II remade using Java and LibGDX
http://riiablo.com
Apache License 2.0
884 stars 101 forks source link

close stash and inventory simultaneously #29

Closed SomeFire closed 5 years ago

collinsmith commented 5 years ago

This is going to be resolved in an upcoming fix I'm planning to redesign how the panels are laid out. I'm going to change GameScreen to have a LEFT and RIGHT panel which will act as "button" groups to control which single panel is shown there, or null for hide all panels. You can actually see in GameScreen that I've already added the fields, but I haven't implemented them. So, if you set RIGHT to inventory it will automatically hide anything there and unhide the inventory panel. It's my hope that during this I can also try and eliminate having soo many public fields to GameScreen members. There are too many public fields in most of the in-game related code because I haven't figured out a proper flow yet.