I had already prepared Destinations with zo_strformat
although I had to tweak it a bit.
Lua Code:
table.insert(pinTag, 2, ZO_ColorDef:New(unpack(DestinationsSV.pins.pinTextureQuestsDone.textcolor)):Colorize("["..zo_strformat("<<1>>", NPC).."]"))
I haved one problem left though. The returned values don't have the first letter capitalized, which I want.
The remaining string should not be altered.
Example:
My data contains "chef Tazgol^md".
It is shown as "
le chef Tazgol".
It SHOULD show "
Le chef Tazgol".
I tried
Lua Code:
table.insert(pinTag, 2, ZO_ColorDef:New(unpack(DestinationsSV.pins.pinTextureQuestsDone.textcolor)):Colorize("["..zo_strformat("<<1>>", NPC:gsub("^%l", string.upper)).."]"))
but this returns "
LE chef Tazgol" (the TWO first letters are capitals).
What am I missing here?