MCPcopy Create free account
hub / github.com/NetHack/NetHack / gnome_create_nhwindow

Function gnome_create_nhwindow

outdated/win/gnome/gnbind.c:407–421  ·  view source on GitHub ↗

Create a window of type "type" which can be NHW_MESSAGE (top line) NHW_STATUS (bottom lines) NHW_MAP (main dungeon) NHW_MENU (inventory or other "corner" windows) NHW_TEXT (help/text, full screen paged window) */

Source from the content-addressed store, hash-verified

405 NHW_TEXT (help/text, full screen paged window)
406*/
407winid
408gnome_create_nhwindow(int type)
409{
410 winid i = 0;
411
412 /* Return the next available winid */
413
414 for (i = 0; i < MAXWINDOWS; i++)
415 if (gnome_windowlist[i].win == NULL)
416 break;
417 if (i == MAXWINDOWS)
418 g_error("ERROR: No windows available...\n");
419 gnome_create_nhwindow_by_id(type, i);
420 return i;
421}
422
423void
424gnome_create_nhwindow_by_id(int type, winid i)

Callers 1

gnome_init_nhwindowsFunction · 0.85

Calls 1

Tested by

no test coverage detected