Mercurial > repos > blastem
changeset 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 | 224725e8a3a8 |
children | 756f8616d1bf |
files | nuklear_ui/blastem_nuklear.c |
diffstat | 1 files changed, 11 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/nuklear_ui/blastem_nuklear.c Thu Dec 07 18:59:36 2017 -0800 +++ b/nuklear_ui/blastem_nuklear.c Fri Dec 08 09:43:05 2017 -0800 @@ -485,7 +485,17 @@ } void view_system_settings(struct nk_context *context) { - + uint32_t width = render_width(); + uint32_t height = render_height(); + if (nk_begin(context, "System Settings", nk_rect(0, 0, width, height), 0)) { + nk_layout_row_static(context, 30, width > 300 ? 300 : width, 2); + settings_int_property(context, "68000 Clock Divider", "", "clocks\0m68k_divider\0", 7, 1, 53); + settings_toggle(context, "Remember ROM Path", "ui\0remember_path\0", 1); + if (nk_button_label(context, "Back")) { + pop_view(); + } + nk_end(context); + } } void view_back(struct nk_context *context)