Added label, text, and quantity descriptions for all items on the inventory menu.
This commit is contained in:
@@ -111,12 +111,14 @@ void Menu::Update(Crawler*game){
|
||||
if(!MOUSE_NAVIGATION){
|
||||
if(game->GetKey(ENTER).bReleased||game->GetKey(SPACE).bReleased){
|
||||
if(selectedComponent->DropDraggableItem(draggingComponent)){
|
||||
delete draggingComponent; //We know we allocated a new instance of this, so we will now free it.
|
||||
draggingComponent=nullptr;
|
||||
}
|
||||
}
|
||||
}else{
|
||||
if(game->GetMouse(Mouse::LEFT).bReleased){
|
||||
if(selectedComponent->DropDraggableItem(draggingComponent)){
|
||||
delete draggingComponent; //We know we allocated a new instance of this, so we will now free it.
|
||||
draggingComponent=nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user