|
@@ -69,13 +69,13 @@ main(void)
|
|
|
{struct nk_font_atlas *atlas;
|
|
|
nk_sdl_font_stash_begin(&atlas);
|
|
|
/*struct nk_font *droid = nk_font_atlas_add_from_file(atlas, "../../../extra_font/DroidSans.ttf", 14, 0);*/
|
|
|
- /*struct nk_font *robot = nk_font_atlas_add_from_file(atlas, "../../../extra_font/Robot-Regular.ttf", 14, 0);*/
|
|
|
+ /*struct nk_font *roboto = nk_font_atlas_add_from_file(atlas, "../../../extra_font/Roboto-Regular.ttf", 16, 0);*/
|
|
|
/*struct nk_font *future = nk_font_atlas_add_from_file(atlas, "../../../extra_font/kenvector_future_thin.ttf", 13, 0);*/
|
|
|
/*struct nk_font *clean = nk_font_atlas_add_from_file(atlas, "../../../extra_font/ProggyClean.ttf", 12, 0);*/
|
|
|
/*struct nk_font *tiny = nk_font_atlas_add_from_file(atlas, "../../../extra_font/ProggyTiny.ttf", 10, 0);*/
|
|
|
/*struct nk_font *cousine = nk_font_atlas_add_from_file(atlas, "../../../extra_font/Cousine-Regular.ttf", 13, 0);*/
|
|
|
nk_sdl_font_stash_end();
|
|
|
- /*nk_style_set_font(ctx, &droid->handle)*/;}
|
|
|
+ /*nk_style_set_font(ctx, &roboto->handle)*/;}
|
|
|
|
|
|
background = nk_rgb(28,48,62);
|
|
|
while (running)
|
|
@@ -98,13 +98,14 @@ main(void)
|
|
|
enum {EASY, HARD};
|
|
|
static int op = EASY;
|
|
|
static int property = 20;
|
|
|
+
|
|
|
nk_layout_row_static(ctx, 30, 80, 1);
|
|
|
if (nk_button_label(ctx, "button", NK_BUTTON_DEFAULT))
|
|
|
fprintf(stdout, "button pressed\n");
|
|
|
nk_layout_row_dynamic(ctx, 30, 2);
|
|
|
if (nk_option_label(ctx, "easy", op == EASY)) op = EASY;
|
|
|
if (nk_option_label(ctx, "hard", op == HARD)) op = HARD;
|
|
|
- nk_layout_row_dynamic(ctx, 22, 1);
|
|
|
+ nk_layout_row_dynamic(ctx, 25, 1);
|
|
|
nk_property_int(ctx, "Compression:", 0, &property, 100, 10, 1);
|
|
|
|
|
|
{struct nk_panel combo;
|