RMRK is retiring.
Server is paid up for the rest of 2026, but the forum may go after that. See here for more information. Please archive or save anything you would like to keep before 2027.
Main Menu
  • Welcome to The RPG Maker Resource Kit.

Multiple lines of text in a single window

Started by Drykul, October 14, 2008, 05:53:36 PM

0 Members and 1 Guest are viewing this topic.

Drykul

Is there a more efficient way to do this what is in my example below? It seems to lag when the window loads up...


    $race_info.contents.clear
    $race_info.contents.draw_text(0, 0, 80, 32, "Title")
    $race_info.contents.draw_text(5, 20, 250, 32, "Some sub information")
    $race_info.contents.fill_rect(5, 47, 250, 2, Colors::White)
    $race_info.contents.draw_text(10, 50, 350, 32, "text text text text text text text text text ")
    $race_info.contents.draw_text(10, 65, 350, 32, "text text text text text text text text text ")
    $race_info.contents.draw_text(10, 80, 350, 32, "text text text text text text text text text ")
    $race_info.contents.draw_text(10, 95, 350, 32, "text text text text text text text text text ")
    $race_info.contents.draw_text(10, 110, 350, 32, "text text text text text text text text text ")
    $race_info.contents.draw_text(25, 135, 700, 32, "text text text text text text text text text ")
    $race_info.contents.draw_text(0, 150, 700, 32, "text text text text text text text text text ")
    $race_info.contents.draw_text(0, 165, 500, 32, "text text text text text text text text text ")
    $race_info.contents.draw_text(0, 180, 500, 32, "text text text text text text text text text ")
    $race_info.contents.draw_text(10, 215, 500, 32, "text text text text text text text text text ")


Mind you, that's only an example of how I had to draw multiple lines of text in the same paragraph, but the window lags when it loads all that text drawn seperatly, just wondering if there's a better way to do it.