| 1099 | //------------------------------------------------------------------------------ |
| 1100 | |
| 1101 | GuiMenuBar::GuiMenuBar() |
| 1102 | { |
| 1103 | mMenuList.clear(); |
| 1104 | menuBarDirty = true; |
| 1105 | mouseDownMenu = NULL; |
| 1106 | mouseOverMenu = NULL; |
| 1107 | mCurAcceleratorIndex = 0; |
| 1108 | mBackground = NULL; |
| 1109 | mPadding = 0; |
| 1110 | |
| 1111 | mCheckmarkBitmapIndex = 0; // Default to the first image in the bitmap array for the check mark |
| 1112 | |
| 1113 | mHorizontalMargin = 6; // Default number of pixels on the left and right side of a manu's text |
| 1114 | mVerticalMargin = 1; // Default number of pixels on the top and bottom of a menu's text |
| 1115 | mBitmapMargin = 2; // Default number of pixels between a menu's bitmap and text |
| 1116 | |
| 1117 | // Added: |
| 1118 | mouseDownSubmenu = NULL; |
| 1119 | mouseOverSubmenu = NULL; |
| 1120 | mSubmenuBackground = NULL; |
| 1121 | mSubmenuTextList = NULL; |
| 1122 | mMouseOverCounter = 0; |
| 1123 | mCountMouseOver = false; |
| 1124 | mMouseHoverAmount = 30; |
| 1125 | setProcessTicks(false); |
| 1126 | } |
| 1127 | |
| 1128 | void GuiMenuBar::initPersistFields() |
| 1129 | { |