23 lines
546 B
Plaintext
23 lines
546 B
Plaintext
|
function scr_messages(argument0) {
|
||
|
//displays a message on screen for 1 second, with a fade in and out
|
||
|
global.number += 1
|
||
|
draw_set_font(fnt_arial_s6_italic)
|
||
|
draw_set_color(c_white)
|
||
|
draw_set_alpha(.05*global.number)
|
||
|
if global.number >= 50
|
||
|
{
|
||
|
draw_set_alpha(1-.025*(global.number-50))
|
||
|
}
|
||
|
draw_text(__view_get( e__VW.XView, 0 ),__view_get( e__VW.YView, 0 )+280-global.number/5,string_hash_to_newline(argument0))
|
||
|
if global.number >= 100
|
||
|
{
|
||
|
global.number = 0
|
||
|
global.message = 0
|
||
|
}
|
||
|
draw_set_alpha(1)
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
}
|