WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   PTR API and Graphics Changes (https://www.wowinterface.com/forums/forumdisplay.php?f=175)
-   -   TEXT is missing in 7.2 (https://www.wowinterface.com/forums/showthread.php?t=55336)

galvin 04-19-17 11:14 AM

TEXT is missing in 7.2
 
Prat and wowlua access this, but blizzard removed it. I thought it was changed to text cause of this
https://www.townlong-yak.com/framexm...d_7_2_5.lua#39

Wowlua is calling TEXT(OKAY) and TEXT(CANCEL), my guess is text is a textbox object? and those are buttons.

Ketho 04-19-17 01:54 PM

Quote:

Originally Posted by galvin (Post 322975)
Wowlua is calling TEXT(OKAY) and TEXT(CANCEL), my guess is text is a textbox object? and those are buttons.


I don't know if I'm just wrong but as you can see TEXT() is simply a function that returns its argument
https://github.com/Gethe/wow-ui-sour...ls.xml#L54-L59
Code:

-- This function is used to translate text (DEPRECATED: actually it's already translated as-is)
function TEXT(text)
        return text
end

No idea why WowLua and Prat used that and don't remember if this behaved differently in previous expanions

Fizzlemizz 04-19-17 02:16 PM

Given that it's listed under Localisation, I presume it once did more. A lot of addons use it currently, Clique, Prat, MoveAnything, XLoot etc.

galvin 04-19-17 03:12 PM

Ok I get it now, thanks


All times are GMT -6. The time now is 07:54 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI