vkmEngine 1.0.15
A C++ game engine · vkmengine.com
Loading...
Searching...
No Matches
ui_events.h
1#pragma once
2
3#include <string>
4
5#include "ecs/entity.h"
6
7namespace Vkm::Engine {
8
21 std::string eventId;
22};
23
32 std::string eventId;
33 float value;
34};
35
36} // namespace Vkm::Engine
Names one entity of one Scene, for as long as that slot holds it.
Definition entity.h:23
Fired when a UIButton is clicked (a press released over the same button).
Definition ui_events.h:19
std::string eventId
The clicked UIButton's eventId.
Definition ui_events.h:21
EntityId entity
The button entity that was clicked.
Definition ui_events.h:20
Fired when a UISlider is dragged to a new value, a UIToggle is flipped or a UIChoice is stepped.
Definition ui_events.h:30
std::string eventId
Its UIButton's eventId; for a choice, the clicked arrow's.
Definition ui_events.h:32
float value
The slider's value; a toggle's 1 on, 0 off; a choice's index.
Definition ui_events.h:33
EntityId entity
The slider's, toggle's or choice's entity.
Definition ui_events.h:31