View Single Post
05/29/18, 10:56 PM   #3
Phuein
 
Phuein's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2018
Posts: 132
Originally Posted by Scootworks View Post
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:
  1. <Backdrop name="$(parent)DescriptionBody" inherits="ZO_MultiLineEditBackdrop_Keyboard">
  2.      <Dimensions x="550" y="150"/>
  3.      <Anchor point="TOPLEFT" relativeTo="$(parent)DescriptionTitle" relativePoint="BOTTOMLEFT" offsetY="10" />
  4.           <EditBox name="$(parent)Field" inherits="ZO_DefaultEditMultiLineForBackdrop ZO_EditDefaultText"/>
  5.      </Controls>
  6. </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.

Last edited by Phuein : 05/29/18 at 11:13 PM.
  Reply With Quote