Inventory Drag and Drop Management implemented.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user