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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
#include "tile.h"
#include "editor.h"
static
void tile_editor_win(void)
{
Tile_Editor *t = &editor.tile;
if (
!tyui_begin_window(
"Tile Editor",
ty_recti(0, 0, 100, SCREEN_HEIGHT),
&t->tile_editor_win,
.flags = TYUI_WIN_NORESIZEY | TYUI_WIN_NOMOVE | TYUI_WIN_NOTITLE | TYUI_WIN_ALWAYS_BELOW,
.min_size = ty_vec2i(100, SCREEN_HEIGHT),
)
) {
return;
}
tyui_text("test");
tyui_end_window();
}
static
void test_win(void)
{
Tile_Editor *t = &editor.tile;
if (
!tyui_begin_window(
"Test",
ty_recti(100, 100, 100, 100),
&t->test_win,
.flags = TYUI_WIN_INVISIBLE
)
) {
return;
}
for (int i = 0; i < 10; i++)
tyui_text("test");
tyui_end_window();
}
void tile_proc(void)
{
tile_editor_win();
test_win();
}
void tile_draw(void)
{
}
|