Jump to content

Outline Text in Chat??


Go to solution Solved by HFWhite,

Recommended Posts

  • Active+ Member

Hello. I saw this on a server, how do I add the outline to the text from chat?

I want the black outline on the names + text, exactly how is it in the 2nd picture.

This is how it is now:
.png

 

This is how I want it to be:
.png

 

Thank you! 🙂

spacer.png

Link to comment
Share on other sites

  • Active+ Member
47 minutes ago, mrtcnglrr said:

open clientsrc > PythonChat.cpp

find void CPythonChat::AppendChat(int iType, const char * c_szChat)

in; pChatLine->Instance.SetValue(c_szChat);

 

add below;

    pChatLine->Instance.SetOutline(true);

Yeah, I did this yestarday but it bugs the fade in/out animation of the messages.

 

A fix for this would be to set Outline to "false" untill the animation of the fade in and fade out is done. After it should be true.

But Idk to do that.

 

Video of bug: (black text because of outline) https://metin2.download/video/JiEaoPPmys6FcM118v7Dt7ec5EMG3Ha4/.mp4

Edited by Metin2 Dev International
Core X - External 2 Internal

spacer.png

Link to comment
Share on other sites

22 minutes ago, SCOOB said:

Yeah, I did this yestarday but it bugs the fade in/out animation of the messages.

 

A fix for this would be to set Outline to "false" untill the animation of the fade in and fade out is done. After it should be true.

But Idk to do that.

 

Video of bug: (black text because of outline) https://metin2.download/video/JiEaoPPmys6FcM118v7Dt7ec5EMG3Ha4/.mp4

    change;

if (iType == CHAT_TYPE_SHOUT)
        pChatLine->Instance.SetOutline(true);

Edited by Metin2 Dev International
Core X - External 2 Internal
Link to comment
Share on other sites

  • Active+ Member
  • Solution
9 minutes ago, mrtcnglrr said:

    change;

if (iType == CHAT_TYPE_SHOUT)
        pChatLine->Instance.SetOutline(true);

No, that does not fix it. It only checks if the message is shout or not, but I managed to fix it myself.

 

rColor acts as the fade in and fade out animation. so what I did is I checked if rColor is 100%. If it is then outline is true, otherwise is false.

This should be applied both on EditMode and ViewMode.

 

So in the end it will look like this: https://metin2.download/video/FgGw727Pqu2gKP54917l6zOlct2469jv/.mp4

 

Thank you anyway! ❤️ 

Edited by Metin2 Dev International
Core X - External 2 Internal

spacer.png

Link to comment
Share on other sites

46 minutes ago, SCOOB said:

No, that does not fix it. It only checks if the message is shout or not, but I managed to fix it myself.

 

rColor acts as the fade in and fade out animation. so what I did is I checked if rColor is 100%. If it is then outline is true, otherwise is false.

This should be applied both on EditMode and ViewMode.

 

So in the end it will look like this: https://metin2.download/video/FgGw727Pqu2gKP54917l6zOlct2469jv/.mp4

 

Thank you anyway! ❤️ 

can you share ?

 

Edited by Metin2 Dev International
Core X - External 2 Internal
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.