Hey guys
I've added InputFields to a plugin i'm writing.
It works perfectly fine, but for some reason it doesn't show the cursor like other plugins does, what did I do wrong?
static public void CreateInputField(ref CuiElementContainer element, string panel, string color, string text, int size, string aMin, string aMax, string command, int charsLimit, bool isPassword = false, TextAnchor align = TextAnchor.MiddleLeft)
{
element.Add(new CuiElement
{
Parent = panel,
Components =
{
new CuiInputFieldComponent { Text = text, FontSize = size, Align = align, CharsLimit = charsLimit, Color = color, Command = command, IsPassword = isPassword },
new CuiRectTransformComponent { AnchorMin = aMin, AnchorMax = aMax },
}
});
} UI.CreatePanel(ref sellElement, PanelMarket, UIColors["light"], "0.35 0.91", "0.50 0.99"); // UIColors is just a gray background.
UI.CreateInputField(ref sellElement, PanelMarket, UIColors["white"], string.Empty, 18, "0.36 0.91", "0.50 0.99", "", 6); // UIColors is 1,1,1,1