Thread Tools Display Modes
Prev Previous Post   Next Post Next
08/04/14, 11:01 AM   #1
Khaibit
 
Khaibit's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2014
Posts: 26
Patch 1.3.3 Item Link handling

Well, my addon was working fine on the PTS, but it appears they've yet again changed something between the PTS build and the live build. Previously, this worked:

Code:
-- assume we have a Button called someButton, and an item link called itemLink
someButton:SetText(itemLink)
However, now, the item names are mostly lowercased (except for a few items, with no commonality that I can determine) and retain the ^n ^p and whatnot at the end (again, most of the time, the ones that show proper title casing do not display the control characters either). The chat box, on the other hand, parses them correctly still; this still works the same as it did before:

Code:
ZO_ChatWindowTextEntryEditBox:SetText(itemLink)
Ugh. So...what is the 'proper' way to parse the links now? This seems to strip out the control characters, but leaves the name all lowercase; is there a good way to title-case the result?

Code:
local testName = zo_strformat("<<1>>", itemLink)
someButton:SetText(testName)

Edit for clarity and so people don't have to read the whole thread if they don't want to: The following adjustment to the first code snippet fixes this:

Code:
-- assume we have a Button called someButton, and an item link called itemLink
someButton:SetText(zo_strformat("<<t:1>>", itemLink))

Last edited by Khaibit : 08/04/14 at 12:44 PM.
  Reply With Quote
 

ESOUI » Developer Discussions » General Authoring Discussion » Patch 1.3.3 Item Link handling


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off