Reference · Updated 2552.07.26.14.59

Button Tile CommonActionWidget Setup

/Game/SystemLink/UI/Menus/WBPSLButtonTile is a USLButtonBase widget with a nested CommonActionWidget for showing the controller confirm glyph.

/Game/SystemLink/UI/Menus/WBP_SL_ButtonTile is a USLButtonBase widget with a nested CommonActionWidget for showing the controller confirm glyph.

#Required Wiring

For the A button glyph to show reliably on controller focus/selection:

  1. The nested CommonActionWidget must be named exactly InputActionWidget.
  1. The tile button's TriggeringInputAction must point to:
  2. /Game/SystemLink/UI/Input/DT_SL_InputActions :: Confirm

UCommonButtonBase binds a child named InputActionWidget automatically. When TriggeringInputAction is set, CommonUI feeds that action to the nested CommonActionWidget, which then resolves the correct platform glyph through CommonInput.

#Why Focus Alone Is Not Enough

CommonActionWidget does not infer "A" from the button merely being focused or selected.

If TriggeringInputAction is empty, UCommonButtonBase only falls back to the default click action while the button is hovered. Controller focus is not the same as mouse hover, so the glyph can disappear or never appear.

#Supporting Assets

  • Common input data:
  • /Game/SystemLink/UI/Input/DA_SL_CommonInputData

  • Input action table:
  • /Game/SystemLink/UI/Input/DT_SL_InputActions

  • Confirm row:
  • DT_SL_InputActions::Confirm

  • Controller glyph data:
  • /Game/SystemLink/UI/Input/Controllers/CD_SL_Xbox

Config/DefaultGame.ini must keep CommonInput pointed at the input data asset and controller data:


[/Script/CommonInput.CommonInputSettings]

bEnableEnhancedInputSupport=True

InputData=/Game/SystemLink/UI/Input/DA_SL_CommonInputData.DA_SL_CommonInputData_C



[CommonInputPlatformSettings_Windows CommonInputPlatformSettings]

+ControllerData=/Game/SystemLink/UI/Input/Controllers/CD_SL_Xbox.CD_SL_Xbox_C

#Troubleshooting

  • If the glyph is blank, check TriggeringInputAction first.
  • If the action is set but the glyph is still blank, check that the child widget is named InputActionWidget.
  • If the glyph shows text or no platform icon, check the Confirm row in DT_SL_InputActions and the key brush
  • mapping for Gamepad_FaceButton_Bottom in CD_SL_Xbox.