mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-12 19:31:41 +00:00
uninitialized variables-gui
This commit is contained in:
parent
b9c207765e
commit
9fef1b3cd1
43 changed files with 119 additions and 33 deletions
|
|
@ -64,6 +64,12 @@ DbgFileView::DbgFileView()
|
|||
mFindLineNumber = -1;
|
||||
|
||||
mSize.set(1, 0);
|
||||
mbMouseDragging = false;
|
||||
mMouseDownChar = -1;
|
||||
mMouseOverVariable[0] = '\0';
|
||||
mMouseOverValue[0] = '\0';
|
||||
mMouseVarStart = -1;
|
||||
mMouseVarEnd = -1;
|
||||
}
|
||||
|
||||
DefineEngineMethod(DbgFileView, setCurrentLine, void, (S32 line, bool selected), , "(int line, bool selected)"
|
||||
|
|
|
|||
|
|
@ -101,7 +101,9 @@ GuiEditCtrl::GuiEditCtrl()
|
|||
mDrawBorderLines( true ),
|
||||
mFullBoxSelection( false ),
|
||||
mSnapSensitivity( 2 ),
|
||||
mDrawGuides( true )
|
||||
mDrawGuides( true ),
|
||||
mDragAddSelection(false),
|
||||
mDragMoveUndo(false)
|
||||
{
|
||||
VECTOR_SET_ASSOCIATION( mSelectedControls );
|
||||
VECTOR_SET_ASSOCIATION( mDragBeginPoints );
|
||||
|
|
@ -116,11 +118,21 @@ GuiEditCtrl::GuiEditCtrl()
|
|||
|
||||
mDragGuide[ GuideVertical ] = false;
|
||||
mDragGuide[ GuideHorizontal ] = false;
|
||||
mDragGuideIndex[0] = 0;
|
||||
mDragGuideIndex[1] = 1;
|
||||
|
||||
std::fill_n(mSnapOffset, 2, 0);
|
||||
std::fill_n(mSnapEdge, 2, SnapEdgeMin);
|
||||
|
||||
if( !smGuidesPropertyName[ GuideVertical ] )
|
||||
smGuidesPropertyName[ GuideVertical ] = StringTable->insert( "guidesVertical" );
|
||||
if( !smGuidesPropertyName[ GuideHorizontal ] )
|
||||
smGuidesPropertyName[ GuideHorizontal ] = StringTable->insert( "guidesHorizontal" );
|
||||
|
||||
mTrash = NULL;
|
||||
mSelectedSet = NULL;
|
||||
mMouseDownMode = GuiEditCtrl::Selecting;
|
||||
mSizingMode = GuiEditCtrl::sizingNone;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
|
|
|||
|
|
@ -1087,7 +1087,7 @@ bool GuiInspectorTypeEaseF::updateRects()
|
|||
// GuiInspectorTypeColor (Base for ColorI/LinearColorF)
|
||||
//-----------------------------------------------------------------------------
|
||||
GuiInspectorTypeColor::GuiInspectorTypeColor()
|
||||
: mBrowseButton( NULL )
|
||||
: mColorFunction(NULL), mBrowseButton( NULL )
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -102,6 +102,8 @@ GuiParticleGraphCtrl::GuiParticleGraphCtrl()
|
|||
mPointXMovementClamped = false;
|
||||
mOutlineColor = ColorI(1, 1, 1);
|
||||
mCursorPos = Point2I(0, 0);
|
||||
mTooltipSelectedPlot = 0;
|
||||
mRenderNextGraphTooltip = false;
|
||||
}
|
||||
|
||||
ImplementEnumType( GuiParticleGraphType,
|
||||
|
|
|
|||
|
|
@ -95,6 +95,7 @@ GuiPopupMenuTextListCtrl::GuiPopupMenuTextListCtrl()
|
|||
mPopup = nullptr;
|
||||
|
||||
mLastHighlightedMenuIdx = -1;
|
||||
mBackground = NULL;
|
||||
}
|
||||
|
||||
void GuiPopupMenuTextListCtrl::onRenderCell(Point2I offset, Point2I cell, bool selected, bool mouseOver)
|
||||
|
|
@ -258,4 +259,4 @@ void GuiPopupMenuTextListCtrl::onCellHighlighted(Point2I cell)
|
|||
list->mSubMenu->showPopup(getRoot(), getPosition().x + mCellSize.x, getPosition().y + (selectionIndex * mCellSize.y));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -69,6 +69,7 @@ GuiShapeEdPreview::GuiShapeEdPreview()
|
|||
mRenderNodes( false ),
|
||||
mRenderBounds( false ),
|
||||
mRenderObjBox( false ),
|
||||
mRenderColMeshes( false ),
|
||||
mRenderMounts( true ),
|
||||
mSunDiffuseColor( 255, 255, 255, 255 ),
|
||||
mSelectedNode( -1 ),
|
||||
|
|
|
|||
|
|
@ -42,13 +42,15 @@ GuiInspectorCustomField::GuiInspectorCustomField( GuiInspector *inspector,
|
|||
{
|
||||
mInspector = inspector;
|
||||
mParent = parent;
|
||||
setBounds(0,0,100,20);
|
||||
setBounds(0,0,100,20);
|
||||
mDoc = StringTable->insert("no Docs Found!");
|
||||
}
|
||||
|
||||
GuiInspectorCustomField::GuiInspectorCustomField()
|
||||
{
|
||||
mInspector = NULL;
|
||||
mParent = NULL;
|
||||
mDoc = StringTable->insert("no Docs Found!");
|
||||
}
|
||||
|
||||
void GuiInspectorCustomField::setData( const char* data, bool callbacks )
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ class GuiInspectorDynamicField : public GuiInspectorField
|
|||
public:
|
||||
|
||||
GuiInspectorDynamicField( GuiInspector *inspector, GuiInspectorGroup* parent, SimFieldDictionary::Entry* field );
|
||||
GuiInspectorDynamicField() {};
|
||||
GuiInspectorDynamicField() :mDynField(NULL), mDeleteButton(NULL) {};
|
||||
~GuiInspectorDynamicField() {};
|
||||
|
||||
DECLARE_CONOBJECT( GuiInspectorDynamicField );
|
||||
|
|
|
|||
|
|
@ -37,9 +37,9 @@ private:
|
|||
|
||||
public:
|
||||
DECLARE_CONOBJECT(GuiInspectorDynamicGroup);
|
||||
GuiInspectorDynamicGroup() { /*mNeedScroll=false;*/ };
|
||||
GuiInspectorDynamicGroup() { mAddCtrl = NULL;/*mNeedScroll=false;*/ };
|
||||
GuiInspectorDynamicGroup( StringTableEntry groupName, SimObjectPtr<GuiInspector> parent )
|
||||
: GuiInspectorGroup( groupName, parent) { /*mNeedScroll=false;*/};
|
||||
: GuiInspectorGroup( groupName, parent) { mAddCtrl = NULL;/*mNeedScroll=false;*/};
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// inspectGroup is overridden in GuiInspectorDynamicGroup to inspect an
|
||||
|
|
|
|||
|
|
@ -52,7 +52,11 @@ GuiInspectorField::GuiInspectorField( GuiInspector* inspector,
|
|||
mEdit( NULL ),
|
||||
mTargetObject(NULL),
|
||||
mUseHeightOverride(false),
|
||||
mHeightOverride(18)
|
||||
mHighlighted(false),
|
||||
mHeightOverride(18),
|
||||
mSpecialEditField(false),
|
||||
mVariableName(StringTable->EmptyString()),
|
||||
mCallbackName(StringTable->EmptyString())
|
||||
{
|
||||
if( field != NULL )
|
||||
mCaption = field->pFieldname;
|
||||
|
|
|
|||
|
|
@ -41,7 +41,10 @@ ConsoleDocClass( GuiInspectorVariableField,
|
|||
"@internal"
|
||||
);
|
||||
|
||||
GuiInspectorVariableField::GuiInspectorVariableField()
|
||||
GuiInspectorVariableField::GuiInspectorVariableField()
|
||||
: mVariableName(StringTable->EmptyString()),
|
||||
mSetCallbackName(StringTable->EmptyString()),
|
||||
mOwnerObject(NULL)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue