GenericList

Parent Class: GenericChildrenManager

This class has the logic of linear list (vertical/horizontal).


On This Page


Class Properties

  • mIsCircularList: If true specify that the behaviour of the selected element will be that the next (or previous) element when one edge of the list is reached will be the opposite edge. For example if the last element of the list is selected, then the next one will be the first (same thing when the first element is selected, its previous is the last one).

Initial Setup

To use the generic list just open up the widget where you want to use it and type Generic List in the Palette section

drag and drop it into your Widget Hierarchy to use it

It requires an Elements Panel to work as you see in the screenshot below

You can choose between Vertical Box

and Horizontal Box

choose it and drag and drop over the text mElementsPanel

the setup for the Generic List is finished, now you need to add Elements to the list


Add Elements To List

There are two ways of adding UI Elements to the list, the first way is from the Designer editor and the other from the Graph Editor (code)

Remember that only UI Elements inherited from WBP_GenericInputHandler are considered, so for example in the screenshot below, WBP_BasicButton inherit from WBP_GenericButton which inherit from WBP_GenericElement which inherit from WBP_GenericInputHandler

Designer Editor

To add UI Elements from the Designer Editor just pick your Element from the Palette, drag and drop it inside the chosen ChildrenPanel in this case the Vertical Box.

Graph Editor

To add Elements from the Graph Editor you first need to create the Element itself, to do that use the node Create Widget

choose the class that you want, in this case WBP_BasicButton, set all the parameters the way you want

then you can choose to add the element either in Append, meaning that will be the last of the list

or you can Add the Element in a specific index, in the screenshot below the 0th index is chosen, meaning that will be the first element of the list.