Entity Spawning & Rendering
Entity rendering now fully supports dynamic entities from game context Entity children now displayed underneath icon GameContext can spawn entities by loadout Selected corporation's initial fleet is spawned in parent corp's home sector Properties panel API is now unified with context menu API Properties panel labels now update dynamically
This commit is contained in:
parent
604acd80b5
commit
110ff883b8
25 changed files with 1019 additions and 165 deletions
|
|
@ -21,11 +21,11 @@ public class ReadOnlyPropertiesPanel : MonoBehaviour
|
|||
Destroy(property);
|
||||
}
|
||||
|
||||
public void AddProperty(string name, string value)
|
||||
public void AddProperty(string name, Func<string> value)
|
||||
{
|
||||
var property = Instantiate(PropertyPrefab, transform);
|
||||
property.Name.text = name;
|
||||
property.Value.text = value;
|
||||
property.ValueFunction = value;
|
||||
_properties.Add(property.gameObject);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue