-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.cred
More file actions
30 lines (27 loc) · 840 Bytes
/
example.cred
File metadata and controls
30 lines (27 loc) · 840 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
draw_view {
vertical({
image("REDACTED.png");
text("[REDACTED] Login");
vertical({
user = input_text(name: "User", placeholder: "username", value: user);
pass = input_text(name: "Password", placeholder: "...", value: pass);
horizontal({
if (strlen(user))
button("Log in", {
.fill = 0.9f,
.text_size = 16,
}));//TODO: How do some Immediate UI libs handle buttons & text input
img_button("help");
});
});
});
}
void draw_view(){
uno_begin_vertical();
uno_image("");
uno_text("");
uno_begin_vertical();
uno_input_text("User","username");
uno_end_vertical();
uno_end_vertical();
}