Merge branch 'dev' into fix-layers

This commit is contained in:
JohnCorby 2023-06-05 19:52:58 -07:00
commit fcea8740eb
9 changed files with 23 additions and 21 deletions

View File

@ -120,7 +120,7 @@ namespace NewHorizons.External.Modules
/// <summary>
/// Fluid type for sounds/effects when colliding with this cloud.
/// </summary>
[DefaultValue("cloud")] public NHFluidType fluidType = NHFluidType.Cloud;
[DefaultValue("cloud")] public NHFluidType fluidType = NHFluidType.CLOUD;
/// <summary>
/// Add lightning to this planet like on Giant's Deep.

View File

@ -8,7 +8,8 @@ namespace NewHorizons.External.Modules.Props.Audio
public class AudioSourceInfo : BaseAudioInfo
{
/// <summary>
/// The audio track of this audio source
/// The audio track of this audio source.
/// Most of the time you'll use environment (the default) for sound effects and music for music.
/// </summary>
[DefaultValue("environment")] public NHAudioMixerTrackName track = NHAudioMixerTrackName.Environment;
}

View File

@ -68,7 +68,7 @@ namespace NewHorizons.External.Modules.Props
/// <summary>
/// Fluid type for sounds/effects when colliding with this tornado.
/// </summary>
[DefaultValue("cloud")] public NHFluidType fluidType = NHFluidType.Cloud;
[DefaultValue("cloud")] public NHFluidType fluidType = NHFluidType.CLOUD;
}
}

View File

@ -12,7 +12,7 @@ namespace NewHorizons.External.Modules
/// <summary>
/// Fluid type for sounds/effects when colliding with this ring.
/// </summary>
public NHFluidType fluidType = NHFluidType.None;
public NHFluidType fluidType = NHFluidType.NONE;
/// <summary>
/// Angle between the rings and the equatorial plane of the planet.

View File

@ -16,7 +16,8 @@ namespace NewHorizons.External.Modules.Volumes.VolumeInfos
[DefaultValue("random")] public NHClipSelectionType clipSelection = NHClipSelectionType.RANDOM;
/// <summary>
/// The audio track of this audio volume
/// The audio track of this audio volume.
/// Most of the time you'll use environment (the default) for sound effects and music for music.
/// </summary>
[DefaultValue("environment")] public NHAudioMixerTrackName track = NHAudioMixerTrackName.Environment;

View File

@ -7,14 +7,14 @@ namespace NewHorizons.External.SerializableEnums
[JsonConverter(typeof(StringEnumConverter))]
public enum NHFluidType
{
[EnumMember(Value = @"none")] None = 0,
[EnumMember(Value = @"none")] NONE = 0,
[EnumMember(Value = @"water")] Water = 1,
[EnumMember(Value = @"water")] WATER = 1,
[EnumMember(Value = @"cloud")] Cloud = 2,
[EnumMember(Value = @"cloud")] CLOUD = 2,
[EnumMember(Value = @"sand")] Sand = 3,
[EnumMember(Value = @"sand")] SAND = 3,
[EnumMember(Value = @"plasma")] Plasma = 4
[EnumMember(Value = @"plasma")] PLASMA = 4
}
}

View File

@ -484,11 +484,11 @@
"type": "string",
"description": "",
"x-enumNames": [
"None",
"Water",
"Cloud",
"Sand",
"Plasma"
"NONE",
"WATER",
"CLOUD",
"SAND",
"PLASMA"
],
"enum": [
"none",
@ -2690,7 +2690,7 @@
"description": "An optional rename of this object"
},
"track": {
"description": "The audio track of this audio source",
"description": "The audio track of this audio source.\nMost of the time you'll use environment (the default) for sound effects and music for music. ",
"default": "environment",
"$ref": "#/definitions/NHAudioMixerTrackName"
}
@ -3424,7 +3424,7 @@
"$ref": "#/definitions/NHClipSelectionType"
},
"track": {
"description": "The audio track of this audio volume",
"description": "The audio track of this audio volume.\nMost of the time you'll use environment (the default) for sound effects and music for music. ",
"default": "environment",
"$ref": "#/definitions/NHAudioMixerTrackName"
},

View File

@ -255,13 +255,13 @@ namespace NewHorizons.Utility
}
public static FluidVolume.Type ConvertToOW(this NHFluidType fluidType, FluidVolume.Type @default = FluidVolume.Type.NONE)
=> EnumUtils.Parse(fluidType.ToString().ToUpper(), @default);
=> EnumUtils.Parse(fluidType.ToString(), @default);
public static OWAudioMixer.TrackName ConvertToOW(this NHAudioMixerTrackName trackName, OWAudioMixer.TrackName @default = OWAudioMixer.TrackName.Environment)
=> EnumUtils.Parse(trackName.ToString().ToUpper(), @default);
=> EnumUtils.Parse(trackName.ToString(), @default);
public static OWAudioSource.ClipSelectionOnPlay ConvertToOW(this NHClipSelectionType clipSelection, OWAudioSource.ClipSelectionOnPlay @default = OWAudioSource.ClipSelectionOnPlay.RANDOM)
=> EnumUtils.Parse(clipSelection.ToString().ToUpper(), @default);
=> EnumUtils.Parse(clipSelection.ToString(), @default);
public static void SmoothLookDir(this GameObject go, Vector3 direction, float dt, float angularVelocity)
{

View File

@ -4,7 +4,7 @@
"author": "xen, Bwc9876, clay, MegaPiggy, John, Trifid, Hawkbar, Book",
"name": "New Horizons",
"uniqueName": "xen.NewHorizons",
"version": "1.11.0",
"version": "1.11.1",
"owmlVersion": "2.9.0",
"dependencies": [ "JohnCorby.VanillaFix", "_nebula.MenuFramework", "xen.CommonCameraUtility", "dgarro.CustomShipLogModes" ],
"conflicts": [ "Raicuparta.QuantumSpaceBuddies", "PacificEngine.OW_CommonResources" ],