mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-02 20:10:32 +00:00
Merge branch 'MiscQOLFixes20210828' of https://github.com/Areloch/Torque3D into Preview4_0
This commit is contained in:
commit
25a32cba2a
26 changed files with 330 additions and 204 deletions
|
|
@ -438,15 +438,15 @@ ImageAsset::ImageTypes ImageAsset::getImageTypeFromName(const char* name)
|
|||
}
|
||||
|
||||
DefineEngineMethod(ImageAsset, getImagePath, const char*, (), ,
|
||||
"Creates an instance of the given GameObject given the asset definition.\n"
|
||||
"@return The GameObject entity created from the asset.")
|
||||
"Gets the image filepath of this asset.\n"
|
||||
"@return File path of the image file.")
|
||||
{
|
||||
return object->getImagePath();
|
||||
}
|
||||
|
||||
DefineEngineMethod(ImageAsset, getImageInfo, const char*, (), ,
|
||||
"Creates an instance of the given GameObject given the asset definition.\n"
|
||||
"@return The GameObject entity created from the asset.")
|
||||
"Gets the info and properties of the image.\n"
|
||||
"@return The info/properties of the image.")
|
||||
{
|
||||
return object->getImageInfo();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -429,6 +429,13 @@ void TerrainAsset::copyTo(SimObject* object)
|
|||
Parent::copyTo(object);
|
||||
}
|
||||
|
||||
DefineEngineMethod(TerrainAsset, getTerrainFilePath, const char*, (), ,
|
||||
"Gets the terrain filepath of this asset.\n"
|
||||
"@return File path of the terrain file.")
|
||||
{
|
||||
return object->getTerrainFilePath();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// GuiInspectorTypeAssetId
|
||||
//-----------------------------------------------------------------------------
|
||||
|
|
|
|||
|
|
@ -150,7 +150,7 @@ void GuiVariableInspector::addField(const char* name, const char* label, const c
|
|||
{
|
||||
VariableField newField;
|
||||
newField.mFieldName = StringTable->insert(name);
|
||||
newField.mFieldLabel = StringTable->insert(label);
|
||||
newField.mFieldLabel = StringTable->insert(label, true);
|
||||
newField.mFieldTypeName = StringTable->insert(typeName);
|
||||
newField.mFieldDescription = StringTable->insert(description);
|
||||
newField.mDefaultValue = StringTable->insert(defaultValue);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue