mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Add comment to detail
This commit is contained in:
parent
d5d85cd7be
commit
5e1ddde773
@ -62,6 +62,11 @@ namespace NewHorizons.Builder.Props
|
||||
detailGO = newDetailGO;
|
||||
}
|
||||
|
||||
if (detail.comment != null)
|
||||
{
|
||||
detailGO.name = detail.comment;
|
||||
}
|
||||
|
||||
detailInfoToCorrespondingSpawnedGameObject[detail] = detailGO;
|
||||
}
|
||||
|
||||
|
||||
5
NewHorizons/External/Modules/PropModule.cs
vendored
5
NewHorizons/External/Modules/PropModule.cs
vendored
@ -113,6 +113,11 @@ namespace NewHorizons.External.Modules
|
||||
[JsonObject]
|
||||
public class DetailInfo
|
||||
{
|
||||
/// <summary>
|
||||
/// An optional rename of the detail
|
||||
/// </summary>
|
||||
public string comment;
|
||||
|
||||
/// <summary>
|
||||
/// Do we override rotation and try to automatically align this object to stand upright on the body's surface?
|
||||
/// </summary>
|
||||
|
||||
@ -793,6 +793,10 @@
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"comment": {
|
||||
"type": "string",
|
||||
"description": "An optional rename of the detail"
|
||||
},
|
||||
"alignToNormal": {
|
||||
"type": "boolean",
|
||||
"description": "Do we override rotation and try to automatically align this object to stand upright on the body's surface?"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user