Inventory refactor completed. Individual monster loot and stage loot inventories now compatible.
This commit is contained in:
@@ -36,6 +36,7 @@ SUCH DAMAGE.
|
||||
#include "MenuLabel.h"
|
||||
#include "MenuComponent.h"
|
||||
#include "InventoryScrollableWindowComponent.h"
|
||||
#include "PopupMenuLabel.h"
|
||||
|
||||
INCLUDE_game
|
||||
|
||||
@@ -50,7 +51,7 @@ void Menu::InitializeLevelCompleteWindow(){
|
||||
|
||||
MenuComponent*monsterLootOutline=NEW MenuComponent(LEVEL_COMPLETE,{{0,32},{windowSize.size.x-80.f,72}},"",DO_NOTHING,ButtonAttr::UNSELECTABLE);
|
||||
MenuLabel*monsterLootLabel=NEW MenuLabel(LEVEL_COMPLETE,{{0,32},{windowSize.size.x-80.f,12}},"Monster Loot",1,ComponentAttr::LEFT_ALIGN|ComponentAttr::SHADOW|ComponentAttr::OUTLINE);
|
||||
InventoryScrollableWindowComponent*monsterLootWindow=NEW InventoryScrollableWindowComponent(LEVEL_COMPLETE,{{0,44},{windowSize.size.x-80.f,60}},"Monster Loot");
|
||||
InventoryScrollableWindowComponent*monsterLootWindow=NEW InventoryScrollableWindowComponent(LEVEL_COMPLETE,{{0,44},{windowSize.size.x-80.f,60}},"Monster Loot","Monster Loot Popup Item Name","Monster Loot Popup Item Description");
|
||||
|
||||
levelCompleteWindow->AddComponent("Monster Loot Outline",monsterLootOutline);
|
||||
levelCompleteWindow->AddComponent("Monster Loot Label",monsterLootLabel);
|
||||
@@ -58,7 +59,7 @@ void Menu::InitializeLevelCompleteWindow(){
|
||||
|
||||
MenuComponent*stageLootOutline=NEW MenuComponent(LEVEL_COMPLETE,{{0,108},{windowSize.size.x-80.f,72}},"",DO_NOTHING,ButtonAttr::UNSELECTABLE);
|
||||
MenuLabel*stageLootLabel=NEW MenuLabel(LEVEL_COMPLETE,{{0,108},{windowSize.size.x-80.f,12}},"Stage Loot",1,ComponentAttr::LEFT_ALIGN|ComponentAttr::SHADOW|ComponentAttr::OUTLINE);
|
||||
InventoryScrollableWindowComponent*stageLootWindow=NEW InventoryScrollableWindowComponent(LEVEL_COMPLETE,{{0,120},{windowSize.size.x-80.f,60}},"Stage Loot");
|
||||
InventoryScrollableWindowComponent*stageLootWindow=NEW InventoryScrollableWindowComponent(LEVEL_COMPLETE,{{0,120},{windowSize.size.x-80.f,60}},"Stage Loot","Stage Loot Popup Item Name","Stage Loot Popup Item Description");
|
||||
|
||||
levelCompleteWindow->AddComponent("Stage Loot Outline",stageLootOutline);
|
||||
levelCompleteWindow->AddComponent("Stage Loot Label",stageLootLabel);
|
||||
@@ -71,4 +72,16 @@ void Menu::InitializeLevelCompleteWindow(){
|
||||
levelCompleteWindow->AddComponent("Level Details Outline",detailsOutline);
|
||||
levelCompleteWindow->AddComponent("Level EXP Gain Outline",detailsExpGain);
|
||||
levelCompleteWindow->AddComponent("Next Button",nextButton);
|
||||
|
||||
PopupMenuLabel*monsterLootPopupItemName=NEW PopupMenuLabel(LEVEL_COMPLETE,{{0,108},{windowSize.size.x-80.f,12}},"",1.0f,ComponentAttr::LEFT_ALIGN|ComponentAttr::SHADOW|ComponentAttr::OUTLINE|ComponentAttr::BACKGROUND);
|
||||
PopupMenuLabel*monsterLootPopupItemDescription=NEW PopupMenuLabel(LEVEL_COMPLETE,{{0,120},{windowSize.size.x-80.f,60}},"",1.0f,ComponentAttr::LEFT_ALIGN|ComponentAttr::SHADOW|ComponentAttr::BACKGROUND);
|
||||
|
||||
levelCompleteWindow->AddComponent("Monster Loot Popup Item Name",monsterLootPopupItemName);
|
||||
levelCompleteWindow->AddComponent("Monster Loot Popup Item Description",monsterLootPopupItemDescription);
|
||||
|
||||
PopupMenuLabel*stageLootPopupItemName=NEW PopupMenuLabel(LEVEL_COMPLETE,{{0,32},{windowSize.size.x-80.f,12}},"",1.0f,ComponentAttr::LEFT_ALIGN|ComponentAttr::SHADOW|ComponentAttr::OUTLINE|ComponentAttr::BACKGROUND);
|
||||
PopupMenuLabel*stageLootPopupItemDescription=NEW PopupMenuLabel(LEVEL_COMPLETE,{{0,44},{windowSize.size.x-80.f,72}},"",1.0f,ComponentAttr::LEFT_ALIGN|ComponentAttr::SHADOW|ComponentAttr::BACKGROUND);
|
||||
|
||||
levelCompleteWindow->AddComponent("Stage Loot Popup Item Name",stageLootPopupItemName);
|
||||
levelCompleteWindow->AddComponent("Stage Loot Popup Item Description",stageLootPopupItemDescription);
|
||||
}
|
||||
Reference in New Issue
Block a user