Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Custom message window
#1
This is a locked, single-post thread from Creation Asylum. Archived here to prevent its loss.
No support is given. If you are the owner of the thread, please contact administration.


UPDATED
make a new script above the main and add this

Code:
class Message

def delay(wait)
count = Graphics.frame_count
while wait + count >= Graphics.frame_count
Graphics.update
end
end

def messages(message, x = 80, y = 304, width = 480, height = 160, waiting = 35)
   @message = message
   @x = x
   @y = y
   @waiting = waiting
   @width = width
   @height = height
@test_window = Window_Message.new
@test_window.contents.font.name = "Arial"
@test_window.contents.font.size = 18
@test_window.visible = true
@test_window.y = @y
@test_window.x = @x
@test_window.width = @width
@test_window.height = @height
@test_window.back_opacity = 190
x = 0
y = 0
while ((c = @message.slice!(/./m)) != nil)
w = @test_window.contents.text_size(c).width
h = @test_window.contents.text_size(c).height
if ((x + w) > 448)
  x = 0
  y += h
end
@test_window.contents.draw_text(x,y,w,h,c)
x += w
end
  delay(waiting)
@test_window.dispose
end
end

$msg = Message.new

now u can choose the location of the window message, u can make it as small as u want, and at the same time, choose how long it will show, this allow u to be able to show many messages at the same time

to call message just use
just call

Code:
$msg.messages(message, x , y, width, height, waiting)
message = to the message that will appear
x = x position of window
y = y position of window
width = width of window
height = height of window
waiting =  how long u want the message to show

:)
}


Possibly Related Threads…
Thread Author Replies Views Last Post
  Display a gold window on the map Chronic_NG 0 2,775 12-04-2006, 01:00 PM
Last Post: Chronic_NG
  Description Window Caldaron 0 2,561 10-09-2006, 01:00 PM
Last Post: Caldaron
  Auto Skipping Message Sonokawa 0 2,006 09-02-2006, 01:00 PM
Last Post: Sonokawa
  Coordinate Window on the map Slanter 0 2,320 08-29-2006, 01:00 PM
Last Post: Slanter
  Show a Message in any Scene Tsunokiette 1 2,993 08-17-2006, 01:15 PM
Last Post: GoldenShadow
  Tasty custom menu screen with gradients tktarr 0 2,490 07-05-2006, 01:00 PM
Last Post: tktarr
  State Immunity Message mudgolem 0 2,089 06-05-2006, 01:00 PM
Last Post: mudgolem
  Slipknot Advance Message System Sheol 0 2,305 01-02-2006, 01:00 PM
Last Post: Sheol
  Custom Menu Status jstreet 0 2,514 12-23-2005, 01:00 PM
Last Post: jstreet
  My own Message System Sheol 0 2,287 11-22-2005, 01:00 PM
Last Post: Sheol



Users browsing this thread: