WoWInterface (
-   Lua/XML Help (
-   -   Updating string text (

Calissi 03-09-13 06:31 AM

Updating string text
I have an update function that updates the text, but it places it on top of the existing text is there a way to modify it.
Because there is ModifyText command.

example of what i have


function Update()
local Title = f:CreateFontString(nil, "OVERLAY", "GameFontNormal")

Rilgamon 03-09-13 07:01 AM

Lua Code:
  1. local Title = f:CreateFontString(nil, "OVERLAY", "GameFontNormal")
  2. Title:SetPoint("Center",0,166)
  4. local function Update()
  5. Title:SetText("Title")
  6. end

Your function should be local. And you dont need to create a new fontstring on every update.
With settext you can modify it.

Calissi 03-09-13 07:23 AM

Ty this worked :)

All times are GMT -6. The time now is 12:03 PM.

vBulletin © 2018, Jelsoft Enterprises Ltd
© 2004 - 2017 MMOUI