Skip to content

Commit

Permalink
UIAvengerShortcuts: Add mod list items on top of the list to preserve…
Browse files Browse the repository at this point in the history
… vanilla item positions
  • Loading branch information
robojumper committed Mar 16, 2018
1 parent edf0b5e commit 82b7df5
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ simulated function UIAvengerShortcuts InitShortcuts(optional name InitName)
local XComGameState_FacilityXCom Facility;

// Start Issue #163 New Menu Hooks
ModSubMenus.length = eUIAvengerShortcutCat_MAX;
ModSubMenus.length = eUIAvengerShortcutCat_MAX;
// End Issue #163 New Menu Hooks

InitPanel(InitName);
Expand Down Expand Up @@ -349,10 +349,10 @@ simulated function UpdateCategories()
Categories[i].Button.Hide();
}
// Start Issue #163 New Menu Hooks
for (j = 0; j < ModSubMenus[i].SubMenuItems.Length; ++j)
{
Categories[i].Messages.AddItem(ModSubMenus[i].SubMenuItems[j].Message);
}
for (j = 0; j < ModSubMenus[i].SubMenuItems.Length; ++j)
{
Categories[i].Messages.InsertItem(0, ModSubMenus[i].SubMenuItems[j].Message);
}
// End Issue #163 New Menu Hooks
}
OnCategoryButtonSizeRealized();
Expand Down

0 comments on commit 82b7df5

Please sign in to comment.