Added label, text, and quantity descriptions for all items on the inventory menu.

This commit is contained in:
2023-10-07 19:06:56 -05:00
parent 803a0189d8
commit 461265a8a4
11 changed files with 73 additions and 26 deletions
+1 -1
View File
@@ -30,7 +30,6 @@ class Menu:IAttributable{
std::map<int/*Y*/,std::vector<MenuComponent*>>buttons; //Buttons are stored in rows followed by their column order.
std::map<int/*Y*/,std::vector<MenuComponent*>>newButtonArrangement; //The new setup that the buttons will be at if a drag operation completes.
std::vector<MenuComponent*>displayComponents; //Components that are only for displaying purposes.
safemap<std::string,MenuComponent*>components; //A friendly way to interrogate any component we are interested in.
vi2d selection={-1,-1};
vf2d pos; //Specify the upper-left corner of the window. Using CENTERED will always put this where the upper-left corner would center the window.
vf2d size; //Size in tiles (24x24), every menu will be tile-based
@@ -48,6 +47,7 @@ public:
static std::string themeSelection;
static safeunorderedmap<std::string,Theme>themes;
static const vf2d CENTERED;
safemap<std::string,MenuComponent*>components; //A friendly way to interrogate any component we are interested in.
private:
void HoverMenuSelect(Crawler*game);