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

@ -97,6 +97,7 @@ GuiClockHud::GuiClockHud()
void GuiClockHud::initPersistFields()
{
docsURL;
addGroup("Misc");
addField( "showFill", TypeBool, Offset( mShowFill, GuiClockHud ), "If true, draws a background color behind the control.");
addField( "showFrame", TypeBool, Offset( mShowFrame, GuiClockHud ), "If true, draws a frame around the control." );

View file

@ -99,6 +99,7 @@ GuiCrossHairHud::GuiCrossHairHud()
void GuiCrossHairHud::initPersistFields()
{
docsURL;
addGroup("Damage");
addField( "damageFillColor", TypeColorF, Offset( mDamageFillColor, GuiCrossHairHud ), "As the health bar depletes, this color will represent the health loss amount." );
addField( "damageFrameColor", TypeColorF, Offset( mDamageFrameColor, GuiCrossHairHud ), "Color for the health bar's frame." );

View file

@ -112,6 +112,7 @@ GuiHealthBarHud::GuiHealthBarHud()
void GuiHealthBarHud::initPersistFields()
{
docsURL;
addGroup("Colors");
addField( "fillColor", TypeColorF, Offset( mFillColor, GuiHealthBarHud ), "Standard color for the background of the control." );
addField( "frameColor", TypeColorF, Offset( mFrameColor, GuiHealthBarHud ), "Color for the control's frame." );

View file

@ -115,7 +115,8 @@ GuiHealthTextHud::GuiHealthTextHud()
}
void GuiHealthTextHud::initPersistFields()
{
{
docsURL;
addGroup("Colors");
addField("fillColor", TypeColorF, Offset(mFillColor, GuiHealthTextHud), "Color for the background of the control.");
addField("frameColor", TypeColorF, Offset(mFrameColor, GuiHealthTextHud), "Color for the control's frame.");
@ -199,4 +200,4 @@ void GuiHealthTextHud::onRender(Point2I offset, const RectI &updateRect)
// If enabled draw the border last
if (mShowFrame)
drawUtil->drawRect(updateRect, mFrameColor.toColorI());
}
}

View file

@ -126,6 +126,7 @@ GuiShapeNameHud::GuiShapeNameHud()
void GuiShapeNameHud::initPersistFields()
{
docsURL;
addGroup("Colors");
addField( "fillColor", TypeColorF, Offset( mFillColor, GuiShapeNameHud ), "Standard color for the background of the control." );
addField( "frameColor", TypeColorF, Offset( mFrameColor, GuiShapeNameHud ), "Color for the control's frame." );