Files
Vocaluxe/Vocaluxe.UI/BasicElements/Text/CUiElementText.cs
T
lukeIam c6d221d6c0 - Bring text to text buttons (not fully working)
- Refactoring of unity element creation
- copy Vocaluxe.UI.dll to unity assets automatically
2018-09-07 17:12:16 +02:00

20 lines
729 B
C#

using System.Collections.Generic;
using Vocaluxe.UI.AbstractElements;
namespace Vocaluxe.UI.BasicElements.Text
{
public class CUiElementText:CUiElement
{
public CControllerElementText Controller => new CControllerElementText();
public override CController BasicController => Controller;
public static CUiElementText CreateInstance(Dictionary<string, string> properties, IEnumerable<(CUiElement uiElement, string bindingId)> children)
{
var instance = CUiElement.CreateInstance<CUiElementText>(properties, children);
properties.TryGetValue("value", out string value);
instance.Controller.Text = value;
return instance;
}
}
}