View Single Post
10/03/19, 05:27 PM   #7
chatrat12
Join Date: Sep 2019
Posts: 4
Thanks for the help! I've been trying to add the ability to press a button while a redial menu is open to quickly set the selected entry. Adding some of the standard UI fragments got me the behavior I wanted

Lua Code:
  1. -- Create scenes
  2. local gamepadSceneName = "pw_radial_menu_keybind_strip_gamepad"
  3. local gamepadScene = ZO_Scene:New(gamepadSceneName, SCENE_MANAGER)
  4.  
  5. local keyboardSceneName = "pw_radial_menu_keybind_strip_keyboard"
  6. local keyboardScene = ZO_Scene:New(keyboardSceneName, SCENE_MANAGER)
  7.  
  8.  
  9. -- Add fragments to scenes
  10. gamepadScene:AddFragment(GAMEPAD_UI_MODE_FRAGMENT)
  11. gamepadScene:AddFragment(UI_SHORTCUTS_ACTION_LAYER_FRAGMENT)
  12. gamepadScene:AddFragmentGroup(FRAGMENT_GROUP.GAMEPAD_KEYBIND_STRIP_GROUP)
  13.  
  14. keyboardScene:AddFragment(HIDE_MOUSE_FRAGMENT)
  15. keyboardScene:AddFragment(UI_SHORTCUTS_ACTION_LAYER_FRAGMENT)
  16. keyboardScene:AddFragmentGroup(FRAGMENT_GROUP.KEYBOARD_KEYBIND_STRIP_GROUP)
  Reply With Quote