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:
AzaezelX 2023-01-27 01:13:15 -06:00
parent a0bbe0ec18
commit f5a34308f9
382 changed files with 588 additions and 130 deletions

View file

@ -107,6 +107,7 @@ GuiAutoScrollCtrl::GuiAutoScrollCtrl()
void GuiAutoScrollCtrl::initPersistFields()
{
docsURL;
addGroup( "Scrolling" );
addField( "scrollDirection", TYPEID< Direction >(), Offset( mDirection, GuiAutoScrollCtrl ),

View file

@ -75,6 +75,7 @@ GuiContainer::~GuiContainer()
void GuiContainer::initPersistFields()
{
docsURL;
Con::setIntVariable("$DOCKING_NONE", Docking::dockNone);
Con::setIntVariable("$DOCKING_CLIENT", Docking::dockClient);
Con::setIntVariable("$DOCKING_TOP", Docking::dockTop);

View file

@ -53,6 +53,7 @@ GuiControlArrayControl::GuiControlArrayControl()
void GuiControlArrayControl::initPersistFields()
{
docsURL;
addGroup( "Array" );
addField( "colCount", TypeS32, Offset(mCols, GuiControlArrayControl),

View file

@ -164,6 +164,7 @@ GuiDragAndDropControl::GuiDragAndDropControl() : mDeleteOnMouseUp(true), mUseWho
void GuiDragAndDropControl::initPersistFields()
{
docsURL;
addField( "deleteOnMouseUp", TypeBool, Offset( mDeleteOnMouseUp, GuiDragAndDropControl ),
"If true, the control deletes itself when the left mouse button is released.\n\n"
"If at this point, the drag&drop control still contains its payload, it will be deleted along with the control." );

View file

@ -97,6 +97,7 @@ ConsoleDocClass( GuiDynamicCtrlArrayControl,
void GuiDynamicCtrlArrayControl::initPersistFields()
{
docsURL;
addField( "colCount", TypeS32, Offset( mCols, GuiDynamicCtrlArrayControl ),
"Number of columns the child controls have been arranged into. This "
"value is calculated automatically when children are added, removed or "

View file

@ -79,6 +79,7 @@ bool GuiFormCtrl::_setHasMenu( void *object, const char *index, const char *data
void GuiFormCtrl::initPersistFields()
{
docsURL;
addField("caption", TypeRealString, Offset(mCaption, GuiFormCtrl));
addField("contentLibrary",TypeString, Offset(mContentLibrary, GuiFormCtrl));
addField("content", TypeString, Offset(mContent, GuiFormCtrl));

View file

@ -85,6 +85,7 @@ EndImplementEnumType;
//-----------------------------------------------------------------------------
void GuiFrameSetCtrl::initPersistFields()
{
docsURL;
addField( "columns", TypeS32Vector, Offset(mColumnOffsets, GuiFrameSetCtrl),
"A vector of column offsets (determines the width of each column)." );
@ -1150,4 +1151,4 @@ RectSpacingI GuiFrameSetCtrl::getFramePadding(S32 index)
return fd->mPadding;
return RectSpacingI( 0, 0, 0, 0 );
}
}

View file

@ -78,6 +78,7 @@ GuiPaneControl::GuiPaneControl()
void GuiPaneControl::initPersistFields()
{
docsURL;
addGroup( "Pane" );
addField("caption", TypeRealString, Offset(mCaption, GuiPaneControl),

View file

@ -92,6 +92,7 @@ GuiRolloutCtrl::~GuiRolloutCtrl()
void GuiRolloutCtrl::initPersistFields()
{
docsURL;
addGroup( "Rollout" );
addField( "caption", TypeRealString, Offset( mCaption, GuiRolloutCtrl ),

View file

@ -96,6 +96,7 @@ GuiScrollCtrl::GuiScrollCtrl()
void GuiScrollCtrl::initPersistFields()
{
docsURL;
addGroup( "Scolling" );
addField( "willFirstRespond", TypeBool, Offset(mWillFirstRespond, GuiScrollCtrl));

View file

@ -113,6 +113,7 @@ GuiSplitContainer::GuiSplitContainer()
void GuiSplitContainer::initPersistFields()
{
docsURL;
addGroup( "Splitter", "Options to configure split panels contained by this control" );
addField( "orientation", TYPEID< Orientation >(), Offset( mOrientation, GuiSplitContainer),

View file

@ -96,6 +96,7 @@ GuiStackControl::GuiStackControl()
void GuiStackControl::initPersistFields()
{
docsURL;
addGroup( "Stacking" );
addField( "stackingType", TYPEID< StackingType >(), Offset(mStackingType, GuiStackControl),
@ -385,4 +386,4 @@ bool GuiStackControl::reOrder(SimObject* obj, SimObject* target)
void GuiStackControl::childResized(GuiControl *child)
{
updatePanes();
}
}

View file

@ -98,6 +98,7 @@ GuiTabBookCtrl::GuiTabBookCtrl()
void GuiTabBookCtrl::initPersistFields()
{
docsURL;
addGroup( "TabBook" );
addField( "tabPosition", TYPEID< TabPosition >(), Offset( mTabPosition, GuiTabBookCtrl ),

View file

@ -131,6 +131,7 @@ GuiWindowCtrl::GuiWindowCtrl()
void GuiWindowCtrl::initPersistFields()
{
docsURL;
addGroup( "Window" );
addField( "text", TypeRealString, Offset( mText, GuiWindowCtrl ),