Markup, GetText() and GetTextLength()
So ... I've found I can use <rgb> commands if I set a label or text box to having markup.
Two questions. (A) are there any other <> commands that markup activates? (B) GetText() and GetTextLength() strip the <> commands out ... This makes GetTextLength() inaccurate (because I've found the <> commands contribute to the 'real' length of the label) and make it impossible to get, modify, and re-set the label's text (you lose the <> commands when you do). I've made a workaround, which is to simply keep a separate copy of the text, but that's space inefficient. Has Turbine provided a way to get the 'markedup' text and textlength? |
From the original release notes for Update 8 (when SetMarkupEnable was added):
Quote:
|
I think you can use these other undocumented tags, too.
I wouldn't worry too much about memory inefficiency, when your average user has several GB of RAM to spare. |
Quote:
The ExamineItemInstance tag requires encoded data which is a royal pain to encode properly and is of little use The Examine tag however, uses regular game item IDs and is very useful. The first id is a unique identifier for a stack that is actually in inventory (and will show the correct quantity in the tooltip when clicked), the second is a generic identifier for a generic single representation of the item. ex: <Examine:IIDDID:0x030A0007F6CAFC3A:0x70033CA6>Poti ons</Examine> is for a stack of universal morale potions in Garan's inventory; will only work on Landroval because unique ids are server specific <Examine:IIDDID:0:0x70033CA6>some item</Examine> is for a generic universal morale potion, will work on any server because generic ids are, well, generic. <Select:IID:0x020A000000041D3A>Garan<\Select> is a character select tag for.... Garan (on Landroval) Lunarwater experimented quite a bit with these tags and Lotro Compendium (not to be confused with Plugin Compendium) uses some of them |
All times are GMT -5. The time now is 12:08 AM. |
vBulletin® - Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
© MMOUI