OnChatLineChanged menu

User Tag List

Results 1 to 6 of 6
  1. #1
    Razorfish's Avatar Contributor
    Reputation
    188
    Join Date
    Apr 2019
    Posts
    178
    Thanks G/R
    19/158
    Trade Feedback
    0 (0%)
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)

    OnChatLineChanged

    I'm no expert, so I'm not sure if this is is a bug:

    In the function void OnChatLineChanged(string currentLine, string previousLine) from the IChatLineChangedHandler interface, only ancient and primal item links do not include the item name in the string currentLine.

    For example, I had my friend whisper me a couple of item links, one that was nonancient, and one that was primal quality, and OnChatLineChanged gives me these values for currentLine:
    Code:
    |HItem:2,f0f88dbc:81271479:e2f6869b,c08ea798,ddb15e6,449e9fd2,ddc67b45::::::::9:a10b:119:119:0:0:46:445d5536:0:47d45e17:|h[The Short Man's Finger]|h
    
    |HItem:2,508de899:4a8b7aab:44cf5d1b,e7371328,611cbd68,dc834f9e,ad0770f4::::::::9:e10b:18b:18b:0:0:46:efd9d99b:0:fa744ede:|h}{/c}|h{/c}
    The difference seems to be that the partial color tag removal parses out the item name for the ancient+ quality item. I had a similar issue with IUiElement.ReadText(System.Text.Encoding encoding, bool removeColors) when removeColors was set to true, but it returned the text name for ancient+ item links when removeColors is false. Unfortunately, onChatLineChanged doesn't give me the option to turn off color tag removal.

    Checking the data dump (ctrl + alt + d) for ui_visible shows that the text is intact, so I'm guessing that the color tag removal feature doesn't work as expected when extra curly braces are in the string { }.

    OnChatLineChanged
  2. #2
    KillerJohn's Avatar TurboHUD HUDmaster CoreCoins Purchaser Authenticator enabled
    Reputation
    3693
    Join Date
    Jul 2012
    Posts
    2,532
    Thanks G/R
    46/3335
    Trade Feedback
    0 (0%)
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)
    sorry but TLDR

    so what is the 'raw' line and what is after color removal?
    Do not send me private messages unless it is absolutely necessary or the content is sensitive or when I ask you to do that...

  3. #3
    Razorfish's Avatar Contributor
    Reputation
    188
    Join Date
    Apr 2019
    Posts
    178
    Thanks G/R
    19/158
    Trade Feedback
    0 (0%)
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by KillerJohn View Post
    so what is the 'raw' line and what is after color removal?
    Ancient item link {[Vigilante Belt}]:
    Raw from dump_ui_visible.txt:
    |HItem:2,698c0676:be579655:6e894fb4,44cf5d1b,d6a10384,d9944261,7a20bcb8,3f92d5ea ::::::::9:a50b:f6:105:0:0:46:d442a7c0:0:5b43f42e:|h{c:ffff8000}{[Vigilante Belt]}{/c}|h

    CurrentLine from OnChatLineChanged when posted into chat:
    |HItem:2,698c0676:be579655:6e894fb4,44cf5d1b,d6a10384,d9944261,7a20bcb8,3f92d5ea ::::::::9:a50b:f6:105:0:0:46:d442a7c0:0:5b43f42e:|h|h

    IUiElement.ReadText with removeColors = false
    |HItem:2,698c0676:be579655:6e894fb4,44cf5d1b,d6a10384,d9944261,7a20bcb8,3f92d5ea ::::::::9:a50b:f6:105:0:0:46:d442a7c0:0:5b43f42e:|h{c:ffff8000}{[Vigilante Belt]}{/c}|h

    IUiElement.ReadText with removeColors = true
    |HItem:2,698c0676:be579655:6e894fb4,44cf5d1b,d6a10384,d9944261,7a20bcb8,3f92d5ea ::::::::9:a50b:f6:105:0:0:46:d442a7c0:0:5b43f42e:|h|h



    Primal item link {{[Iron Rose]}}:
    Raw:
    |HItem:2,4c919ae3:3031eca:ad0770f4,cb00069c,3719eded,50062366,44cf5d1b::::::::9: e10b:126:126:0:0:46:598c4799:0:942e4ca5:|h{c:ffff8000}{{[Iron Rose]}}{/c}|h

    OnChatLineChanged:
    |HItem:2,4c919ae3:3031eca:ad0770f4,cb00069c,3719eded,50062366,44cf5d1b::::::::9: e10b:126:126:0:0:46:598c4799:0:942e4ca5:|h}{/c}|h{/c}

    IUiElement.ReadText with removeColors = false
    |HItem:2,4c919ae3:3031eca:ad0770f4,cb00069c,3719eded,50062366,44cf5d1b::::::::9: e10b:126:126:0:0:46:598c4799:0:942e4ca5:|h{c:ffff8000}{{[Iron Rose]}}{/c}|h

    IUiElement.ReadText with removeColors = true
    |HItem:2,4c919ae3:3031eca:ad0770f4,cb00069c,3719eded,50062366,44cf5d1b::::::::9: e10b:126:126:0:0:46:598c4799:0:942e4ca5:|h}{/c}|h


    (Works Fine) Non-ancient Legendary item link [In-Geom]:
    Raw:
    |HItem:2,508de899:d93286d0:211d8e72,3168eed0,611cbd67,dc834f9e,ad0770f3:dc834f9e :3b679916:5b54b23:::::9:a30b:112:114:0:0:46:efd9d99b:1:2,cd741b37:48981469:::::: :::1:a10b:0:0:1:0:0::0:6a087d74:|h{c:ffff8000}[In-geom]{/c}|h

    OnChatLineChanged:
    |HItem:2,508de899:d93286d0:211d8e72,3168eed0,611cbd67,dc834f9e,ad0770f3:dc834f9e :3b679916:5b54b23:::::9:a30b:112:114:0:0:46:efd9d99b:1:2,cd741b37:48981469:::::: :::1:a10b:0:0:1:0:0::0:6a087d74:|h[In-geom]|h

    IUiElement.ReadText with removeColors = false
    |HItem:2,508de899:d93286d0:211d8e72,3168eed0,611cbd67,dc834f9e,ad0770f3:dc834f9e :3b679916:5b54b23:::::9:a30b:112:114:0:0:46:efd9d99b:1:2,cd741b37:48981469:::::: :::1:a10b:0:0:1:0:0::0:6a087d74:|h{c:ffff8000}[In-geom]{/c}|h

    IUiElement.ReadText with removeColors = true
    |HItem:2,508de899:d93286d0:211d8e72,3168eed0,611cbd67,dc834f9e,ad0770f3:dc834f9e :3b679916:5b54b23:::::9:a30b:112:114:0:0:46:efd9d99b:1:2,cd741b37:48981469:::::: :::1:a10b:0:0:1:0:0::0:6a087d74:|h[In-geom]|h
    Last edited by Razorfish; 04-06-2019 at 06:58 PM.

  4. #4
    KillerJohn's Avatar TurboHUD HUDmaster CoreCoins Purchaser Authenticator enabled
    Reputation
    3693
    Join Date
    Jul 2012
    Posts
    2,532
    Thanks G/R
    46/3335
    Trade Feedback
    0 (0%)
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)
    thank you!
    the problem is that HUD removes everything between { and } if removeColors is true.
    Last edited by KillerJohn; 04-06-2019 at 11:45 PM.
    Do not send me private messages unless it is absolutely necessary or the content is sensitive or when I ask you to do that...

  5. #5
    rock171's Avatar Member
    Reputation
    1
    Join Date
    Dec 2013
    Posts
    3
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    when does turbohud come out for the ptr 2.6.5

  6. #6
    mois's Avatar Member
    Reputation
    8
    Join Date
    Feb 2018
    Posts
    54
    Thanks G/R
    178/7
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    there won't a hud for ptr

All times are GMT -5. The time now is 01:38 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search