Mercurial > repos > blastem
comparison nuklear_ui/blastem_nuklear.c @ 1526:9bea1a199f15 nuklear_ui
Filled in About view
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Wed, 07 Feb 2018 19:21:44 -0800 |
parents | 63659fb92db4 |
children | 4f6e8acd7b6a |
comparison
equal
deleted
inserted
replaced
1525:3629366616da | 1526:9bea1a199f15 |
---|---|
134 view_file_browser(context, 0); | 134 view_file_browser(context, 0); |
135 } | 135 } |
136 | 136 |
137 void view_about(struct nk_context *context) | 137 void view_about(struct nk_context *context) |
138 { | 138 { |
139 const char *lines[] = { | |
140 "BlastEm v0.6.0", | |
141 "Copyright 2012-2017 Michael Pavone", | |
142 "", | |
143 "BlastEm is a high performance open source", | |
144 "(GPLv3) Genesis/Megadrive emulator", | |
145 }; | |
146 const uint32_t NUM_LINES = sizeof(lines)/sizeof(*lines); | |
147 const char *thanks[] = { | |
148 "Nemesis: Documentatino and test ROMs", | |
149 "Charles MacDonald: Documentation", | |
150 "Eke-Eke: Documentation", | |
151 "Bart Trzynadlowski: Documentation", | |
152 "KanedaFR: Hosting the best Sega forum", | |
153 "Titan: Awesome demos and documentation", | |
154 "micky: Testing", | |
155 "Sasha: Testing", | |
156 "lol-frank: Testing", | |
157 "Sik: Testing", | |
158 "Tim Lawrence : Testing", | |
159 "ComradeOj: Testing", | |
160 "Vladikcomper: Testing" | |
161 }; | |
162 const uint32_t NUM_THANKS = sizeof(thanks)/sizeof(*thanks); | |
163 uint32_t width = render_width(); | |
164 uint32_t height = render_height(); | |
165 if (nk_begin(context, "About", nk_rect(0, 0, width, height), 0)) { | |
166 nk_layout_row_static(context, 30, width-40, 1); | |
167 for (uint32_t i = 0; i < NUM_LINES; i++) | |
168 { | |
169 nk_label(context, lines[i], NK_TEXT_LEFT); | |
170 } | |
171 nk_layout_row_static(context, height - 80 - 34*NUM_LINES, width-40, 1); | |
172 if (nk_group_begin(context, "Special Thanks", NK_WINDOW_TITLE)) { | |
173 nk_layout_row_static(context, 30, width - 80, 1); | |
174 for (uint32_t i = 0; i < NUM_THANKS; i++) | |
175 { | |
176 nk_label(context, thanks[i], NK_TEXT_LEFT); | |
177 } | |
178 nk_group_end(context); | |
179 } | |
180 nk_layout_row_static(context, 52, width/3, 1); | |
181 if (nk_button_label(context, "Back")) { | |
182 pop_view(); | |
183 } | |
184 nk_end(context); | |
185 } | |
139 } | 186 } |
140 | 187 |
141 typedef struct { | 188 typedef struct { |
142 const char *title; | 189 const char *title; |
143 view_fun next_view; | 190 view_fun next_view; |