mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-09 21:54:35 +00:00
add a docsURL; macro to link a given set of script config vars to git or similar storage urls via clicking on the inspector
This commit is contained in:
parent
a0bbe0ec18
commit
f5a34308f9
382 changed files with 588 additions and 130 deletions
|
|
@ -70,7 +70,8 @@ Gui3DProjectionCtrl::Gui3DProjectionCtrl()
|
|||
}
|
||||
|
||||
void Gui3DProjectionCtrl::initPersistFields()
|
||||
{
|
||||
{
|
||||
docsURL;
|
||||
Parent::initPersistFields();
|
||||
addGroup("3DProjection");
|
||||
addField("pointWorld" , TypePoint3F , Offset(mPtWorld , Gui3DProjectionCtrl));
|
||||
|
|
|
|||
|
|
@ -64,6 +64,7 @@ guiAnimBitmapCtrl::~guiAnimBitmapCtrl(void)
|
|||
}
|
||||
void guiAnimBitmapCtrl::initPersistFields()
|
||||
{
|
||||
docsURL;
|
||||
addField("AnimTexTiling", TYPEID< Point2I >(), Offset(mAnimTexTiling, guiAnimBitmapCtrl),
|
||||
"@brief The number of frames, in rows and columns stored in textureName "
|
||||
"(when animateTexture is true).\n\n"
|
||||
|
|
|
|||
|
|
@ -43,6 +43,7 @@ GuiBitmapBarCtrl::GuiBitmapBarCtrl(void)
|
|||
|
||||
void GuiBitmapBarCtrl::initPersistFields()
|
||||
{
|
||||
docsURL;
|
||||
addField("percent", TypeF32, Offset(mPercent, GuiBitmapBarCtrl),
|
||||
"% shown");
|
||||
addField("vertical", TypeBool, Offset(mVertical, GuiBitmapBarCtrl),
|
||||
|
|
@ -98,4 +99,4 @@ void GuiBitmapBarCtrl::onRender(Point2I offset, const RectI &updateRect)
|
|||
}
|
||||
|
||||
renderChildControls(offset, updateRect);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -78,6 +78,7 @@ bool GuiBitmapCtrl::setBitmapName( void *object, const char *index, const char *
|
|||
|
||||
void GuiBitmapCtrl::initPersistFields()
|
||||
{
|
||||
docsURL;
|
||||
addGroup( "Bitmap" );
|
||||
|
||||
INITPERSISTFIELD_IMAGEASSET(Bitmap, GuiBitmapCtrl, The bitmap file to display in the control);
|
||||
|
|
|
|||
|
|
@ -101,6 +101,7 @@ EndImplementEnumType;
|
|||
|
||||
void GuiColorPickerCtrl::initPersistFields()
|
||||
{
|
||||
docsURL;
|
||||
addGroup("ColorPicker");
|
||||
addField("baseColor", TypeColorF, Offset(mBaseColor, GuiColorPickerCtrl));
|
||||
addField("pickColor", TypeColorF, Offset(mPickColor, GuiColorPickerCtrl));
|
||||
|
|
|
|||
|
|
@ -62,6 +62,7 @@ GuiConsoleEditCtrl::GuiConsoleEditCtrl()
|
|||
|
||||
void GuiConsoleEditCtrl::initPersistFields()
|
||||
{
|
||||
docsURL;
|
||||
addGroup("GuiConsoleEditCtrl");
|
||||
addField("useSiblingScroller", TypeBool, Offset(mUseSiblingScroller, GuiConsoleEditCtrl));
|
||||
endGroup("GuiConsoleEditCtrl");
|
||||
|
|
|
|||
|
|
@ -46,6 +46,7 @@ GuiConsoleTextCtrl::~GuiConsoleTextCtrl()
|
|||
|
||||
void GuiConsoleTextCtrl::initPersistFields()
|
||||
{
|
||||
docsURL;
|
||||
addGroup("GuiConsoleTextCtrl");
|
||||
addField("expression", TypeRealString, Offset(mConsoleExpression, GuiConsoleTextCtrl));
|
||||
endGroup("GuiConsoleTextCtrl");
|
||||
|
|
|
|||
|
|
@ -65,6 +65,7 @@ GuiDecoyCtrl::~GuiDecoyCtrl()
|
|||
|
||||
void GuiDecoyCtrl::initPersistFields()
|
||||
{
|
||||
docsURL;
|
||||
addField("isDecoy", TypeBool, Offset(mIsDecoy, GuiDecoyCtrl), "Sets this control to decoy mode");
|
||||
|
||||
Parent::initPersistFields();
|
||||
|
|
|
|||
|
|
@ -51,6 +51,7 @@ GuiDirectoryFileListCtrl::GuiDirectoryFileListCtrl()
|
|||
|
||||
void GuiDirectoryFileListCtrl::initPersistFields()
|
||||
{
|
||||
docsURL;
|
||||
addProtectedField( "filePath", TypeString, Offset( mFilePath, GuiDirectoryFileListCtrl ),
|
||||
&_setFilePath, &defaultProtectedGetFn, "Path in game directory from which to list files." );
|
||||
addProtectedField( "fileFilter", TypeString, Offset( mFilter, GuiDirectoryFileListCtrl ),
|
||||
|
|
|
|||
|
|
@ -73,6 +73,7 @@ GuiFileTreeCtrl::GuiFileTreeCtrl()
|
|||
|
||||
void GuiFileTreeCtrl::initPersistFields()
|
||||
{
|
||||
docsURL;
|
||||
addGroup( "File Tree" );
|
||||
addField( "rootPath", TypeRealString, Offset( mRootPath, GuiFileTreeCtrl ), "Path in game directory that should be displayed in the control." );
|
||||
addProtectedField( "fileFilter", TypeRealString, Offset( mFileFilter, GuiFileTreeCtrl ),
|
||||
|
|
|
|||
|
|
@ -1475,6 +1475,7 @@ IMPLEMENT_CALLBACK(GuiGameListMenuCtrl, onAxisEvent, void, (const char* device,
|
|||
|
||||
void GuiGameListMenuCtrl::initPersistFields()
|
||||
{
|
||||
docsURL;
|
||||
addField("debugRender", TypeBool, Offset(mDebugRender, GuiGameListMenuCtrl),
|
||||
"Enable debug rendering" );
|
||||
|
||||
|
|
@ -1862,6 +1863,7 @@ ConsoleDocClass( GuiGameListMenuProfile,
|
|||
|
||||
void GuiGameListMenuProfile::initPersistFields()
|
||||
{
|
||||
docsURL;
|
||||
addField( "hitAreaUpperLeft", TypePoint2I, Offset(mHitAreaUpperLeft, GuiGameListMenuProfile),
|
||||
"Position of the upper left corner of the row hit area (relative to row's top left corner)" );
|
||||
|
||||
|
|
|
|||
|
|
@ -446,6 +446,7 @@ ConsoleDocClass( GuiGameListOptionsCtrl,
|
|||
|
||||
void GuiGameListOptionsCtrl::initPersistFields()
|
||||
{
|
||||
docsURL;
|
||||
Parent::initPersistFields();
|
||||
}
|
||||
|
||||
|
|
@ -542,6 +543,7 @@ ConsoleDocClass( GuiGameListOptionsProfile,
|
|||
|
||||
void GuiGameListOptionsProfile::initPersistFields()
|
||||
{
|
||||
docsURL;
|
||||
addField( "columnSplit", TypeS32, Offset(mColumnSplit, GuiGameListOptionsProfile),
|
||||
"Padding between the leftmost edge of the control, and the row's left arrow." );
|
||||
|
||||
|
|
|
|||
|
|
@ -900,6 +900,7 @@ IMPLEMENT_CALLBACK(GuiGameSettingsCtrl, onAxisEvent, void, (const char* device,
|
|||
|
||||
void GuiGameSettingsCtrl::initPersistFields()
|
||||
{
|
||||
docsURL;
|
||||
INITPERSISTFIELD_IMAGEASSET(KeybindBitmap, GuiGameSettingsCtrl, "Bitmap used to display the bound key for this keybind option.");
|
||||
INITPERSISTFIELD_IMAGEASSET(PreviousBitmap, GuiGameSettingsCtrl, "Bitmap used for the previous button when in list mode.");
|
||||
INITPERSISTFIELD_IMAGEASSET(NextBitmap, GuiGameSettingsCtrl, "Bitmap used for the next button when in list mode.");
|
||||
|
|
|
|||
|
|
@ -232,6 +232,7 @@ GuiGradientCtrl::GuiGradientCtrl()
|
|||
//--------------------------------------------------------------------------
|
||||
void GuiGradientCtrl::initPersistFields()
|
||||
{
|
||||
docsURL;
|
||||
addGroup("ColorPicker");
|
||||
addField("baseColor", TypeColorF, Offset(mBaseColor, GuiGradientCtrl));
|
||||
addField("pickColor", TypeColorF, Offset(mPickColor, GuiGradientCtrl));
|
||||
|
|
|
|||
|
|
@ -176,6 +176,7 @@ GuiListBoxCtrl::~GuiListBoxCtrl()
|
|||
|
||||
void GuiListBoxCtrl::initPersistFields()
|
||||
{
|
||||
docsURL;
|
||||
addField( "allowMultipleSelections", TypeBool, Offset( mMultipleSelections, GuiListBoxCtrl), "If true, will allow the selection of multiple items in the listbox.\n");
|
||||
addField( "fitParentWidth", TypeBool, Offset( mFitParentWidth, GuiListBoxCtrl), "If true, the width of the listbox will match the width of its parent control.\n");
|
||||
addField( "colorBullet", TypeBool, Offset( mColorBullet, GuiListBoxCtrl), "If true, colored items will render a colored rectangular bullet next to the item text.\n");
|
||||
|
|
|
|||
|
|
@ -285,6 +285,7 @@ GuiMLTextCtrl::~GuiMLTextCtrl()
|
|||
//--------------------------------------------------------------------------
|
||||
void GuiMLTextCtrl::initPersistFields()
|
||||
{
|
||||
docsURL;
|
||||
addGroup( "Text" );
|
||||
|
||||
addField("lineSpacing", TypeS32, Offset(mLineSpacingPixels, GuiMLTextCtrl), "The number of blank pixels to place between each line.\n");
|
||||
|
|
|
|||
|
|
@ -89,6 +89,7 @@ bool GuiMLTextEditCtrl::resize(const Point2I &newPosition, const Point2I &newExt
|
|||
//--------------------------------------------------------------------------
|
||||
void GuiMLTextEditCtrl::initPersistFields()
|
||||
{
|
||||
docsURL;
|
||||
addField( "escapeCommand", TypeString, Offset( mEscapeCommand, GuiMLTextEditCtrl ), "Script function to run whenever the 'escape' key is pressed when this control is in focus.\n");
|
||||
Parent::initPersistFields();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -50,6 +50,7 @@ GuiMaterialCtrl::GuiMaterialCtrl()
|
|||
|
||||
void GuiMaterialCtrl::initPersistFields()
|
||||
{
|
||||
docsURL;
|
||||
addGroup( "Material" );
|
||||
INITPERSISTFIELD_MATERIALASSET(Material, GuiMaterialCtrl, "");
|
||||
addProtectedField( "materialName", TypeStringFilename, Offset( mMaterialName, GuiMaterialCtrl ), &GuiMaterialCtrl::_setMaterialData, &defaultProtectedGetFn, "", AbstractClassRep::FIELD_HideInInspectors );
|
||||
|
|
|
|||
|
|
@ -297,6 +297,7 @@ GuiPopUpMenuCtrl::~GuiPopUpMenuCtrl()
|
|||
//------------------------------------------------------------------------------
|
||||
void GuiPopUpMenuCtrl::initPersistFields(void)
|
||||
{
|
||||
docsURL;
|
||||
addField("maxPopupHeight", TypeS32, Offset(mMaxPopupHeight, GuiPopUpMenuCtrl));
|
||||
addField("sbUsesNAColor", TypeBool, Offset(mRenderScrollInNA, GuiPopUpMenuCtrl));
|
||||
addField("reverseTextList", TypeBool, Offset(mReverseTextList, GuiPopUpMenuCtrl));
|
||||
|
|
|
|||
|
|
@ -349,6 +349,7 @@ GuiPopUpMenuCtrlEx::~GuiPopUpMenuCtrlEx()
|
|||
//------------------------------------------------------------------------------
|
||||
void GuiPopUpMenuCtrlEx::initPersistFields(void)
|
||||
{
|
||||
docsURL;
|
||||
addField("maxPopupHeight", TypeS32, Offset(mMaxPopupHeight, GuiPopUpMenuCtrlEx), "Length of menu when it extends");
|
||||
addField("sbUsesNAColor", TypeBool, Offset(mRenderScrollInNA, GuiPopUpMenuCtrlEx), "Deprecated" "@internal");
|
||||
addField("reverseTextList", TypeBool, Offset(mReverseTextList, GuiPopUpMenuCtrlEx), "Reverses text list if popup extends up, instead of down");
|
||||
|
|
|
|||
|
|
@ -111,6 +111,7 @@ GuiSliderCtrl::GuiSliderCtrl()
|
|||
|
||||
void GuiSliderCtrl::initPersistFields()
|
||||
{
|
||||
docsURL;
|
||||
addGroup( "Slider" );
|
||||
|
||||
addField( "range", TypePoint2F, Offset( mRange, GuiSliderCtrl ),
|
||||
|
|
|
|||
|
|
@ -58,6 +58,7 @@ GuiTabPageCtrl::GuiTabPageCtrl(void)
|
|||
|
||||
void GuiTabPageCtrl::initPersistFields()
|
||||
{
|
||||
docsURL;
|
||||
addField( "fitBook", TypeBool, Offset( mFitBook, GuiTabPageCtrl ),
|
||||
"Determines whether to resize this page when it is added to the tab book. "
|
||||
"If true, the page will be resized according to the tab book extents and "
|
||||
|
|
|
|||
|
|
@ -89,6 +89,7 @@ DefineEngineMethod( GuiTextCtrl, setTextID, void, (const char* textID),,
|
|||
|
||||
void GuiTextCtrl::initPersistFields()
|
||||
{
|
||||
docsURL;
|
||||
addProtectedField("text", TypeCaseString, Offset(mInitialText, GuiTextCtrl), setText, getTextProperty,
|
||||
"The text to show on the control.");
|
||||
|
||||
|
|
|
|||
|
|
@ -169,6 +169,7 @@ GuiTextEditCtrl::~GuiTextEditCtrl()
|
|||
|
||||
void GuiTextEditCtrl::initPersistFields()
|
||||
{
|
||||
docsURL;
|
||||
addProtectedField("placeholderText", TypeCaseString, Offset(mPlaceholderText, GuiTextEditCtrl), setPlaceholderText, getPlaceholderText,
|
||||
"The text to show on the control.");
|
||||
|
||||
|
|
|
|||
|
|
@ -105,6 +105,7 @@ GuiTextEditSliderBitmapCtrl::~GuiTextEditSliderBitmapCtrl()
|
|||
|
||||
void GuiTextEditSliderBitmapCtrl::initPersistFields()
|
||||
{
|
||||
docsURL;
|
||||
addField("format", TypeString, Offset(mFormat, GuiTextEditSliderBitmapCtrl), "Character format type to place in the control.\n");
|
||||
addField("range", TypePoint2F, Offset(mRange, GuiTextEditSliderBitmapCtrl), "Maximum vertical and horizontal range to allow in the control.\n");
|
||||
addField("increment", TypeF32, Offset(mIncAmount, GuiTextEditSliderBitmapCtrl), "How far to increment the slider on each step.\n");
|
||||
|
|
|
|||
|
|
@ -71,6 +71,7 @@ GuiTextEditSliderCtrl::~GuiTextEditSliderCtrl()
|
|||
|
||||
void GuiTextEditSliderCtrl::initPersistFields()
|
||||
{
|
||||
docsURL;
|
||||
addField("format", TypeString, Offset(mFormat, GuiTextEditSliderCtrl), "Character format type to place in the control.\n");
|
||||
addField("range", TypePoint2F, Offset(mRange, GuiTextEditSliderCtrl), "Maximum vertical and horizontal range to allow in the control.\n");
|
||||
addField("increment", TypeF32, Offset(mIncAmount, GuiTextEditSliderCtrl), "How far to increment the slider on each step.\n");
|
||||
|
|
|
|||
|
|
@ -130,6 +130,7 @@ GuiTextListCtrl::GuiTextListCtrl()
|
|||
|
||||
void GuiTextListCtrl::initPersistFields()
|
||||
{
|
||||
docsURL;
|
||||
addField("columns", TypeS32Vector, Offset(mColumnOffsets, GuiTextListCtrl), "A vector of column offsets. The number of values determines the number of columns in the table.\n" );
|
||||
addField("fitParentWidth", TypeBool, Offset(mFitParentWidth, GuiTextListCtrl), "If true, the width of this control will match the width of its parent.\n");
|
||||
addField("clipColumnText", TypeBool, Offset(mClipColumnText, GuiTextListCtrl), "If true, text exceeding a column's given width will get clipped.\n" );
|
||||
|
|
|
|||
|
|
@ -859,6 +859,7 @@ GuiTreeViewCtrl::~GuiTreeViewCtrl()
|
|||
|
||||
void GuiTreeViewCtrl::initPersistFields()
|
||||
{
|
||||
docsURL;
|
||||
addGroup( "TreeView" );
|
||||
|
||||
addField( "tabSize", TypeS32, Offset(mTabSize, GuiTreeViewCtrl));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue