comparison nuklear_ui/blastem_nuklear.c @ 1498:050a5b032bc5 nuklear_ui

Initial work on system menu
author Michael Pavone <pavone@retrodev.com>
date Fri, 08 Dec 2017 09:43:05 -0800
parents 8be6ea919300
children 756f8616d1bf
comparison
equal deleted inserted replaced
1497:224725e8a3a8 1498:050a5b032bc5
483 nk_end(context); 483 nk_end(context);
484 } 484 }
485 } 485 }
486 void view_system_settings(struct nk_context *context) 486 void view_system_settings(struct nk_context *context)
487 { 487 {
488 488 uint32_t width = render_width();
489 uint32_t height = render_height();
490 if (nk_begin(context, "System Settings", nk_rect(0, 0, width, height), 0)) {
491 nk_layout_row_static(context, 30, width > 300 ? 300 : width, 2);
492 settings_int_property(context, "68000 Clock Divider", "", "clocks\0m68k_divider\0", 7, 1, 53);
493 settings_toggle(context, "Remember ROM Path", "ui\0remember_path\0", 1);
494 if (nk_button_label(context, "Back")) {
495 pop_view();
496 }
497 nk_end(context);
498 }
489 } 499 }
490 500
491 void view_back(struct nk_context *context) 501 void view_back(struct nk_context *context)
492 { 502 {
493 pop_view(); 503 pop_view();