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:
- The nested
CommonActionWidgetmust be named exactlyInputActionWidget.
- The tile button's
TriggeringInputActionmust point to:
/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
TriggeringInputActionfirst.
- 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
Confirmrow inDT_SL_InputActionsand the key brush
mapping for Gamepad_FaceButton_Bottom in CD_SL_Xbox.