Survey Controller & Drone Feedback
Implemented task and control module for surveying resources Implemented behavior for resource scanner Resources aren't shown until they have been surveyed Entities can now display messages, used to provide drone state feedback Orbital entities now provide correct velocity, improving drone docking precision
This commit is contained in:
parent
399b933a38
commit
d78ad49762
30 changed files with 1136 additions and 66 deletions
|
|
@ -50,7 +50,7 @@ public class ReadOnlyPropertiesPanel : MonoBehaviour
|
|||
_properties.Add(list.gameObject);
|
||||
}
|
||||
|
||||
public void AddList(string name, IEnumerable<Tuple<string, string>> elements)
|
||||
public void AddList(string name, IEnumerable<(string, Func<string>)> elements)
|
||||
{
|
||||
var list = Instantiate(ListPrefab, transform);
|
||||
list.GetComponentInChildren<TextMeshProUGUI>().text = name;
|
||||
|
|
@ -58,7 +58,8 @@ public class ReadOnlyPropertiesPanel : MonoBehaviour
|
|||
{
|
||||
var item = Instantiate(ListPropertyPrefab, list);
|
||||
item.Name.text = element.Item1;
|
||||
item.Value.text = element.Item2;
|
||||
item.Value.text = element.Item2();
|
||||
item.ValueFunction = element.Item2;
|
||||
_properties.Add(item.gameObject);
|
||||
}
|
||||
_properties.Add(list.gameObject);
|
||||
|
|
|
|||
Loading…
Reference in a new issue