Inventory Add,Remove,Use Management functions implemented.
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
#pragma once
|
||||
#include "Crawler.h"
|
||||
#include "Menu.h"
|
||||
#include "DEFINES.h"
|
||||
#include "olcPixelGameEngine.h"
|
||||
#include "safemap.h"
|
||||
#include "Item.h"
|
||||
|
||||
INCLUDE_GFX
|
||||
typedef Attribute A;
|
||||
|
||||
const Menu Menu::InitializeInventoryWindow(){
|
||||
constexpr int invWidth=5;
|
||||
constexpr int invHeight=3;
|
||||
constexpr int totalItemSlots=invWidth*invHeight;
|
||||
|
||||
Menu inventoryWindow(CENTERED,{24*invWidth,24*(invHeight+1)});
|
||||
|
||||
for(auto&key:Inventory::get()){
|
||||
|
||||
}
|
||||
for(int i=0;i<totalItemSlots;i++){
|
||||
inventoryWindow.GetStringVec(A::INDEXED_ITEMS).push_back();
|
||||
}
|
||||
|
||||
return testSubMenu;
|
||||
}
|
||||
Reference in New Issue
Block a user