Skip to content

Commit

Permalink
Added tool tips.
Browse files Browse the repository at this point in the history
  • Loading branch information
koschke committed Dec 31, 2024
1 parent fbc6794 commit c1f697b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Assets/SEE/Game/City/NodeLayoutAttributes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
using SEE.Utils;
using SEE.Utils.Config;
using SEE.Utils.Paths;
using UnityEngine;

namespace SEE.Game.City
{
Expand All @@ -16,11 +17,13 @@ public class NodeLayoutAttributes : LayoutSettings
/// <summary>
/// How to layout the nodes.
/// </summary>
[Tooltip("How to layout the nodes.")]
public NodeLayoutKind Kind = NodeLayoutKind.Balloon;

/// <summary>
/// Settings for the <see cref="SEE.Layout.NodeLayouts.IncrementalTreeMapLayout"/>.
/// </summary>
[Tooltip("Settings for the IncrementalTreeMap layout. Used only for this kind of layout.")]
public IncrementalTreeMapAttributes IncrementalTreeMap = new();

/// <summary>
Expand All @@ -31,6 +34,10 @@ public class NodeLayoutAttributes : LayoutSettings
/// data of a game object.
/// </summary>
[OdinSerialize]
[Tooltip("The path to the layout file containing the node layout information. " +
"If the file extension is GVL, the layout is expected to be stored in Axivion's Gravis layout (GVL) with 2D co-ordinates. " +
"Otherwise the layout format SDL is expected, which saves all three dimensions of a node. " +
"This information is used only if 'From File' is selected as node layout.")]
public DataPath LayoutPath = new();

public override void Save(ConfigWriter writer, string label)
Expand Down

0 comments on commit c1f697b

Please sign in to comment.