3#include "DialogElement.hpp"
4#include "ElementSelector.hpp"
20template <
typename ElementPtr>
22class ListDialogElement :
public DialogElement
40 ListDialogElement(
const Recti& bounds, std::string text,
41 std::vector<ElementPtr> elements, Type type,
42 std::vector<std::string>&& options = {CANCEL_OPTION, OK_OPTION});
44 virtual void Draw()
const override;
45 virtual void HandleResizeEvent(
const Recti& newRect)
override;
46 virtual void HandleRawInput(
int rawInputChar)
override;
48 virtual void InputUp()
override;
49 virtual void InputDown()
override;
50 virtual void InputLeft()
override;
51 virtual void InputRight()
override;
52 virtual void InputEnter()
override;
53 virtual void InputTab()
override;
64#include "ListDialogElement.tpp"
The ElementSelector class - class to select & draw list of elements.
Definition ElementSelector.hpp:55
The HorizontalOptionChoice class - part of the DialogElement. Most or all of the dialogs has this hor...
Definition DialogElement.hpp:23
Definition ElementSelector.hpp:28
Definition ListDialogElement.hpp:33