Originally Posted by Scootworks
only valid control function are here:
http://wiki.esoui.com/Controls#EditControl
because your reference is an edit control:
ZO_DefaultEditMultiLineForBackdrop
as far i see, ZOS running like this:
xml Code:
<Backdrop name="$(parent)DescriptionBody" inherits="ZO_MultiLineEditBackdrop_Keyboard"> <Dimensions x="550" y="150"/> <Anchor point="TOPLEFT" relativeTo="$(parent)DescriptionTitle" relativePoint="BOTTOMLEFT" offsetY="10" /> <EditBox name="$(parent)Field" inherits="ZO_DefaultEditMultiLineForBackdrop ZO_EditDefaultText"/> </Controls> </Backdrop>
in the inherit there is ZO_EditDefaultText: DescriptionBodyFieldText:SetColor(1,1,1,1)
maybe this works for the lua too:
page = WINDOW_MANAGER:CreateControlFromVirtual("someparent", someplace, "ZO_DefaultEditMultiLineForBackdrop ZO_EditDefaultText")
pageText:SetColor(1,1,1,1) ?
|
To clarify, I have no issue setting the text color for the control. I want "|cFF0000TEXT|r" to show "
TEXT" with the color. Just like in other text controls in the game.