RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
Multiple lines of text in a single window

0 Members and 1 Guest are viewing this topic.

**
Rep: +0/-0Level 84
Is there a more efficient way to do this what is in my example below? It seems to lag when the window loads up...

Code: [Select]
    $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.