meepen / pluto-inv

pluto inventory
Mozilla Public License 2.0
2 stars 10 forks source link

Update inspect binds #7

Closed itsmeaddof123 closed 3 years ago

itsmeaddof123 commented 3 years ago

Had to redo the commit because I accidentally made the inspectbind branch from the rewardprints branch which is still under review and it was a huge mess

First, I made it so that the showcase panel that is created by +inspect lasts for 4 seconds instead of 2 second. Because the panel used to pop up automatically when you deployed the weapon, only lasting for 2 seconds made sense. Since you now have to manually pull it up with +inspect, having it last longer works better.

I also made it so that whenever +inspect is pressed, it checks to see if there is already a showcase panel present, and resets the time on it if so. It used to just re-make it each time, but that would cause it to do the popup animation each time which was super annoying.

Lastly, I added functionality to -inspect, since I noticed the command was added to console but it didn't actually do anything.

ThatLing commented 3 years ago

Is there a key already bound to +inspect?

meepen commented 3 years ago

no

itsmeaddof123 commented 3 years ago

@ThatLing when we go over the f1 Binds tab we'll probably add one for it

meepen commented 3 years ago

can you make this a option in the options menu

itsmeaddof123 commented 3 years ago

I don't think it needs to be an option, since the only time the menu pops up is when a player intentionally pulls it up. And since it only comes up when they want it to, I figure it should stay up long enough to actually be read.

itsmeaddof123 commented 3 years ago

Ok now it's toggleable