Skip to content

Commit

Permalink
Allow columns to be resized & reword most text in CSB Builder
Browse files Browse the repository at this point in the history
  • Loading branch information
blueskythlikesclouds committed Mar 19, 2021
1 parent 459d918 commit 3e1b5c8
Show file tree
Hide file tree
Showing 15 changed files with 219 additions and 180 deletions.
2 changes: 1 addition & 1 deletion Source/CsbBuilder/Builder/CsbBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public static void Build(CsbProject project, string outputFileName)
cueTables.Add(new SerializationCueTable
{
Name = cueNode.Name,
Id = cueNode.Identifier,
Id = cueNode.Id,
UserData = cueNode.UserComment,
Flags = cueNode.Flags,
SynthPath = cueNode.SynthReference,
Expand Down
11 changes: 5 additions & 6 deletions Source/CsbBuilder/BuilderNodes/BuilderAisacGraphNode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,27 +10,26 @@ namespace CsbBuilder.BuilderNodes
public class BuilderAisacGraphNode : BuilderBaseNode
{
[Category("General")]
[Description("The type of this Graph. Currently, none of the types are known.")]
[Description("Type of this graph. Values are unknown.")]
public byte Type { get; set; }

[Category("Vector"), DisplayName("Maximum X")]
[Description("The maximum range that the X values in this Graph can reach.")]
[Description("End X position of this graph.")]
public float MaximumX { get; set; }

[Category("Vector"), DisplayName("Minimum X")]
[Description("The minimum range that the X values in this Graph can reach.")]
[Description("Begin X position of this graph.")]
public float MinimumX { get; set; }

[Category("Vector"), DisplayName("Maximum Y")]
[Description("The maximum range that the Y values in this Graph can reach.")]
[Description("End Y position of this graph.")]
public float MaximumY { get; set; }

[Category("Vector"), DisplayName("Minimum Y")]
[Description("The minimum range that the Y values in this Graph can reach.")]
[Description("End X position of this graph.")]
public float MinimumY { get; set; }

[Category("Vector"), DisplayName("Points")]
[Description("The points of this Graph.")]
public List<BuilderAisacPointNode> Points { get; set; }

public BuilderAisacGraphNode()
Expand Down
7 changes: 3 additions & 4 deletions Source/CsbBuilder/BuilderNodes/BuilderAisacNode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,17 @@ namespace CsbBuilder.BuilderNodes
public class BuilderAisacNode : BuilderBaseNode
{
[Category("General"), DisplayName("Aisac Name")]
[Description("The name of this Aisac. (Shouldn't be seen as the node name.)")]
[Description("Representative name of this aisac.")]
public string AisacName { get; set; }

[Category("General")]
[Description("The type of this Aisac. Currently, none of the types are known.")]
[Description("Type of this aisac. Values are unknown.")]
public byte Type { get; set; }

[Category("Graph")]
[Description("The Graph's of this Aisac.")]
public List<BuilderAisacGraphNode> Graphs { get; set; }

[Category("Graph"), DisplayName("Random Range (Unknown)")]
[Category("Graph"), DisplayName("Random Range")]
public byte RandomRange { get; set; }

public BuilderAisacNode()
Expand Down
4 changes: 2 additions & 2 deletions Source/CsbBuilder/BuilderNodes/BuilderAisacPointNode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ namespace CsbBuilder.BuilderNodes
public class BuilderAisacPointNode : BuilderBaseNode
{
[Category("Vector"), DisplayName("X")]
[Description("The X dimension of this Point, relative to the Graph it's in.")]
[Description("Normalized X coordinate of this point.")]
public ushort X { get; set; }

[Category("Vector"), DisplayName("Y")]
[Description("The Y dimension of this Point, relative to the Graph it's in.")]
[Description("Normalized Y coordinate of this point.")]
public ushort Y { get; set; }
}
}
2 changes: 1 addition & 1 deletion Source/CsbBuilder/BuilderNodes/BuilderBaseNode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace CsbBuilder.BuilderNodes
public abstract class BuilderBaseNode : ICloneable
{
[Category("General"), ReadOnly(true)]
[Description("The name of this node.")]
[Description("Name of this node.")]
public string Name { get; set; }

public object Clone()
Expand Down
11 changes: 5 additions & 6 deletions Source/CsbBuilder/BuilderNodes/BuilderCueNode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,20 @@ namespace CsbBuilder.BuilderNodes
{
public class BuilderCueNode : BuilderBaseNode
{
[Category("General"), DisplayName("Identifier")]
[Description("The identifier of this Cue. Must be unique for this Cue Sheet.")]
public uint Identifier { get; set; }
[Category("General"), DisplayName("ID")]
[Description("ID of this cue.")]
public uint Id { get; set; }

[ReadOnly(true)]
[Category("General"), DisplayName("Synth Reference Path")]
[Description("The full path of the Synth (can be Track or Sound) that this Cue is referenced to. When this Cue is called to play in game, the referenced Synth will be played.")]
[Description("Full path of synth reference.")]
public string SynthReference { get; set; }

[Category("General"), DisplayName("User Comment")]
[Description("User comment of this Cue.")]
public string UserComment { get; set; }

[Category("General")]
[Description("Currently, none of the flags are known. However, value '1' seems to mute the Cue in-game.")]
[Description("Flags of this cue. Values are unknown.")]
public byte Flags { get; set; }
}
}
12 changes: 6 additions & 6 deletions Source/CsbBuilder/BuilderNodes/BuilderSoundElementNode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,31 +11,31 @@ public class BuilderSoundElementNode : BuilderBaseNode
{
[ReadOnly(true)]
[Category("General")]
[Description("The name of the audio in Project/Audio directory, which is going to play before the loop audio starts to play. Can be left empty, so that there will be no audio to play.")]
[Description("File path of audio to play before loop. This can be left empty if loop is set.")]
public string Intro { get; set; }

[ReadOnly(true)]
[Category("General")]
[Description("The name of the audio in Project/Audio directory, which is going to be looped. Can be left empty, so that there will be no audio to loop in-game.")]
[Description("File path of audio to play after intro. This can be left empty if intro is set.")]
public string Loop { get; set; }

[ReadOnly(true)]
[Category("General"), DisplayName("Channel Count")]
[Description("The channel count of BOTH Intro and Loop audio files. If they do not match, this will most likely result issues in-game, because the game ignores the channel count information in the audio file itself, but uses this info.")]
[Description("Channel count of audio files. This information is used instead of the metadata in audio files.")]
public byte ChannelCount { get; set; }

[Category("General"), DisplayName("Streamed")]
[Description("Determines whether the audio files specified here are going to be streamed from a .CPK file, which is outside the .CSB file. Otherwise, it will be played from the memory. That's the best to be 'true', if the specified audio files are large.")]
[Description("Determines whether audio files are going to be streamed from a .cpk file.")]
public bool Streaming { get; set; }

[ReadOnly(true)]
[Category("General"), DisplayName("Sample Rate")]
[Description("The sample rate of BOTH Intro and Loop audio files. If they do not match, this will most likely result issues in-game, because the game ignores the sample rate information in the audio file itself, but uses this info.")]
[Description("Sample rate of audio files. This information is used instead of the metadata in audio files.")]
public uint SampleRate { get; set; }

[ReadOnly(true)]
[Category("General"), DisplayName("Sample Count")]
[Description("The sample count of Intro and Loop files, added together.")]
[Description("Sample count of audio files added together.")]
public uint SampleCount { get; set; }
}
}
14 changes: 7 additions & 7 deletions Source/CsbBuilder/BuilderNodes/BuilderSynthNode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public class BuilderSynthNode : BuilderBaseNode
public BuilderSynthType Type { get; set; }

[Category("General"), DisplayName("Playback Type")]
[Description("The playback type of this Synth.")]
[Description("Playback type of this synth.")]
public BuilderSynthPlaybackType PlaybackType
{
get
Expand All @@ -63,27 +63,27 @@ public BuilderSynthPlaybackType PlaybackType

[ReadOnly(true)]
[Category("General"), DisplayName("Sound Element Reference Path")]
[Description("The Sound that this Synth is referenced to. This will be empty if this Synth represents a Track.")]
[Description("Full reference path of sound element node. This is going to be empty if the node is a track.")]
public string SoundElementReference { get; set; }

[Browsable(false)]
public List<string> Children { get; set; }

[ReadOnly(true)]
[Category("General"), DisplayName("Aisac Reference Path")]
[Description("The Aisac that this Synth is referenced to.")]
[Description("Full reference path of aisac node.")]
public string AisacReference { get; set; }

[Category("General")]
[Description("The volume of this Synth.")]
[Description("Volume of this synth. 1000 equals to 100%.")]
public short Volume { get; set; }

[Category("General")]
[Description("The pitch of this Synth.")]
[Description("Pitch of this synth. Use positive/negative values to make it higher/lower pitched.")]
public short Pitch { get; set; }

[Category("General"), DisplayName("Delay Time")]
[Description("The delay of this Synth. The time is in miliseconds.")]
[Description("How much time it takes to play this synth. The time is in milliseconds.")]
public uint DelayTime { get; set; }

[Category("Unknown"), DisplayName("S Control")]
Expand Down Expand Up @@ -316,7 +316,7 @@ public BuilderSynthPlaybackType PlaybackType
public ushort Filter2CutoffHigherGain { get; set; }

[Category("General"), DisplayName("Playback Probability")]
[Description("The probability of this Synth being played. A random number (max 100) will be chosen and if this number is lower than this parameter (or equals), it will be played. This does not do anything if this Synth represents a Track.")]
[Description("Probability of this synth being played. Lower values make it less probable to play. Max is 100.")]
public byte PlaybackProbability
{
get
Expand Down
2 changes: 1 addition & 1 deletion Source/CsbBuilder/Importer/CsbImporter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ public static void Import(string path, CsbProject project)
{
BuilderCueNode cueNode = new BuilderCueNode();
cueNode.Name = cueTable.Name;
cueNode.Identifier = cueTable.Id;
cueNode.Id = cueTable.Id;
cueNode.UserComment = cueTable.UserData;
cueNode.Flags = cueTable.Flags;
cueNode.SynthReference = cueTable.SynthPath;
Expand Down
Loading

0 comments on commit 3e1b5c8

Please sign in to comment.