View Single Post
12/09/15, 11:07 PM   #10
SnowmanDK
 
SnowmanDK's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 161
I had already prepared Destinations with zo_strformat although I had to tweak it a bit.
Lua Code:
  1. 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:
  1. 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?
  Reply With Quote