vkmEngine 1.0.15
A C++ game engine · vkmengine.com
Loading...
Searching...
No Matches
ui_choice.h
1#pragma once
2
3#include <string>
4#include <vector>
5
6#include "core/reflect.h"
7#include "ecs/entity.h"
8
9namespace Vkm::Engine {
10
21struct UIChoice {
22 std::vector<std::string> options;
23 int index = 0;
24
28};
29
30} // namespace Vkm::Engine
31
32VKM_REFLECT_BEGIN(::Vkm::Engine::UIChoice)
33 VKM_F(options)
34 VKM_F(index)
35VKM_REFLECT_END()
Names one entity of one Scene, for as long as that slot holds it.
Definition entity.h:23
One of a list of options, stepped through by two UIButtons: a setting's "< High >" row.
Definition ui_choice.h:21
EntityId text
Its UIText shows the option; none for no text.
Definition ui_choice.h:27
EntityId next
The UIButton stepping toward the last.
Definition ui_choice.h:26
int index
Write it to set the choice; out of range shows nothing.
Definition ui_choice.h:23
EntityId back
The UIButton stepping toward the first option.
Definition ui_choice.h:25
std::vector< std::string > options
What text shows, in step order.
Definition ui_choice.h:22