Inventory Drag and Drop Management implemented.

This commit is contained in:
2023-10-07 18:28:19 -05:00
parent 5903692dbb
commit 803a0189d8
9 changed files with 89 additions and 22 deletions
+8
View File
@@ -21,4 +21,12 @@ void MenuComponent::Draw(Crawler*game,vf2d parentPos,bool focused){
game->DrawRectDecal(rect.pos+parentPos,rect.size,focused?GREY:GREY*"ThemeGlobal.MenuUnfocusedColorMult"_F);
}
game->DrawStringPropDecal(rect.pos+parentPos+rect.size/2-game->GetTextSizeProp(label)/2,label,focused?WHITE:WHITE*"ThemeGlobal.MenuUnfocusedColorMult"_F);
}
MenuComponent*MenuComponent::PickUpDraggableItem(){
return nullptr;
}
bool MenuComponent::DropDraggableItem(MenuComponent*draggable){
return false;
}