Auto-Sizing Text Windows
#1
Auto-Sizing Text Windows
by RPG Advocate
saved from Phylomortis.Com


Introduction
This script adds the ability to show text windows whose dimensions conform to the text inside them. The width of the window is determined by the width of the longest line. The height is determined by the number of lines. To use this script, just add the Window_Autosize class provided after all the other window classes. The way the text box is a bit cumbersome. You initialize the window with an array of lines. The class does the processing from there. Please don't initialize the window with an empty array. This will cause the game to show an error message, as shown in the script. Also, be aware that the initial x and y coordinate of 0 are just dummy values. To use this script effectively, you should either specify explicit x and y coordinates for the window or create an algorithm to determine them, if you need to display the window in a different location depending on the circumstances.


Script
AutoSizing Text Windows
Reply


Messages In This Thread
Auto-Sizing Text Windows - by RPG Advocate - 03-02-2008, 08:27 AM
RE: Auto-Sizing Text Windows - by xnadvance - 06-02-2011, 01:40 AM
RE: Auto-Sizing Text Windows - by Charlie Fleed - 06-02-2011, 06:37 AM
RE: Auto-Sizing Text Windows - by sagam12 - 06-09-2011, 09:11 PM
RE: Auto-Sizing Text Windows - by NightOwl - 06-09-2011, 11:21 PM
RE: Auto-Sizing Text Windows - by sagam12 - 06-10-2011, 01:09 AM
RE: Auto-Sizing Text Windows - by DerVVulfman - 06-10-2011, 05:01 AM
RE: Auto-Sizing Text Windows - by sagam12 - 06-10-2011, 02:03 PM
RE: Auto-Sizing Text Windows - by DerVVulfman - 06-11-2011, 04:00 AM
RE: Auto-Sizing Text Windows - by sagam12 - 06-11-2011, 06:18 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
   DerVV's Tutorial Windows DerVVulfman 0 371 07-01-2026, 02:38 PM
Last Post: DerVVulfman
   DubeAlex's Text Scroll Script - Updated DerVVulfman 1 556 06-18-2026, 11:33 AM
Last Post: Ace_V
   Windows Widgets! DerVVulfman 9 5,254 05-06-2026, 09:36 PM
Last Post: DerVVulfman
   Talking Messages: Audio playback for Message Windows DerVVulfman 1 2,989 04-02-2026, 11:01 PM
Last Post: DerVVulfman
   Multiple Message Windows Extended DerVVulfman 1 3,686 04-02-2026, 10:38 PM
Last Post: DerVVulfman
   Text Scroll Script - Enhanced DerVVulfman 23 59,418 02-18-2021, 04:16 AM
Last Post: DerVVulfman
   Message Text from Files DerVVulfman 0 9,062 04-13-2016, 03:25 AM
Last Post: DerVVulfman
   Text Extraction Generator DerVVulfman 5 21,025 10-13-2014, 09:32 PM
Last Post: Narzew
   Text to RGSS DerVVulfman 10 38,686 05-04-2013, 04:34 AM
Last Post: DerVVulfman
   Auto Equip Optimizer for Guillaume777's MultiSlots DerVVulfman 1 11,204 06-20-2012, 03:26 PM
Last Post: buddysievers



Users browsing this thread: 1 Guest(s)