Quantcast
Channel: Super Mario Bros. X Forums
Viewing all articles
Browse latest Browse all 3003

LunaLua • Re: littleDialogue.lua (v1.2) - bye bye default text boxes!

$
0
0
Been a while, but it's now been updated to v1.2! Here's the changelog:

  • Added the placementStyle setting for box styles. Can be "AUTO", "ABOVE" or "BELOW".
    • By default, it is set to "AUTO". This means that the box may appear either above the speaker or below the speaker depending on where the speaker is on screen.
    • The old behaviour of the box always being above the speaker can be restored by setting this to "ABOVE".
  • New tags:
    • Added the <twitch> tag, which causes text to have a small chance to be offset by a single pixel. It takes one argument, a 0 to 1 value which represents the chance of it being offset.
    • Added the <speed> tag, which controls the speed of the typewriter effect. "<speed 0.5>" will make it half as fast, "<speed 2>" will make it twice as fast, etc.
    • Added the <unskippable> tag, which prevents the player from skipping the remainder of the text by pressing the jump button.
      • Also added the textUnskippable setting for box styles.
    • Added the <signal> tag, which transmits a signal for the Routine class when it appears in text. Useful for timing events in a cutscene to the text.
    • Added the <forceWidth> tag, which forces the text box to be a specific width. This is useful in cases where the normal size of the box is too small.
  • <playerKey> tag changes:
    • There is now partial controller support. Switch Pro Controllers and Xbox controllers will now display proper icons.
    • The escape key now has an icon.
    • Fixed the icons not being pure white.
  • Typewriter delays less than 1 are now properly supported, allowing for very fast text speeds.
  • You can now have multiple typewriter sounds which are randomly picked each time a character appears. You can do this by having files named "typewriter-1.ogg", "typewriter-2.ogg", etc. instead of the usual "typewriter.ogg".
  • You can now set a custom sound delay (the time between each typewriter sound) for voices. This can be done through the "voiceDelay" parameter for portraits or the "delay" argument for the <voice> tag.
  • Boxes now have a "timeScale" value. This allows you to control the speed of everything related to the box. E.g., a value of 0.5 will make everything about the box run at half its normal speed.
  • littleDialogue's onMessageBox event is now a "late" event, making it easier to cancel with another script.
  • Fixes:
    • Fixed the text of a box shaking slightly during the opening/closing animations.
    • Fixed the speaker name being able to go above the screen.
    • Fixed the text colour of answers being handled incorrectly.
      • The answer colours of the "ml" and "drSmall" styles have been updated accordingly.

Statistics: Posted by MrDoubleA — Sat Mar 29, 2025 10:33 am



Viewing all articles
Browse latest Browse all 3003

Trending Articles