Skip to content

Commit

Permalink
Issue X2CommunityCore#47 Make UIListItemString->UIButton keyboard / c…
Browse files Browse the repository at this point in the history
…ontroller compatible with self contained callbacks
  • Loading branch information
Musashi1584 committed Nov 10, 2017
1 parent e8ccab7 commit 2d97a08
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions X2WOTCCommunityHighlander/Src/XComGame/Classes/UIButton.uc
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,13 @@ simulated function bool OnUnrealCommand(int cmd, int arg)
case class'UIUtilities_Input'.const.FXS_KEY_ENTER:
case class'UIUtilities_Input'.const.FXS_KEY_SPACEBAR:
Click();
// Start Issue #47
// navigable button bg for UIListItemString
if (!Click())
{
bHandled = false;
}
// End Issure #47
break;
default:
bHandled = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -520,6 +520,13 @@ simulated function bool OnUnrealCommand(int cmd, int arg)
{
if( ConfirmButton != none )
return ConfirmButton.OnUnrealCommand(cmd, arg);

// Start Issue #47: navigable button bg for UIListItemString start
if (ButtonBG.OnUnrealCommand(cmd, arg))
{
return true;
}
// End Issue #47
}

return Navigator.OnUnrealCommand(cmd, arg);
Expand Down

0 comments on commit 2d97a08

Please sign in to comment.