Mercurial > repos > blastem
comparison nuklear_ui/blastem_nuklear.c @ 1790:a29f35c47da4
Updated checkbox style
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Wed, 20 Mar 2019 09:35:17 -0700 |
parents | b3eb74936f18 |
children | 51417bb557b6 |
comparison
equal
deleted
inserted
replaced
1789:b3eb74936f18 | 1790:a29f35c47da4 |
---|---|
1922 } | 1922 } |
1923 | 1923 |
1924 static void context_created(void) | 1924 static void context_created(void) |
1925 { | 1925 { |
1926 context = nk_sdl_init(render_get_window()); | 1926 context = nk_sdl_init(render_get_window()); |
1927 context->style.checkbox.padding.x = render_height() / 120; | |
1928 context->style.checkbox.padding.y = render_height() / 120; | |
1929 context->style.checkbox.border = render_height() / 240; | |
1927 texture_init(); | 1930 texture_init(); |
1928 } | 1931 } |
1929 | 1932 |
1930 void show_pause_menu(void) | 1933 void show_pause_menu(void) |
1931 { | 1934 { |
2001 } | 2004 } |
2002 | 2005 |
2003 void blastem_nuklear_init(uint8_t file_loaded) | 2006 void blastem_nuklear_init(uint8_t file_loaded) |
2004 { | 2007 { |
2005 context = nk_sdl_init(render_get_window()); | 2008 context = nk_sdl_init(render_get_window()); |
2009 context->style.checkbox.padding.x = render_height() / 120; | |
2010 context->style.checkbox.padding.y = render_height() / 120; | |
2011 context->style.checkbox.border = render_height() / 240; | |
2006 | 2012 |
2007 controller_360 = load_ui_image("images/360.png"); | 2013 controller_360 = load_ui_image("images/360.png"); |
2008 controller_ps4 = load_ui_image("images/ps4.png"); | 2014 controller_ps4 = load_ui_image("images/ps4.png"); |
2009 controller_ps4_6b = load_ui_image("images/ps4_6b.png"); | 2015 controller_ps4_6b = load_ui_image("images/ps4_6b.png"); |
2010 | 2016 |