View Single Post
07/01/17, 02:59 AM   #2
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 1,578
That's one of the easier things to do:
Lua Code:
  1. local label
  2. label = MyFragmentLabel
  3. -- or --
  4. label = MyFragment:GetNamedChild("Label")
  5. -- or --
  6. label = GetControl(fragment.control, "Label")
  7. label:SetText("Hello World!")
You named your label control "Label" and it is a child of your "MyFragment" control, so you can just access it via its global variable or relative to the control.
  Reply With Quote