Page 1 of 1

BUG: SetTypewriterSpeed Method in StandardUISubtitleControls

Posted: Wed Mar 27, 2024 1:46 am
by WeiYiHua
v 2.2.44.1
The SetTypewriterSpeed method at Scripts\UI\Standard\Dialogue\StandardUISubtitleControls.cs Line: 817 seems to be improperly implemented. The current method is as follows:

Code: Select all

public virtual void SetTypewriterSpeed(float charactersPerSecond)
{
    for (int i = 0; i < m_builtinPanels.Count; i++)
    {
        if (m_builtinPanels[i] != null) TypewriterUtility.GetTypewriterSpeed(m_builtinPanels[i].subtitleText);
    }
    if (m_defaultNPCPanel != null && !m_builtinPanels.Contains(m_defaultNPCPanel)) TypewriterUtility.GetTypewriterSpeed(m_defaultNPCPanel.subtitleText);
    if (m_defaultPCPanel != null && !m_builtinPanels.Contains(m_defaultPCPanel)) TypewriterUtility.GetTypewriterSpeed(m_defaultPCPanel.subtitleText);
}

Re: BUG: SetTypewriterSpeed Method in StandardUISubtitleControls

Posted: Wed Mar 27, 2024 12:20 pm
by Tony Li
Thank you. That has been corrected in the upcoming version 2.2.45. It now correctly calls SetTypewriterSpeed. Here's a patch:

DS_SetTypewriterSpeedPatch_2024-04-37.unitypackage