Added XP bar animations and steady increasing progress bar. Added level up animation text on stage completion screen. Refactor enable and disable functions for menu components. Differentiated between disabling due to being outside the window, and manual enable/disabling of components. Fix infinite loop bug with components outside of a scrollable window component not being iterated over. Fix bug with hovering over non-navigational components causing the default component for a menu to be selected while in mouse navigation mode. Release Build 7095.
This commit is contained in:
@@ -115,7 +115,9 @@ void Menu::InitializeLevelCompleteWindow(){
|
||||
}
|
||||
}}},
|
||||
{game->KEY_SCROLL,{"View Items",[](MenuType type){}}},
|
||||
{game->KEY_START,{"Continue",[](MenuType type){}}},
|
||||
{game->KEY_START,{"Continue",[](MenuType type){
|
||||
Component<MenuComponent>(type,"Next Button")->Click();
|
||||
}}},
|
||||
}
|
||||
,{ //Button Navigation Rules
|
||||
{"Monster Loot Window",{
|
||||
@@ -152,7 +154,7 @@ void Menu::InitializeLevelCompleteWindow(){
|
||||
DetectInventory(InventoryScrollableWindowComponent,type,"Monster Loot Window")
|
||||
{ //This means we have to wrap around. We have access to itemsList if we needed to point to a specific item in the inventory.
|
||||
//By returning here, you are processing returnData yourself. Otherwise manipulate newRowIndex to point to an item in the itemsList when wrapping.
|
||||
int colIndex=(newRowIndex+invWidth)%invWidth; //Negative index, so we have to loop around.
|
||||
int colIndex=selectedButton.lock()->inventoryIndex; //Negative index, so we have to loop around.
|
||||
//Get the base row index of the new inventory.
|
||||
auto stageLootWindow=Component<InventoryScrollableWindowComponent>(type,"Stage Loot Window");
|
||||
if(stageLootWindow->GetComponents().size()>0){
|
||||
@@ -205,7 +207,7 @@ void Menu::InitializeLevelCompleteWindow(){
|
||||
DetectInventory(InventoryScrollableWindowComponent,type,"Monster Loot Window")
|
||||
{ //This means we have to wrap around. We have access to itemsList if we needed to point to a specific item in the inventory.
|
||||
//By returning here, you are processing returnData yourself. Otherwise manipulate newRowIndex to point to an item in the itemsList when wrapping.
|
||||
int colIndex=newRowIndex%invWidth;
|
||||
int colIndex=selectedButton.lock()->inventoryIndex;
|
||||
//Get the base row index of the new inventory.
|
||||
auto stageLootWindow=Component<InventoryScrollableWindowComponent>(type,"Stage Loot Window");
|
||||
if(stageLootWindow->GetComponents().size()>0){
|
||||
@@ -336,7 +338,7 @@ void Menu::InitializeLevelCompleteWindow(){
|
||||
DetectInventory(InventoryScrollableWindowComponent,type,"Stage Loot Window")
|
||||
{ //This means we have to wrap around. We have access to itemsList if we needed to point to a specific item in the inventory.
|
||||
//By returning here, you are processing returnData yourself. Otherwise manipulate newRowIndex to point to an item in the itemsList when wrapping.
|
||||
int colIndex=(newRowIndex+invWidth)%invWidth;
|
||||
int colIndex=selectedButton.lock()->inventoryIndex;
|
||||
//Get the base row index of the new inventory.
|
||||
auto stageLootWindow=Component<InventoryScrollableWindowComponent>(type,"Monster Loot Window");
|
||||
if(stageLootWindow->GetComponents().size()>0){
|
||||
@@ -389,7 +391,7 @@ void Menu::InitializeLevelCompleteWindow(){
|
||||
DetectInventory(InventoryScrollableWindowComponent,type,"Stage Loot Window")
|
||||
{ //This means we have to wrap around. We have access to itemsList if we needed to point to a specific item in the inventory.
|
||||
//By returning here, you are processing returnData yourself. Otherwise manipulate newRowIndex to point to an item in the itemsList when wrapping.
|
||||
int colIndex=newRowIndex%invWidth;
|
||||
int colIndex=selectedButton.lock()->inventoryIndex;
|
||||
//Get the base row index of the new inventory.
|
||||
auto stageLootWindow=Component<InventoryScrollableWindowComponent>(type,"Monster Loot Window");
|
||||
if(stageLootWindow->GetComponents().size()>0){
|
||||
|
||||
Reference in New Issue
Block a user