Refactor menucomponent internal draw function a little bit for code organizing.

This commit is contained in:
2023-11-06 00:05:09 -06:00
parent fe8cbb022a
commit c82a3c5980
5 changed files with 18 additions and 9 deletions
-1
View File
@@ -38,7 +38,6 @@ void State_OverworldMap::OnUserUpdate(Crawler*game){
for(ConnectionPoint&cp:connections){
if(game->GetMouse(Mouse::LEFT).bPressed&&geom2d::overlaps(game->GetWorldMousePos(),cp.rect)){
Menu::OpenMenu(MenuType::INVENTORY);
for(int neighborInd:currentConnectionPoint->neighbors){
if(neighborInd==-1)continue;
ConnectionPoint&neighbor=ConnectionPointFromIndex(neighborInd);