Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Auto-Sizing Text Windows
#5
Quote: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.

In a nutshell, the window is defaulted to the top left corner of the screen as (like you said) the x and y position is set to 0,0. Either you can replace the x/y values of 0,0 with values as noted here...
From
Code:
super(0, 0, w, h)
to
Code:
super(20, 40, w, h)

Or better yet, replace them with variables like x and y, and edit the initialization method to match:
Code:
#--------------------------------------------------------------------------
  # * Object Initialization
  #     x     : x-position
  #     y     : y-position
  #     lines : lines
  #--------------------------------------------------------------------------
  def initialize(x,y,lines)
and
Code:
super(x, y, w, h)

DerVVulfman's 'regular Joe' account for testing and permissions use.
Who watches the Watchmen?
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
   Text Scroll Script - Enhanced DerVVulfman 23 30,926 02-18-2021, 04:16 AM
Last Post: DerVVulfman
   Message Text from Files DerVVulfman 0 4,775 04-13-2016, 03:25 AM
Last Post: DerVVulfman
   Customize/Disable Text Outline + Shadow (v1.1) Zerbu 3 7,216 11-01-2015, 03:56 PM
Last Post: DerVVulfman
   Text Sound Effect (SE) v1.1 Zerbu 3 7,455 11-01-2015, 03:53 PM
Last Post: DerVVulfman
   Text Extraction Generator DerVVulfman 5 11,658 10-13-2014, 09:32 PM
Last Post: Narzew
   Text to RGSS DerVVulfman 10 23,766 05-04-2013, 04:34 AM
Last Post: DerVVulfman
   Victor Engine - State Auto Apply Victor Sant 0 3,831 06-25-2012, 12:17 AM
Last Post: Victor Sant
   Auto Equip Optimizer for Guillaume777's MultiSlots DerVVulfman 1 6,423 06-20-2012, 03:26 PM
Last Post: buddysievers
   Damage Text Revamp 2.1 PK8 3 11,843 04-08-2012, 06:47 PM
Last Post: PK8
   Victor Engine - Sprites in Windows Victor Sant 2 6,504 03-24-2012, 12:19 AM
Last Post: MetalRenard



Users browsing this thread: