I'm not sure the proper term for this, so I will try to describe the issue as best as possible.

Normally when I have UI Boxes that generate buttons (such as Menu Screen using Button List menu part), the first button is automatically selected when that Box opens, and it prevents selection from other unfocused boxes.

For my project, I am using a Combatant menu part, and using "Add HUD" to provide pre-made buttons that have their own content provider. But I'm not getting the same auto selection on those buttons as I normally do. The buttons themselves work fine, just the selection seems to be a bit weird when using this method.
  • Going through the forum, I see that HUDs cannot be focused, which I think it's part of my problem. If that's the case, would it be possible for me to have a UI Box with premade buttons that can be focused?
  • HUDs are intended for displaying information, UI boxes for interacting with UI (e.g. menus, dialogues, etc.) - so their use cases are different.

    If you want something to work as a menu, you should probably set up a menu - e.g. using a Button List menu part. Can you give a bit more detail on what this thing you want to set up should do?
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
  • edited August 10
    That makes sense. In that case, I believe what I want is multiple menu parts in a single UI box or container? Something like this:

    image

    The elements that are actually buttons are colored while everything else is just information.
    Some of the buttons have custom scripts attached to them as well.

    I could get them into separate boxes no problem using different menu parts. But I couldn't seem to get them under one box/container.
    Post edited by Poppedri on
  • In case the ability stuff is actually using shortcut slots (i.e. putting abilities into slots), you could use the Multi Slot menu part to combine shortcut slots and equipment slots into a single part/box.
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
  • How would I get the HUD stuff into that same box using Multi Slot?
  • Secondary question, but abilities that are toggled as Hidden still seem to show up in the List box. Is there anyway to change that?
  • edited August 14
    You can basically add HUD stuff to any UI independent of actually being used as a HUD.
    E.g. you can add the HUD components to a UI box prefab.

    The content provider components can be used to set the content a HUD content component should display. E.g. when adding to a UI box and use the menu user as content, use the HUD Menu Shop User (Content Provider) component. This'll basically replace the HUD component of a regular HUD and provide the content for the other components instead.


    Which menu part - Ability?
    Did a quick test and hidden abilities are not displayed.
    Are your abilities or ability types hidden?
    Post edited by gamingislove on
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
  • I'm using Multi Slot menu part, setting an ability to a shortcut slot. The ability itself is the one that's hidden, but I can try hiding the type.
  • Hm, yeah, seems like multi slot menu ignores being hidden - will fix this in the next update.
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Sign In or Register to comment.