Implemented locking of accessories in the inventory and merchant window to prevent immediate selling of an item. Fixed a bug that prevented custom menu actions to be performed on the menu select button when a button was clicked. Release Build 7966. Patch Version 0.4.5.
if(!GetSelection().expired()){//If we are on controller/gamepad it's possible we haven't highlighted a button yet, so don't click this button right away.
if(!GetSelection().expired()){//If we are on controller/gamepad it's possible we haven't highlighted a button yet, so don't click this button right away.
if(prevMenu!=currentMenu)Menu::alreadyClicked=true;//The logic here is that only when we navigate between menus do we care about setting the already clicked flag to prevent further clicks going into the new screen. If we're still on the same menu, then we will proceed with regular inputs.