Skip to content

Commit

Permalink
DSGameObjectControl: clarify operation in [Header] and [Tooltip] text
Browse files Browse the repository at this point in the history
  • Loading branch information
kurtdekker committed Jan 7, 2020
1 parent 5ec726a commit 83c843f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
12 changes: 7 additions & 5 deletions datasacks/Assets/Datasack/Control/DSGameObjectControl.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
The following license supersedes all notices in the source code.
Copyright (c) 2019 Kurt Dekker/PLBM Games All rights reserved.
Copyright (c) 2020 Kurt Dekker/PLBM Games All rights reserved.
http://www.twitter.com/kurtdekker
Expand Down Expand Up @@ -50,17 +50,19 @@ public class DSGameObjectControl : MonoBehaviour
[Tooltip( "GameObjects to DISABLE when Datasack is poked TRUE (false poke will ENABLE!).")]
public GameObject[] ToDisable;

[Header( "For .iValue control of lists, or .Value control of GameObjects by their name")]
[Tooltip( "GameObject array to map to iValue of Datasack (zero-based, can have gaps)")]
[Header( "For .iValue numeric control of GameObjects (by int), OR")]
[Header( "for .Value name control of GameObjects (by string):")]
[Tooltip( "GameObject array to map to .iValue or .Value of Datasack. " +
"Zero-based, may safely have null gaps.")]
public GameObject[] IndexArray;

[Tooltip( "Auto-populates above array based on transform children.")]
public bool OperateOnChildren;

[Tooltip( "Selection strategy for list of items.")]
[Tooltip( "Selection strategy for Index Array items.")]
public SelectionStrategy selectionStrategy;

[Tooltip( "Invert Selection Strategy (does not affect up area booleans!)")]
[Tooltip( "Invert Selection Strategy for Index Array operations)")]
public bool InvertSelectionStrategy;

public enum SelectionStrategy
Expand Down
2 changes: 1 addition & 1 deletion license_bsd.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
The following license supersedes all notices in the source code.

Copyright (c) 2019 Kurt Dekker/PLBM Games All rights reserved.
Copyright (c) 2020 Kurt Dekker/PLBM Games All rights reserved.

http://www.twitter.com/kurtdekker

Expand Down

0 comments on commit 83c843f

Please sign in to comment.