bug with center screen messages

Please come here to inform us of new and interesting bugs so we can hunt them down and destroy them! Pics and videos demonstrating these bugs are also welcome!
Post Reply
FloppyDisk
Posts: 36
Joined: Thu Mar 11, 2021 6:14 pm

bug with center screen messages

Post by FloppyDisk » Thu Apr 29, 2021 5:28 pm

Hi,
There is a bug with the messages that pop up when you transfer items between players or fail processing scrap 3 times where if the player name includes HTML tags the text affected by the HTML does not fade away.
the fix for this is below


PLTabMenu.Update()

After
this.TimedMsgBG.color = PLInGameUI.FromAlpha(this.TimedMsgBG.color, 1f - Mathf.Pow(Mathf.Clamp01((Time.time - this.m_LastTimedErrorMsgEditTime) * 0.25f), 4f));
this.TimedMsgText.color = PLInGameUI.FromAlpha(this.TimedMsgText.color, this.TimedMsgBG.color.a);

Add
if (this.TimedMsgText.canvasRenderer != null)
{
this.TimedMsgText.canvasRenderer.SetAlpha(this.TimedMsgBG.color.a);
}

a similar bug also happens with the message on the left side causing it to fade unevenly.
FloppyDisk | Storage Media

User avatar
cptslog
Leafy Developer
Leafy Developer
Posts: 1092
Joined: Sun Sep 08, 2013 9:08 pm

Re: bug with center screen messages

Post by cptslog » Tue Jun 15, 2021 11:17 am

Thank you for the report and info on how to fix it

We will implement this soon!

Post Reply