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:
+2
-2
@@ -58,7 +58,7 @@ public:
|
||||
|
||||
virtual void StartMenu(bool using_WIN_INVEN = false);
|
||||
virtual void AddMenu(int glyph, const ANY_P *identifier,
|
||||
char ch, char gch, int attr,
|
||||
char ch, char gch, int attr, int clr,
|
||||
const QString& str, unsigned itemflags);
|
||||
virtual void EndMenu(const QString& prompt);
|
||||
virtual int SelectMenu(int how, MENU_ITEM_P **menu_list);
|
||||
@@ -195,7 +195,7 @@ public:
|
||||
// Menu
|
||||
virtual void StartMenu(bool using_WIN_INVENT = false);
|
||||
virtual void AddMenu(int glyph, const ANY_P *identifier,
|
||||
char ch, char gch, int attr,
|
||||
char ch, char gch, int attr, int clr,
|
||||
const QString& str, unsigned itemflags);
|
||||
virtual void EndMenu(const QString& prompt);
|
||||
virtual int SelectMenu(int how, MENU_ITEM_P **menu_list);
|
||||
|
||||
Reference in New Issue
Block a user