use | marker for "don't theme this choice"

This commit is contained in:
Chris Danford
2005-12-01 19:27:33 +00:00
parent 2f3a58ae45
commit 11e5aeb8b9
4 changed files with 31 additions and 17 deletions
+3
View File
@@ -20,6 +20,7 @@ struct ConfOption
typedef void (*MoveData_t)( int &sel, bool ToSel, const ConfOption *pConfOption );
MoveData_t MoveData;
int m_iEffects;
bool m_bAllowThemeItems;
/* For dynamic options, update the options. Since this changes the available
* options, this may invalidate the offsets returned by Get() and Put(). */
@@ -40,6 +41,7 @@ struct ConfOption
MoveData = m;
MakeOptionsListCB = NULL;
m_iEffects = 0;
m_bAllowThemeItems = true;
#define PUSH( c ) if(c) names.push_back(c);
PUSH(c0);PUSH(c1);PUSH(c2);PUSH(c3);PUSH(c4);PUSH(c5);PUSH(c6);PUSH(c7);PUSH(c8);PUSH(c9);PUSH(c10);PUSH(c11);PUSH(c12);PUSH(c13);PUSH(c14);PUSH(c15);PUSH(c16);PUSH(c17);PUSH(c18);PUSH(c19);
}
@@ -53,6 +55,7 @@ struct ConfOption
MoveData = m;
MakeOptionsListCB = lst;
m_iEffects = 0;
m_bAllowThemeItems = false; // don't theme dynamic choices
}