Skip to content

Commit

Permalink
Gift menu now working
Browse files Browse the repository at this point in the history
Updated to display VR icons
  • Loading branch information
Odie committed Sep 23, 2018
1 parent 9a0692b commit d11bdf1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/ItemMenus/GiftMenu.as
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,12 @@ class GiftMenu extends ItemMenu
private function updateBottomBar(a_bSelected: Boolean): Void
{
navPanel.clearButtons();


var activateControls = skyui.util.Input.pickControls(_platform,
{PCArt:"E",XBoxArt:"360_A",PS3Art:"PS3_A",ViveArt:"trigger",MoveArt:"PS3_MOVE",OculusArt:"trigger",WindowsMRArt:"trigger"});

if (a_bSelected) {
navPanel.addButton({text: (_bGivingGifts ? "$Give" : "$Take"), controls: Input.Activate});
navPanel.addButton({text: (_bGivingGifts ? "$Give" : "$Take"), controls: activateControls});
} else {
navPanel.addButton({text: "$Exit", controls: _cancelControls});
navPanel.addButton({text: "$Search", controls: _searchControls});
Expand Down

0 comments on commit d11bdf1

Please sign in to comment.