- fix destruction of primary game windows - One, it makes the color of the cursor box dynamic (these are the gnmap.c changes), based on hp/hpmax (continuous colors white -> yellow -> red -> magenta rather than discrete like in Qt). - Two, it adds a new window, NHW_WORN (all the other changes and new files gnworn.[ch]), placed at the end of the first row, to the right of the status, with tiles of all the items currently equiped. I had to change the spacing of the first row (no longer homogeneous) to accomodate this, but I think it still looks okay. It's mostly like the Qt version but the equiped items are in slightly different places, and a bit more compactly (added quiver, ball/chain, monster skin armor; see the definition in gnworn.c for the layout).
27 lines
842 B
C
27 lines
842 B
C
/* SCCS Id: @(#)gnmain.h 3.4 2000/07/16 */
|
|
/* Copyright (C) 1998 by Erik Andersen <andersee@debian.org> */
|
|
/* NetHack may be freely redistributed. See license for details. */
|
|
|
|
#ifndef GnomeHackMainWindow_h
|
|
#define GnomeHackMainWindow_h
|
|
|
|
#include <gnome.h>
|
|
#include <gtk/gtk.h>
|
|
|
|
|
|
void ghack_init_main_window( int argc, char** argv);
|
|
void ghack_main_window_add_map_window(GtkWidget* win);
|
|
void ghack_main_window_add_message_window(GtkWidget* win);
|
|
void ghack_main_window_add_status_window(GtkWidget* win);
|
|
void ghack_main_window_add_text_window(GtkWidget *);
|
|
void ghack_main_window_add_worn_window(GtkWidget* win);
|
|
void ghack_main_window_remove_window(GtkWidget *);
|
|
void ghack_main_window_update_inventory();
|
|
void ghack_save_game_cb(GtkWidget *widget, gpointer data);
|
|
GtkWidget* ghack_get_main_window();
|
|
|
|
|
|
|
|
#endif /* GnomeHackMainWindow_h */
|
|
|