Change menu_headings to accept color and attribute
Instead of just accepting an attribute, it's now possible to use a color, or both color and attribute, for example: OPTIONS=menu_headings:inverse OPTIONS=menu_headings:red OPTIONS=menu_headings:red&underline Default is still just inverse. This lets the player change the menu heading color without needing to use menu colors for them. Also makes it so the core uses NO_COLOR instead of 0, for all the menu lines which don't have any prefedefined color. Tested for tty, curses, x11, qt, and win32
This commit is contained in:
@@ -103,7 +103,7 @@ void NetHackQtWindow::PutStr(int attr UNUSED, const QString& text UNUSED) { puts
|
||||
void NetHackQtWindow::StartMenu(bool using_WIN_INVEN UNUSED)
|
||||
{ puts("unexpected StartMenu"); }
|
||||
void NetHackQtWindow::AddMenu(int glyph UNUSED, const ANY_P* identifier UNUSED,
|
||||
char ch UNUSED, char gch UNUSED, int attr UNUSED,
|
||||
char ch UNUSED, char gch UNUSED, int attr UNUSED, int clr UNUSED,
|
||||
const QString& str UNUSED, unsigned itemflags UNUSED)
|
||||
{ puts("unexpected AddMenu"); }
|
||||
void NetHackQtWindow::EndMenu(const QString& prompt UNUSED) { puts("unexpected EndMenu"); }
|
||||
|
||||
Reference in New Issue
Block a user