- Bring text to text buttons (not fully working)

- Refactoring of unity element creation
- copy Vocaluxe.UI.dll to unity assets automatically
This commit is contained in:
lukeIam committed 2018-09-07 17:12:16 +02:00
1 parent 4373f82935
commit c6d221d6c0
8 files changed
+21 -149

No files matched your search

@@ -10,7 +10,10 @@ namespace Vocaluxe.UI.BasicElements.Text
public static CUiElementText CreateInstance(Dictionary<string, string> properties, IEnumerable<(CUiElement uiElement, string bindingId)> children)
{
return CUiElement.CreateInstance<CUiElementText>(properties, children);
var instance = CUiElement.CreateInstance<CUiElementText>(properties, children);
properties.TryGetValue("value", out string value);
instance.Controller.Text = value;
return instance;
}
}
}