Merge branch 'NetHack-3.6.2-beta01' into NetHack-3.6.2
This commit is contained in:
@@ -220,6 +220,8 @@ Qt: add Qt5 specific hints file for linux and Mac OS X (Ray Chason)
|
|||||||
Qt: enable compiling Qt5 on Windows (Ray Chason)
|
Qt: enable compiling Qt5 on Windows (Ray Chason)
|
||||||
Qt: entering extended commands, hide non-matching ones
|
Qt: entering extended commands, hide non-matching ones
|
||||||
Qt: remember tile and font size
|
Qt: remember tile and font size
|
||||||
|
X11: implement menucolors and allow menus to obey inverse attribute
|
||||||
|
X11: make key translations work with menus on Linux
|
||||||
|
|
||||||
|
|
||||||
General New Features
|
General New Features
|
||||||
|
|||||||
+6
-3
@@ -135,6 +135,8 @@ typedef struct x11_mi {
|
|||||||
boolean preselected; /* in advance? */
|
boolean preselected; /* in advance? */
|
||||||
char selector; /* Char used to select this entry. */
|
char selector; /* Char used to select this entry. */
|
||||||
char gselector; /* Group selector. */
|
char gselector; /* Group selector. */
|
||||||
|
Widget w;
|
||||||
|
int window;
|
||||||
} x11_menu_item;
|
} x11_menu_item;
|
||||||
|
|
||||||
struct menu {
|
struct menu {
|
||||||
@@ -143,8 +145,6 @@ struct menu {
|
|||||||
const char *query; /* Query string. */
|
const char *query; /* Query string. */
|
||||||
const char *gacc; /* Group accelerators. */
|
const char *gacc; /* Group accelerators. */
|
||||||
int count; /* Number of strings. */
|
int count; /* Number of strings. */
|
||||||
String *list_pointer; /* String list. */
|
|
||||||
Boolean *sensitive; /* Active list. */
|
|
||||||
char curr_selector; /* Next keyboard accelerator to assign, */
|
char curr_selector; /* Next keyboard accelerator to assign, */
|
||||||
/* if 0, then we're out. */
|
/* if 0, then we're out. */
|
||||||
};
|
};
|
||||||
@@ -153,18 +153,21 @@ struct menu_info_t {
|
|||||||
struct menu curr_menu; /* Menu being displayed. */
|
struct menu curr_menu; /* Menu being displayed. */
|
||||||
struct menu new_menu; /* New menu being built. */
|
struct menu new_menu; /* New menu being built. */
|
||||||
|
|
||||||
|
boolean nh_colors_inited;
|
||||||
|
XColor nh_colors[CLR_MAX];
|
||||||
|
|
||||||
XFontStruct *fs; /* Font for the window. */
|
XFontStruct *fs; /* Font for the window. */
|
||||||
long menu_count; /* number entered by user */
|
long menu_count; /* number entered by user */
|
||||||
Dimension line_height; /* Total height of a line of text. */
|
Dimension line_height; /* Total height of a line of text. */
|
||||||
Dimension internal_height; /* Internal height between widget & border */
|
Dimension internal_height; /* Internal height between widget & border */
|
||||||
Dimension internal_width; /* Internal width between widget & border */
|
Dimension internal_width; /* Internal width between widget & border */
|
||||||
short how; /* Menu mode PICK_NONE, PICK_ONE, PICK_ANY */
|
short how; /* Menu mode PICK_NONE, PICK_ONE, PICK_ANY */
|
||||||
boolean valid_widgets; /* TRUE if widgets have been created. */
|
|
||||||
boolean is_menu; /* Has been confirmed to being a menu window. */
|
boolean is_menu; /* Has been confirmed to being a menu window. */
|
||||||
boolean is_active; /* TRUE when waiting for user input. */
|
boolean is_active; /* TRUE when waiting for user input. */
|
||||||
boolean is_up; /* TRUE when window is popped-up. */
|
boolean is_up; /* TRUE when window is popped-up. */
|
||||||
boolean cancelled; /* Menu has been explicitly cancelled. */
|
boolean cancelled; /* Menu has been explicitly cancelled. */
|
||||||
boolean counting; /* true when menu_count has a valid value */
|
boolean counting; /* true when menu_count has a valid value */
|
||||||
|
boolean permi;
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
+1
-1
@@ -587,7 +587,7 @@ NetHackQtMainWindow::NetHackQtMainWindow(NetHackQtKeyBuffer& ks) :
|
|||||||
{ magic, "Offer", 3, dosacrifice},
|
{ magic, "Offer", 3, dosacrifice},
|
||||||
{ magic, "Pray", 3, dopray},
|
{ magic, "Pray", 3, dopray},
|
||||||
{ magic, 0, 3},
|
{ magic, 0, 3},
|
||||||
{ magic, "Teleport", 3, dotele},
|
{ magic, "Teleport", 3, dotelecmd},
|
||||||
{ magic, "Monster action", 3, domonability},
|
{ magic, "Monster action", 3, domonability},
|
||||||
{ magic, "Turn undead", 3, doturn},
|
{ magic, "Turn undead", 3, doturn},
|
||||||
|
|
||||||
|
|||||||
+368
-365
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user