updated Readme example + screenshot

This commit is contained in:
vurtun 2015-08-07 17:09:23 +02:00
parent 08f33deef8
commit b65ab2eb75
3 changed files with 2 additions and 2 deletions

View File

@ -75,7 +75,7 @@ while (1) {
{ {
const char *items[] = {"Fist", "Pistol", "Railgun", "BFG"}; const char *items[] = {"Fist", "Pistol", "Railgun", "BFG"};
gui_panel_header(&layout, "Demo", GUI_CLOSEABLE, 0, GUI_HEADER_LEFT); gui_panel_header(&layout, "Demo", GUI_CLOSEABLE, 0, GUI_HEADER_LEFT);
gui_panel_row_dynamic(&layout, 30, 1); gui_panel_row_static(&layout, 30, 80, 1);
if (gui_panel_button_text(&layout, "button", GUI_BUTTON_DEFAULT)) { if (gui_panel_button_text(&layout, "button", GUI_BUTTON_DEFAULT)) {
/* event handling */ /* event handling */
} }

View File

@ -693,7 +693,7 @@ run_demo(struct demo_gui *gui, struct gui_input *input)
{ {
const char *items[] = {"Fist", "Pistol", "Railgun", "BFG"}; const char *items[] = {"Fist", "Pistol", "Railgun", "BFG"};
gui_panel_header(&layout, "Demo", GUI_CLOSEABLE, 0, GUI_HEADER_LEFT); gui_panel_header(&layout, "Demo", GUI_CLOSEABLE, 0, GUI_HEADER_LEFT);
gui_panel_row_dynamic(&layout, 30, 1); gui_panel_row_static(&layout, 30, 80, 1);
if (gui_panel_button_text(&layout, "button", GUI_BUTTON_DEFAULT)) { if (gui_panel_button_text(&layout, "button", GUI_BUTTON_DEFAULT)) {
/* event handling */ /* event handling */
} }

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 18 KiB