Beispiel #1
0
        private void ResetTextPreview()
        {
            if (textPreviewAnimation == null)
            {
                return;
            }
            textPreviewAnimation.Stop();
            textPreview.Clear();
            var entry = textPreview.AddEntry(
                GetPreviewDisplayData(),
                TextAlignmentOptions.TopLeft,
                Color.black,
                Color.black,
                ""
                );
            var contentBox       = entry.contentBox;
            var contentProxy     = entry.contentProxy;
            var textAnimDuration = contentBox.textInfo.characterCount * textSpeed.perCharacterFadeInDuration;

            currentTextPreviewTimeLeft = textAnimDuration + autoDelay;
            textPreviewAnimation.Do(
                new TextFadeInAnimationProperty(contentProxy, 255),
                textAnimDuration
                );
            textPreviewIndex = (textPreviewIndex + 1) % TextPreviewKeys.Length;
        }
        private void ResetTextPreview()
        {
            if (textAnimation == null)
            {
                return;
            }
            textAnimation.Stop();
            dialogueText.Clear();
            var entry = dialogueText.AddEntry(
                GetPreviewDisplayData(),
                TextAlignmentOptions.TopLeft,
                Color.black,
                Color.black,
                null,
                DialogueEntryLayoutSetting.Default,
                0
                );
            var contentProxy = entry.contentProxy;
            var textDuration = perCharacterFadeInDuration * contentProxy.GetPageCharacterCount();

            currentTextPreviewTimeLeft = textDuration + autoDelay;
            textAnimation.Do(
                new TextFadeInAnimationProperty(contentProxy, 255),
                textDuration
                );
            textPreviewIndex = (textPreviewIndex + 1) % TextPreviewKeys.Length;
        }
Beispiel #3
0
 static int Stop(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         Nova.NovaAnimation obj = (Nova.NovaAnimation)ToLua.CheckObject <Nova.NovaAnimation>(L, 1);
         obj.Stop();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }