Untitled
Loading...
Searching...
No Matches
ui_callbacks.c
Go to the documentation of this file.
1
2#include "load/init.h"
3#include "utilities/types.h"
4#include "ui/ui.h"
5#include "ui/ui_callbacks.h"
6
7
8
9
14
15
16
17
18
19
20
21
23{
24
26 sprintf(ac->id, "none");
27 ac->val.type = UIVAL_NONE;
29
31 sprintf(ac->id, "test");
32 ac->val.type = UIVAL_BOOL;
34 ac->one_shot = false;
36
38 sprintf(ac->id, "pos");
39 ac->val.type = UIVAL_FLOAT;
40 ac->val.data = &player.pos.z;
42 ac->val.inc_val.inc_flt = 0.2f;
44
45}
46
48{
49
51
52 sprintf(hc->id, "none");
53 hc->val.type = UIVAL_NONE;
55
57 sprintf(hc->id, "test");
58 hc->val.type = UIVAL_BOOL;
60 hc->one_shot = false;
62}
vec3 pos
Currently anchors the Skeleton.
UIValueType type
The type of value that is inside of data.
Definition ui.h:345
union UIValue::@033233014044001351273032017075321074265046133265 inc_val
bool one_shot
If this event only occurs on initial event.
Definition ui.h:385
UIValueBehavior behavior
The control upon reaching min or max.
Definition ui.h:346
UIValue val
The value to change.
Definition ui.h:386
char id[256]
The name of this UICallback inside of its registry.
Definition ui.h:392
void * data
The data, which may be simply a pointer that is passed into a function instead of manipulated directl...
Definition ui.h:372
@ UIVAL_NONE
Definition ui.h:315
@ UIVAL_FLOAT
Definition ui.h:318
@ UIVAL_BOOL
Definition ui.h:316
@ UIVALBEHAVIOR_NONE
Definition ui.h:331
Describes function pointers for UIElements that determine behavior on events.
Definition ui.h:382
Important globals for the entire engine and initialization functions that are mainly called on engine...
EditorSettings EDITOR_SETTINGS
Definition main.c:330
Player player
The Player data.
Definition main.c:287
float z
Definition types.h:12
The standalone UI library that controls text rendering, ui rendering, and events.
UICallback HOVER_CALLBACKS[MAX_CALLBACKS]
int HOVER_CALLBACK_COUNT
void init_action_callbacks()
int ACTION_CALLBACK_COUNT
void init_hover_callbacks()
UICallback ACTION_CALLBACKS[MAX_CALLBACKS]
#define MAX_CALLBACKS
Definition ui_callbacks.h:6