Ejemplo n.º 1
0
        private static void OnNextChar(On.DialogueBox.orig_ShowNextChar orig, DialogueBox self)
        {
            TextMeshPro text = ReflectionHelper.GetAttr <DialogueBox, TextMeshPro>(self, "textMesh");

            text.maxVisibleCharacters = text.textInfo.pageInfo[self.currentPage - 1].lastCharacterIndex + 1;
        }
Ejemplo n.º 2
0
 private static void FastText(On.DialogueBox.orig_ShowNextChar orig, DialogueBox self)
 {
     self.GetField <DialogueBox, TMPro.TextMeshPro>("textMesh").maxVisibleCharacters = 9999;
 }