LoginLogin
Nintendo shutting down 3DS + Wii U online services, see our post

Textbox

Root / Submissions / [.]

a_load_of_barnaclesCreated:
Download:DAPBEBD
Version:Version 1Size:
Creates an advanced textbox that has scrolling text, text properties (color, speed, depth, etc.), automatic text wrapping, textbox styles, and more! See instructions for more details.

Instructions:

Load into any slot to use in your program:
LOAD "PRG1:TEXTBOX-V1"
Then use the TEXTBOX command to create a textbox! TEXTBOX is set up as follows:
TEXTBOX  STRING$, X1, X2, Y1, Y2, STYLE, WRAP, INITAL_TEXT_PROPERTIES$
STRING is what string to pass in. X1, X2, Y1, Y2 is what size the textbox will be. STYLE allows you to choose from styles for the textbox, two styles are included and making more is easy WRAP if true, turns text wrapping on. INITAL_TEXT_PROPERTIES what text properties to start with. Use <DE0> for default properties. Text properties are put into the string as <>. They change various things about the text. Properties have a two letter indicator followed by a value. They are applied at the location encountered in the string. Currently, the program has the following, but more are planned: <DF0> sets all text styles back to default. Users may define there own defaults. Put this into the INITIAL_TEXT_PROPERTIES. <CO15> sets the text color. <SP0> changes the speed characters scroll/appear on screen. <WA60> pauses text scrolling for a certain amount of time. <BE43> beep made each time a new letter is added to screen. <DE0> depth of the text. Therefore the string: "How <CO5>are<CO15> are you doing!" when run through the TEXTBOX command, would make "are" green!

Notes:

Thank you for using this program. Feel free to use this in your program, just shout me out, a_load_of_barnacles somewhere in the program! Post any questions or comments in the comments below.

And to think that I've been trying to make something like this for a couple of days up until I found this a couple of hours ago. This is exactly what I needed. Great program! Will be using this.

Replying to:Xyore
And to think that I've been trying to make something like this for a couple of days up until I found this a couple of hours ago. This is exactly what I needed. Great program! Will be using this.
Thanks for trying it out! Feel free to use this in any way you want, just be sure to credit ;)

Hmmm... I could use this. Thank you, you will go into the credits of my game, Telewarp, if I happen to use this.

This is great! I really needed this. Do you know how I can make it so the A button progresses the text instead of any button?

Replying to:ResetReload
This is great! I really needed this. Do you know how I can make it so the A button progresses the text instead of any button?
You could use
REPEAT:VSYNC:UNTIL BUTTON(2) AND #A
'instead of
WHILE BUTTON(2)==0:WEND

Replying to:ResetReload
This is great! I really needed this. Do you know how I can make it so the A button progresses the text instead of any button?
Thanks 12Me21, that does the trick perfectly. The original line is from line 15 in the DEMO file, for reference.