MCPcopy Create free account
hub / github.com/GarageGames/Torque3D / GuiMenuBar

Method GuiMenuBar

Engine/source/gui/editor/guiMenuBar.cpp:1101–1126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1099//------------------------------------------------------------------------------
1100
1101GuiMenuBar::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
1128void GuiMenuBar::initPersistFields()
1129{

Callers

nothing calls this directly

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected